webshpere studio application developer 中 jndi 访问DATASOURCE DB.7.2

王朝java/jsp·作者佚名  2006-01-09
宽屏版  字体: |||超大  

webshpere studio application developer 中 jndi 访问DATASOURCE出现下面的错误,请高手帮忙!

在服务器上我设置了DATasource是jdbc/ds1

Get connection failed.

javax.naming.NamingException: The JNDI operation "lookup"on the context "localhost/nodes/localhost/servers/server1" with the name "jdbc/ds1" failed. Please get the root cause Throwable contained in this NamingException for more information. Root exception is java.lang.NoClassDefFoundError: com/ibm/ejs/jts/jts/CurrentFactory

at com.ibm.ws.naming.jndicos.CNContextImpl.suspendTransaction(CNContextImpl.java:4064)

at com.ibm.ws.naming.jndicos.CNContextImpl.cosResolve(CNContextImpl.java:3521)

at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1565)

at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1525)

at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1225)

at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:132)

at javax.naming.InitialContext.lookup(InitialContext.java:359)

at com.portaldev.test.testJNDI.getJndi(testJNDI.java:57)

at com.portaldev.test.testJNDI.main(testJNDI.java:27)

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
© 2005- 王朝网络 版权所有