是这样:我的ejb是session ejb ,为调环境作的,没什么特别的功能,sevlet也仅仅调一下ejb,程序应该是没什么问题,因为是在jb5生成后改写的,估计是weblogic 设置有问题,因为我刚开始用,我使用了系统默认的server,也设置了一个cluster,用jb5部署的(不过,我直接用jb5生成test client测试报一大堆错,只好用ias先测一下,然后重新设置properties编译)。
ie返回的错误:
Error 500--Internal Server Error
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.5.1 500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request. 非常感谢,希望继续得到你的帮助。
ie返回的错误:
Error 500--Internal Server Error
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.5.1 500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request. 非常感谢,希望继续得到你的帮助。
解决方案 »
- hibernate多对一关联
- 各位大侠请问 ssh里和数据库里翻转后出现了一个User和UserId是怎么回事啊我看以前的老师质料里只有一个User类这是为什么啊
- 高手问一个现在的短信发送方法
- jsp中#、%是什么
- Hibernate插入与删除数据的问题
- 红叶java乐园 讨论struts开发,elcipse使用,idea使用
- 装了JDK和TOMCAT后该干什么了?
- eclipse-SDK-3.0M7-win32+lomboz+weblogic7的问题(在线等待)
- 我的EJB程序出现javax.naming.linkexception,怎么回事啊?
- 项目部署出现500错误
- 请问怎样手工的解析XML文件啊.( 不借助任何的xml解析器)急!!!
- 请对ejb开发有研究的同志,进来一起讨论一下BMP和CMP的使用问题!
<%@page import="java.sql.*,java.util.*,javax.naming.*,javax.ejb.*,java.rmi.RemoteException,java.rmi.Remote,javax.rmi.PortableRemoteObject, quickstart.*" session="true" contentType="text/html; charset=GB2312" %>
<title> emp
</title>
<%
class myclass
{
public Context getInitialContext() throws Exception
{
String url = "t3://196.168.0.63:7001";
String user = null;
String password = null;
Properties properties = null;
try {
properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
properties.put(Context.PROVIDER_URL, url);
if (user != null) {
properties.put(Context.SECURITY_PRINCIPAL, user);
properties.put(Context.SECURITY_CREDENTIALS, password == null ? "" : password);
}
return new InitialContext(properties);
}
catch(Exception e) {
System.out.println("Unable to connect to WebLogic server at " + url);
System.out.println("Please make sure that the server is running.");
throw e;
}
}
}
quickstart.TellerHome tellerHome = null;
quickstart.Teller teller=null;
int li_result; myclass myc = new myclass();
//get naming context
Context ctx = myc.getInitialContext();
//look up jndi name
Object ref = ctx.lookup("Teller"); //cast to Home interface
tellerHome = (quickstart.TellerHome) PortableRemoteObject.narrow(ref, TellerHome.class);
teller = tellerHome.create();
li_result = teller.getTellerNo() ;
out.println("the result of gettellerno is "+ li_result);
%>
但我找不到给分的地方?