6 Replies Latest reply on Sep 25, 2013 5:47 AM by Jiorgos Janik

    JBAS011843: Instantiierung von InitialContextFactory

    Jiorgos Janik Newbie

      Hello,

      after trying to migrate from JBoss 7.1.1 a third party jms rar adapter and a standard MDB I got the following error:

       

      13:10:14,996 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 58) MSC000001: Failed to start service jboss.deployment.unit."helloworld-mdb.jar".component.HelloKNESBTopicMDB.START: org.jboss.msc.service.StartException in service jboss.deployment.unit."helloworld-mdb.jar".component.HelloKNESBTopicMDB.START: java.lang.RuntimeException: javax.resource.spi.InvalidPropertyException: JBAS011843: Instantiierung von InitialContextFactory com.webmethods.jms.naming.WmJmsNamingCtxFactory vom Klassenlader ModuleClassLoader for Module "deployment.helloworld-mdb.jar:main" from Service Module Loader fehlgeschlagen

          at org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:57) [jboss-as-ee-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) [rt.jar:1.6.0_43]

          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_43]

          at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_43]

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [rt.jar:1.6.0_43]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [rt.jar:1.6.0_43]

          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_43]

          at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.0.Final-redhat-1.jar:2.1.0.Final-redhat-1]

      Caused by: java.lang.RuntimeException: javax.resource.spi.InvalidPropertyException: JBAS011843: Instantiierung von InitialContextFactory com.webmethods.jms.naming.WmJmsNamingCtxFactory vom Klassenlader ModuleClassLoader for Module "deployment.helloworld-mdb.jar:main" from Service Module Loader fehlgeschlagen

          at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponent.start(MessageDrivenComponent.java:180)

          at org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:54) [jboss-as-ee-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

          ... 7 more

      Caused by: javax.resource.spi.InvalidPropertyException: JBAS011843: Instantiierung von InitialContextFactory com.webmethods.jms.naming.WmJmsNamingCtxFactory vom Klassenlader ModuleClassLoader for Module "deployment.helloworld-mdb.jar:main" from Service Module Loader fehlgeschlagen

          at com.sun.genericra.util.ExceptionUtils.newInvalidPropertyException(ExceptionUtils.java:42)

          at com.sun.genericra.util.ObjectBuilderFactory$JndiObjectBuilder.createObject(ObjectBuilderFactory.java:99)

          at com.sun.genericra.util.ObjectBuilder.build(ObjectBuilder.java:99)

          at com.sun.genericra.inbound.AbstractConsumer.initializeAdministeredObjects(AbstractConsumer.java:91)

          at com.sun.genericra.inbound.AbstractConsumer.<init>(AbstractConsumer.java:56)

          at com.sun.genericra.inbound.async.EndpointConsumer.<init>(EndpointConsumer.java:57)

          at com.sun.genericra.inbound.EndpointConsumerFactory.createEndpointConsumer(EndpointConsumerFactory.java:38)

          at com.sun.genericra.GenericJMSRA.endpointActivation(GenericJMSRA.java:215)

          at org.jboss.jca.core.rar.EndpointImpl.activate(EndpointImpl.java:164) [ironjacamar-core-impl-1.0.17.Final-redhat-1.jar:1.0.17.Final-redhat-1]

          at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponent.start(MessageDrivenComponent.java:178)

          ... 8 more

      Caused by: javax.naming.NamingException: JBAS011843: Instantiierung von InitialContextFactory com.webmethods.jms.naming.WmJmsNamingCtxFactory vom Klassenlader ModuleClassLoader for Module "deployment.helloworld-mdb.jar:main" from Service Module Loader fehlgeschlagen

          at org.jboss.as.naming.InitialContextFactoryBuilder.createInitialContextFactory(InitialContextFactoryBuilder.java:64) [jboss-as-naming-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

          at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:664) [rt.jar:1.6.0_43]

          at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288) [rt.jar:1.6.0_43]

          at javax.naming.InitialContext.init(InitialContext.java:223) [rt.jar:1.6.0_43]

          at javax.naming.InitialContext.<init>(InitialContext.java:197) [rt.jar:1.6.0_43]

          at com.sun.genericra.util.ObjectBuilderFactory$JndiObjectBuilder.createObject(ObjectBuilderFactory.java:94)

          ... 16 more

       

       

      the rar file and the standard-full.txt are changed as it was at 7.1.1. and the modules are configured. The JMS provider is WebMethods

       

      The MDB annotation is:

      @MessageDriven( name="HelloKNESBTopicMDB",

      activationConfig =

      {

          @ActivationConfigProperty(propertyName = "destinationType",propertyValue = "javax.jms.Topic"),

          @ActivationConfigProperty(propertyName = "destinationJndiName", propertyValue = "KNMS_Test_SampleTopic"),

          @ActivationConfigProperty(propertyName = "connectionFactoryJndiName", propertyValue = "KNMSTestGroup_ConnectionFactory")

      })

      @ResourceAdapter("webm-jmsra.rar")

      public class HelloKNESBTopicMDB