当Jndi Namingmanager正在处理Javax.Naming.Reference对象时,发生了例外



我正在尝试从Web Sphere Application Server中的Java代码连接DB2。我正在遵循以下例外。请建议任何一个。

由:com.ibm.websphere.naming.CannotinStantiateObjectException:当Jndi NamingManager正在处理Javax.Neming.Neming.Reference对象时发生异常。ibm.ws.naming.jndicos.cncontextimpl.processboundobjectforlookup(cncontextimpl.java:2877),com.ibm.ws.neming.jndicos.cncontextimpl.processorsolveresults(cncontextimpl.java:3974.jnemists.jnnding:3974)cncontextimpl.dolookup(cncontextimpl.java:1876)at com.ibm.ws.naming.jndicos.jndicos.cncontextimpl.dolookup(cncontextimpl.java:1777)1434)in com.ibm.ws.naming.jndicos.cncontextimpl.lookup(cncontextimpl.java:616),com.ibm.ws.neming.util.wsninitctx.util.wsninitctx.lookup(wsninitctx.java:165)。com.deere.u90.iaf.jdbc.connection.connectionManager.Initializeenvorment(ConnectionManager.java:276)... 38造成:Javax.xml.Stream.factoryConfigurationError:Provider javax.xml.stream.xml.stream.xml.xmlin beatut intput intput intput intput intput intect intput intect intect note notput intectote notputfactory。:java.util.serviceconfigurationError:javax.xml.Stream.xmlinputFactory:提供者com.sun.sun.xml.internal ternalle.xmlinputfactoryimpl ind subtype in Javax.xml.stream.stream.xmlinputfactory.stream.new source.newnew source at j.xmlin.xmlin.new sound sound sound sound sound sound sound sound sation at at in newnd sound atnect at at in newnd newn newn newndJava:587)ar.ibm.websphere.product.metadata.im.im.immetadata.parseinstallregistryfiles(insetadata.java:399)com.ibm.m.m.websphere.product.metadata.im.im.im.im.immetadata.(immetadata.java.java:269)com.ibm.websphere.product.metadata.im.immetadata.getimmetadatainstance(insetadata.java:133)on Com.ibm.websphere.product.metadata.wasmetadata.wasmetadata.parsemetadatafiles(wasmetadata.java.java.java:9339)produck.metadata.wasmetadata。(wasmetadata.java:784)在com.ibm.websphere.product.metadata.wasmetadata.getwasmetadatainstance(wasmetadata.java:215)at com.ibm.m.m.m.websphere.websphere.productory.wasectory.wasdirctory.initirctory(wasdirctory):1415)在com.ibm.websphere.product.wasdirectory.getimloglogloglocation(wasdirectory.java:435)上,com.ibm.websphere.product.product.versioninfo.printsource(dodentInfo.java:1534)在com.ibm.m.m.m.webersphere.product。versionInfo.printreport(prosentInfo.java:1322)at com.ibm.websphere.product.product.versioninfo.runreport(versionInfo.java:1064)com.ibm.m.m.m.m.m.websphere.product.product.versioninfo.runreport.runreport.runreport(dodyinfo.java:1025)。。java:748)在java.lang.j9vminternals.newinstanceimpl(本机方法)上的java.lang.class.newinstance(class.java:1899)com.ibm.m.m.ejs.j2c.j2c.j2c.j2c.j2c.j2c.j2ccutilityclass.createmcclass.createmcfentry(j2ccutersilly class.j2ccutility class classclity classclity classclitelycl:4688)在com.ibm.ejs.j2c.connectionfactorybuildersererver.createmcfandpm(ConnectionFactoryBuilderServererimpl.java:592)in com.ibm.ejs.j2c.connectionfactorybuildersererver.processobextance(connecterfarcebectorybuilimmy.11) 2C.ServerFunction.ProcessObjectInstancearies.jndi.objectFactoryHelper.getObjectInstance(ObjectFactoryHelper.java:89)on org.apache.aries.jndi.osgiobjectfactorybuilder.getObigntInstance(osgiobigntfactorybuilder.java:62) ER.Java:311)在com.ibm.ws.naming.util.helpers.helpers.processerializedobjectobjectforlookupext(helpers.java:1122)... 50更多

我面临同一问题,这是我的决议我在IBM Admin Console中错误地拼写了JTA数据源,并且在我的持久性XML中使用了其他名称,因此WebSphere无法连接。请检查管理员控制台中的"资源"选项卡,并验证您的JTA数据源名称,如持久性XML

所声明

相关内容

  • 没有找到相关文章

最新更新