您好,欢迎访问三七文档
Jboss学习记录JMS相关org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'jbossQueueConnectionFactory'definedinfile[D:\zhjk_workspace\IntegrationTest\src\integration.xml]:Invocationofinitmethodfailed;nestedexceptionisjavax.naming.NoInitialContextException:Cannotinstantiateclass:org.jnp.interfaces.NamingContextFactory[Rootexceptionisjava.lang.ClassNotFoundException:org.jnp.interfaces.NamingContextFactory]atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1336)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)atjava.security.AccessController.doPrivileged(NativeMethod)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)atorg.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)atorg.springframework.context.support.FileSystemXmlApplicationContext.init(FileSystemXmlApplicationContext.java:140)atorg.springframework.context.support.FileSystemXmlApplicationContext.init(FileSystemXmlApplicationContext.java:94)atwcs.integration.core.jms.JMSSendMessageTestCase.setUp(JMSSendMessageTestCase.java:14)atjunit.framework.TestCase.runBare(TestCase.java:128)atjunit.framework.TestResult$1.protect(TestResult.java:106)atjunit.framework.TestResult.runProtected(TestResult.java:124)atjunit.framework.TestResult.run(TestResult.java:109)atjunit.framework.TestCase.run(TestCase.java:120)atorg.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)atorg.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)atorg.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)atorg.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)atorg.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)atorg.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)Causedby:javax.naming.NoInitialContextException:Cannotinstantiateclass:org.jnp.interfaces.NamingContextFactory[Rootexceptionisjava.lang.ClassNotFoundException:org.jnp.interfaces.NamingContextFactory]atjavax.naming.spi.NamingManager.getInitialContext(UnknownSource)atjavax.naming.InitialContext.getDefaultInitCtx(UnknownSource)atjavax.naming.InitialContext.init(UnknownSource)atjavax.naming.InitialContext.init(UnknownSource)atorg.springframework.jndi.JndiTemplate.createInitialContext(JndiTemplate.java:114)atorg.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:86)atorg.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:130)atorg.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:155)atorg.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:95)atorg.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105)atorg.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:193)atorg.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:179)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1367)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1333)...26moreCausedby:java.lang.ClassNotFoundException:org.jnp.interfaces.NamingContextFactoryatjava.net.URLClassLoader$1.run(UnknownSource)atjava.security.AccessController.doPrivileged(NativeMethod)atjava.net.URLClassLoader.findClass(UnknownSource)atjava.lang.ClassLoader.loadClass(UnknownSource)atsun.misc.Launcher$AppClassLoader.loadClass(UnknownSource)atjava.lang.ClassLoader.loadClass(UnknownSource)atjava.lang.ClassLoader.loadClassInternal(UnknownSource)atjava.lang.Class.forName0(NativeMethod)atjava.lang.Class.forName(UnknownSource)atcom.sun.naming.internal.VersionHelper
本文标题:Jboss学习记录
链接地址:https://www.777doc.com/doc-3967551 .html