请教EJB中的异常问题NamingException

ccitlcl
06-08-01 1 350

我在运行程序时,出现这样的异常,请哪位有过相同经历的高手多多指教
C:\j2sdk1.4.2_10\bin\javaw -classpath "E:\jbproject\SayHelloProject\classes;C:\bea\weblogic81\server\lib\weblogic_sp.jar;C:\bea\weblogic81\server\lib\weblogic.jar;C:\bea\weblogic81\server\lib\webservices.jar;C:\j2sdk1.4.2_10\demo\plugin\jfc\Java2D\Java2Demo.jar;C:\j2sdk1.4.2_10\demo\jfc\Java2D\Java2Demo.jar;C:\j2sdk1.4.2_10\jre\lib\plugin.jar;C:\j2sdk1.4.2_10\jre\lib\sunrsasign.jar;C:\j2sdk1.4.2_10\jre\lib\im\thaiim.jar;C:\j2sdk1.4.2_10\jre\lib\im\indicim.jar;C:\j2sdk1.4.2_10\jre\lib\jsse.jar;C:\j2sdk1.4.2_10\jre\lib\charsets.jar;C:\j2sdk1.4.2_10\jre\lib\ext\dnsns.jar;C:\j2sdk1.4.2_10\jre\lib\ext\sunjce_provider.jar;C:\j2sdk1.4.2_10\jre\lib\ext\localedata.jar;C:\j2sdk1.4.2_10\jre\lib\ext\ldapsec.jar;C:\j2sdk1.4.2_10\jre\lib\rt.jar;C:\j2sdk1.4.2_10\jre\lib\jce.jar;C:\j2sdk1.4.2_10\jre\javaws\javaws.jar;C:\j2sdk1.4.2_10\lib\dt.jar;C:\j2sdk1.4.2_10\lib\htmlconverter.jar;C:\j2sdk1.4.2_10\lib\tools.jar" -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=ccit-948a6f28e4:1309,suspend=y sayhelloproject.HelloSessionBeanTestClient1
-- Initializing bean access.
javax.naming.NameNotFoundException: Unable to resolve 'HelloSessionBean' Resolved [Root exception is javax.naming.NameNotFoundException: Unable to resolve 'HelloSessionBean' Resolved ]; remaining name 'HelloSessionBean'
at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:284)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:244)
at weblogic.jndi.internal.ServerNamingNode_812_WLStub.lookup(Unknown Source)-- Failed initializing bean access.

8wy158457
2006-08-02 14:16

应该是context上下文没有找到home接口