CodeFactory
2003-08-14 16:06
我把Servlet删掉了服务器却启动不了了,这是怎么回事啊

dd2
2004-06-03 14:48
1--A机装有WEBLOGIC8.1,其上部署有EJB(EAR),且运行无误(WEB测式,JSP页面正常运行,EJB调用正常)

2--B机上装TOMCAT4.0.6,将jsp部分拷贝到webapp/web目录

3--配置serer.xml & web.xml

4--webapp/web/ejb_test.jsp中调用EJB:
....
Hashtable bea_ht = new Hashtable();
bea_ht.put(Context.PROVIDER_URL, "t3://X.X.X.7:7001") ;
bea_ht.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
bea_ht.put(Context.SECURITY_CREDENTIALS, "12345678");
bea_ht.put(Context.SECURITY_PRINCIPAL, "mydomain");

Context ctx = new InitialContext(bea_ht);

Object o = (Context)ctx.lookup("java:/comp/env/ejb/MyEjb");
//MyEjbHome ejbHome = (MyEjbHome) PortableRemoteObject.narrow(o, MyEjbHome.class);
//MyEjb g = ejbHome.create();
.....

结果,页面报错了,还没有作narrow,ejbHome.create(),被我注释掉了
错误是:
javax.servlet.ServletException: ***** ASSERTION FAILED *****[ Failed to generate class for weblogic.common.internal.RMIBootServiceImpl_811_WLStub ]
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471)
at org.apache.jsp.ejb_0005ftest2$jsp._jspService(ejb_0005ftest2$jsp.java:307)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
。。。
。。
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:536)


root cause

java.lang.NullPointerException
at weblogic.rmi.internal.StubGenerator.getStubOnClient(StubGenerator.java:785)
at weblogic.rmi.internal.StubGenerator.getStubClass(StubGenerator.java:758)
at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:803)
at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:790)
at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
at weblogic.common.internal.RMIBootServiceStub.getStub(RMIBootServiceStub.java:50)
at weblogic.security.acl.internal.Security.authenticate(Security.java:152)
at weblogic.jndi.WLInitialContextFactoryDelegate.authenticateRemotely(WLInitialContextFactoryDelegate.java:597)
at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLInitialContextFactoryDelegate
。。。
。。。
。。。
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:536)
--------------- nested within: ------------------
weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed to generate class for weblogic.common.internal.RMIBootServiceImpl_811_WLStub ] - with nested exception:

[java.lang.NullPointerException]
at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:807)
at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:790)
at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
at weblogic.common.internal.RMIBootServiceStub.getStub(RMIBootServiceStub.java:50)
at weblogic.security.acl.internal.Security.authenticate(Security.java:152)
at weblogic.jndi.WLInitialContextFactoryDelegate.authenticateRemotely(WLInitialContextFactoryDelegate.java:597)
at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLInitialContextFactoryDelegate.java:534)
at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:336)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:308)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:234)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:135)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
。。。
。。。
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:536)
---------------------------------

???!!!!!!!!!!!!!!!!


2Go 上一页 1 2