当前位置: 技术问答>java相关
进来看看,各位。
来源: 互联网 发布时间:2015-11-12
本文导语: 能帮我看看错误吗?当我deploy时,出现: d:win2000j2sdk1.4.1binjavaw -classpath "d:JBuilderLulinEJBclasses;D:win2000beaweblogic700serverlibweblogic.jar;D:win2000beaweblogic700serverlibweblogic_sp.jar;d:win2000j2sdk1.4.1demojfcJava2DJava2Demo.jar;d:win2000j2sdk1.4.1dem...
能帮我看看错误吗?当我deploy时,出现:
d:win2000j2sdk1.4.1binjavaw -classpath "d:JBuilderLulinEJBclasses;D:win2000beaweblogic700serverlibweblogic.jar;D:win2000beaweblogic700serverlibweblogic_sp.jar;d:win2000j2sdk1.4.1demojfcJava2DJava2Demo.jar;d:win2000j2sdk1.4.1demopluginjfcJava2DJava2Demo.jar;d:win2000j2sdk1.4.1jrelibcharsets.jar;d:win2000j2sdk1.4.1jrelibextdnsns.jar;d:win2000j2sdk1.4.1jrelibextldapsec.jar;d:win2000j2sdk1.4.1jrelibextlocaledata.jar;d:win2000j2sdk1.4.1jrelibextsunjce_provider.jar;d:win2000j2sdk1.4.1jrelibimindicim.jar;d:win2000j2sdk1.4.1jrelibjaws.jar;d:win2000j2sdk1.4.1jrelibjce.jar;d:win2000j2sdk1.4.1jrelibjsse.jar;d:win2000j2sdk1.4.1jrelibrt.jar;d:win2000j2sdk1.4.1jrelibsunrsasign.jar;d:win2000j2sdk1.4.1libdt.jar;d:win2000j2sdk1.4.1libhtmlconverter.jar;d:win2000j2sdk1.4.1libtools.jar" lulinejb.EmployeesTestClient1
-- Initializing bean access.
javax.naming.NameNotFoundException: Unable to resolve 'EmployeesRemote' Resolved: '' Unresolved:'EmployeesRemote' ; remaining name 'EmployeesRemote'
at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:109)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:262)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:229)-- Failed initializing bean access.
at weblogic.jndi.internal.ServerNamingNode_WLStub.lookup(Unknown Source)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:337)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:332)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at lulinejb.EmployeesTestClient1.(EmployeesTestClient1.java:28)
at lulinejb.EmployeesTestClient1.main(EmployeesTestClient1.java:1245)
java.lang.NullPointerException
at lulinejb.EmployeesTestClient1.findByPrimaryKey(EmployeesTestClient1.java:107)
at lulinejb.EmployeesTestClient1.main(EmployeesTestClient1.java:1251)
-- Calling findByPrimaryKey(1)
-- Failed: findByPrimaryKey(1)
-- Return value from findByPrimaryKey(1): null.
Error in testRemoteCallsWithDefaultArguments(): Remote interface reference is null. It must be created by calling one of the Home interface methods first.
谢谢主。。。。。。。。。。
d:win2000j2sdk1.4.1binjavaw -classpath "d:JBuilderLulinEJBclasses;D:win2000beaweblogic700serverlibweblogic.jar;D:win2000beaweblogic700serverlibweblogic_sp.jar;d:win2000j2sdk1.4.1demojfcJava2DJava2Demo.jar;d:win2000j2sdk1.4.1demopluginjfcJava2DJava2Demo.jar;d:win2000j2sdk1.4.1jrelibcharsets.jar;d:win2000j2sdk1.4.1jrelibextdnsns.jar;d:win2000j2sdk1.4.1jrelibextldapsec.jar;d:win2000j2sdk1.4.1jrelibextlocaledata.jar;d:win2000j2sdk1.4.1jrelibextsunjce_provider.jar;d:win2000j2sdk1.4.1jrelibimindicim.jar;d:win2000j2sdk1.4.1jrelibjaws.jar;d:win2000j2sdk1.4.1jrelibjce.jar;d:win2000j2sdk1.4.1jrelibjsse.jar;d:win2000j2sdk1.4.1jrelibrt.jar;d:win2000j2sdk1.4.1jrelibsunrsasign.jar;d:win2000j2sdk1.4.1libdt.jar;d:win2000j2sdk1.4.1libhtmlconverter.jar;d:win2000j2sdk1.4.1libtools.jar" lulinejb.EmployeesTestClient1
-- Initializing bean access.
javax.naming.NameNotFoundException: Unable to resolve 'EmployeesRemote' Resolved: '' Unresolved:'EmployeesRemote' ; remaining name 'EmployeesRemote'
at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:109)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:262)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:229)-- Failed initializing bean access.
at weblogic.jndi.internal.ServerNamingNode_WLStub.lookup(Unknown Source)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:337)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:332)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at lulinejb.EmployeesTestClient1.(EmployeesTestClient1.java:28)
at lulinejb.EmployeesTestClient1.main(EmployeesTestClient1.java:1245)
java.lang.NullPointerException
at lulinejb.EmployeesTestClient1.findByPrimaryKey(EmployeesTestClient1.java:107)
at lulinejb.EmployeesTestClient1.main(EmployeesTestClient1.java:1251)
-- Calling findByPrimaryKey(1)
-- Failed: findByPrimaryKey(1)
-- Return value from findByPrimaryKey(1): null.
Error in testRemoteCallsWithDefaultArguments(): Remote interface reference is null. It must be created by calling one of the Home interface methods first.
谢谢主。。。。。。。。。。
|
可能是你的程序里面查找JNDI的名字与配置文件里面写的不一致。
是不是你在你的程序里面写的是java:comp/env/ejb/EmployeesRemote
而在配置文件里面写的是Employees的,如果是的话,改成一致就好了。
是不是你在你的程序里面写的是java:comp/env/ejb/EmployeesRemote
而在配置文件里面写的是Employees的,如果是的话,改成一致就好了。