|
发表于 2007-8-21 09:42:00
|
显示全部楼层
我在运行客户端程序时testBookClient.java
其他分别为:myBook.java,myBookHome.java,myBookBean.java;
我在运行客户端程序时,运行到
context.lookup("myBook"),报错:
javax.naming.NameNotFoundException: Unable to resolve 'myBook' Resolved: '' Unre
solved:'myBook' ; remaining name 'myBook'
at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundR
equest.java:109)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
ef.java:262)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
ef.java:229)
at weblogic.jndi.internal.ServerNamingNode_WLStub.lookup(Unknown Source)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:338)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:333)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at test.testBookClient.main(testBookClient.java:35)
====================================
是不是你的数据连接池没有配置好啊? |
|