1 Reply Latest reply on Sep 6, 2012 9:47 AM by Wolf-Dieter Fink

    JBAS011843: Failed instantiate InitialContextFactory in a Session Bean

    Ri Ma Newbie

      Using there properies in a Session Bean to

                     

      Properties env = new Properties();

                     env.setProperty("java.naming.provider.url", "jnp://localhost:1099");

                     env.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");

                     env.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");

       

      I get following error

       

      15:42:35,343 INFO  [stdout] (EJB default - 1)  Error javax.naming.NameNotFoundException: eis/IMSConnectionFactory -- service jboss.naming.context.java.eis.IMSConnectionFactory

      15:42:35,343 ERROR [stderr] (EJB default - 1) javax.naming.NameNotFoundException: eis/IMSConnectionFactory -- service jboss.naming.context.java.eis.IMSConnectionFactory

      15:42:35,343 ERROR [stderr] (EJB default - 1)     at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:97)

      15:42:35,343 ERROR [stderr] (EJB default - 1)     at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:177)

      15:42:35,343 ERROR [stderr] (EJB default - 1)     at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:113)

      15:42:35,343 ERROR [stderr] (EJB default - 1)     at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:213)

      15:42:35,343 ERROR [stderr] (EJB default - 1)     at javax.naming.InitialContext.lookup(Unknown Source)

      15:42:35,343 ERROR [stderr] (EJB default - 1)     at de.bundeswehr.wewis.bussineslogic.JCAClient.getJCA(JCAClient.java:64)

      15:42:35,343 ERROR [stderr] (EJB default - 1)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      15:42:35,343 ERROR [stderr] (EJB default - 1)     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

      15:42:35,343 ERROR [stderr] (EJB default - 1)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

      15:42:35,343 ERROR [stderr] (EJB default - 1)     at java.lang.reflect.Method.invoke(Unknown Source)

      15:42:35,343 ERROR [stderr] (EJB default - 1)     at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)

      15:42:35,343 ERROR [stderr] (EJB default - 1)     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      15:42:35,359 ERROR [stderr] (EJB default - 1)     at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

      15:42:35,359 ERROR [stderr] (EJB default - 1)     at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)

      15:42:35,359 ERROR [stderr] (EJB default - 1)     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      15:42:35,359 ERROR [stderr] (EJB default - 1)     at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)

      15:42:35,359 ERROR [stderr] (EJB default - 1)     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      15:42:35,359 ERROR [stderr] (EJB default - 1)     at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)

      15:42:35,359 ERROR [stderr] (EJB default - 1)     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      15:42:35,359 ERROR [stderr] (EJB default - 1)     at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

      15:42:35,359 ERROR [stderr] (EJB default - 1)     at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)

      15:42:35,359 ERROR [stderr] (EJB default - 1)     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      15:42:35,359 ERROR [stderr] (EJB default - 1)     at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)

      15:42:35,359 ERROR [stderr] (EJB default - 1)     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      15:42:35,360 ERROR [stderr] (EJB default - 1)     at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:228)

      15:42:35,360 ERROR [stderr] (EJB default - 1)     at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:304)

      15:42:35,360 ERROR [stderr] (EJB default - 1)     at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190)

      15:42:35,360 ERROR [stderr] (EJB default - 1)     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      15:42:35,360 ERROR [stderr] (EJB default - 1)     at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropogatingInterceptor.processInvocation(EJBRemoteTransactionPropogatingInterceptor.java:80)

      15:42:35,376 ERROR [stderr] (EJB default - 1)     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      15:42:35,392 ERROR [stderr] (EJB default - 1)     at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

      15:42:35,392 ERROR [stderr] (EJB default - 1)     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      15:42:35,392 ERROR [stderr] (EJB default - 1)     at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)

      15:42:35,392 ERROR [stderr] (EJB default - 1)     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      15:42:35,392 ERROR [stderr] (EJB default - 1)     at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

      15:42:35,392 ERROR [stderr] (EJB default - 1)     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      15:42:35,392 ERROR [stderr] (EJB default - 1)     at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)

      15:42:35,392 ERROR [stderr] (EJB default - 1)     at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

      15:42:35,392 ERROR [stderr] (EJB default - 1)     at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

      15:42:35,392 ERROR [stderr] (EJB default - 1)     at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)

      15:42:35,392 ERROR [stderr] (EJB default - 1)     at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler.invokeMethod(MethodInvocationMessageHandler.java:300)

      15:42:35,392 ERROR [stderr] (EJB default - 1)     at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler.access$200(MethodInvocationMessageHandler.java:64)

      15:42:35,392 ERROR [stderr] (EJB default - 1)     at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler$1.run(MethodInvocationMessageHandler.java:194)

      15:42:35,392 ERROR [stderr] (EJB default - 1)     at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

      15:42:35,392 ERROR [stderr] (EJB default - 1)     at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)

      15:42:35,392 ERROR [stderr] (EJB default - 1)     at java.util.concurrent.FutureTask.run(Unknown Source)

      15:42:35,392 ERROR [stderr] (EJB default - 1)     at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)15:42:35,408 ERROR [stderr] (EJB default - 1)     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

      15:42:35,408 ERROR [stderr] (EJB default - 1)     at java.lang.Thread.run(Unknown Source)

      15:42:35,408 ERROR [stderr] (EJB default - 1)     at org.jboss.threads.JBossThread.run(JBossThread.java:122)

       

      It is urgent. Can somebody help