当前位置: 技术问答>java相关
一个运行测试客户端的问题!
来源: 互联网 发布时间:2015-08-14
本文导语: F:WebSphereAppServerjavabinjavaw -classpath "D:projectheheclasses;E:BorlandAppServerlibasrt.jar;E:BorlandAppServerlibvbdev.jar;E:BorlandAppServerlibvbjdev.jar;E:BorlandAppServerlibvbjorb.jar;E:BorlandAppServerlibvbsec.jar;E:BorlandAppServerlibvbejb.jar;E:BorlandAppServerlibmigration...
F:WebSphereAppServerjavabinjavaw -classpath "D:projectheheclasses;E:BorlandAppServerlibasrt.jar;E:BorlandAppServerlibvbdev.jar;E:BorlandAppServerlibvbjdev.jar;E:BorlandAppServerlibvbjorb.jar;E:BorlandAppServerlibvbsec.jar;E:BorlandAppServerlibvbejb.jar;E:BorlandAppServerlibmigration.jar;C:j2sdkee1.3.1libcloudscapecloudclient.jar;C:j2sdkee1.3.1libcloudscapecloudview.jar;C:j2sdkee1.3.1libcloudscapeRmiJdbc.jar;C:j2sdkee1.3.1libejb10deployment.jar;C:j2sdkee1.3.1libj2ee-ri-svc.jar;C:j2sdkee1.3.1libj2ee.jar;C:j2sdkee1.3.1libj2eetools.jar;C:j2sdkee1.3.1libjhall.jar;C:j2sdkee1.3.1libsystemcloudscape.jar;C:j2sdkee1.3.1libsystemcloudutil.jar;F:DB2javadb2java.zip;E:JBuilder6jakarta-tomcat-3.2.3libservlet.jar;F:WebSphereAppServerlibbootstrap.jar;F:WebSphereAppServerproperties;F:WebSphereAppServerlibj2ee.jar;F:WebSphereAppServerlibwebsphere.jar;F:WebSphereAppServerjavajrebindaemonjprobe2.zip;F:WebSphereAppServerjavajrelibi18n.jar;F:WebSphereAppServerjavajrelibjaws.jar;F:WebSphereAppServerjavajrelibrt.jar;F:WebSphereAppServerjavajrelibextactivation.jar;F:WebSphereAppServerjavajrelibextgskikm.jar;F:WebSphereAppServerjavajrelibextibmjcefw.jar;F:WebSphereAppServerjavajrelibextibmjceprovider.jar;F:WebSphereAppServerjavajrelibextibmjsse.jar;F:WebSphereAppServerjavajrelibextibmorb.jar;F:WebSphereAppServerjavajrelibextibmpkcs.jar;F:WebSphereAppServerjavajrelibextindicim.jar;F:WebSphereAppServerjavajrelibextmail.jar;F:WebSphereAppServerjavalibtools.jar" hehe.TestTestClient1
-- Initializing bean access.
javax.naming.NameNotFoundException: TestHome
at com.ibm.ejs.ns.jndi.CNContextImpl.doLookup(CNContextImpl.java:1435)
at com.ibm.ejs.ns.jndi.CNContextImpl.lookup(CNContextImpl.java:1115)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at hehe.TestTestClient1.(TestTestClient1.java:27)-- Failed initializing bean access.
at hehe.TestTestClient1.main(TestTestClient1.java:374)
java.lang.NullPointerException
at hehe.TestTestClient1.create(TestTestClient1.java:91)
at hehe.TestTestClient1.main(TestTestClient1.java:375)
-- Calling create(ecdoood)
-- Failed: create(ecdoood)
-- Return value from create(ecdoood): null.
其中TestHome是lookup里面的jndi。请问,这个问提应该是什么原因导致的,请高手指教!!!
-- Initializing bean access.
javax.naming.NameNotFoundException: TestHome
at com.ibm.ejs.ns.jndi.CNContextImpl.doLookup(CNContextImpl.java:1435)
at com.ibm.ejs.ns.jndi.CNContextImpl.lookup(CNContextImpl.java:1115)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at hehe.TestTestClient1.(TestTestClient1.java:27)-- Failed initializing bean access.
at hehe.TestTestClient1.main(TestTestClient1.java:374)
java.lang.NullPointerException
at hehe.TestTestClient1.create(TestTestClient1.java:91)
at hehe.TestTestClient1.main(TestTestClient1.java:375)
-- Calling create(ecdoood)
-- Failed: create(ecdoood)
-- Return value from create(ecdoood): null.
其中TestHome是lookup里面的jndi。请问,这个问提应该是什么原因导致的,请高手指教!!!
|
没有绑定名字吧?
|
jndi名字你没有帮顶好/