creating intialcontext without properties causing exception eg InitialContext context = new InitialContext()
jaigates Apr 5, 2013 11:33 AMCreating intialcontext without properties causing exception. Let me know how to solve this ?
eg.. InitialContext context = new InitialContext()
Suprisigly it is pointing to org.apache.openejb.client.LocalInitialContextFactory without any thing set. Looks like it could be a another bug on cacheing, as previous deployed project had this,
20:42:55,538 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) javax.naming.NamingException: JBAS011843: Failed instantiate InitialContextFactory org.apache.openejb.client.LocalInitialContextFactory from classloader ModuleClassLoader for Module "deployment.GlobalAPI-EAR.ear.EJB.jar:main" from Service Module Loader
20:42:55,538 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at org.jboss.as.naming.InitialContextFactoryBuilder.createInitialContextFactory(InitialContextFactoryBuilder.java:64)
20:42:55,538 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
20:42:55,538 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
20:42:55,538 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at javax.naming.InitialContext.init(Unknown Source)
20:42:55,538 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at javax.naming.InitialContext.<init>(Unknown Source)
20:42:55,538 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at org.ibo.globalapi.service.school.api.impl.SchoolServiceImpl.getSchoolsInternal(SchoolServiceImpl.java:72)
20:42:55,538 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at org.ibo.globalapi.service.school.api.impl.SchoolServiceImpl.getSchools(SchoolServiceImpl.java:188)
20:42:55,538 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
20:42:55,538 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
20:42:55,538 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
20:42:55,538 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at java.lang.reflect.Method.invoke(Unknown Source)
20:42:55,538 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)
20:42:55,538 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
20:42:55,538 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
20:42:55,538 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:58)
20:42:55,538 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
20:42:55,539 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
20:42:55,539 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:58)
20:42:55,539 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
20:42:55,539 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)
20:42:55,539 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
20:42:55,539 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)
20:42:55,539 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
20:42:55,539 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
20:42:55,539 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
20:42:55,539 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
20:42:55,539 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)
20:42:55,539 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
20:42:55,539 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)
20:42:55,539 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
20:42:55,539 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:248)
20:42:55,539 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:315)
20:42:55,539 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:214)
20:42:55,539 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
20:42:55,539 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
20:42:55,539 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
20:42:55,539 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)
20:42:55,539 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
20:42:55,539 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)
20:42:55,539 ERROR [stderr] (http-localhost/127.0.0.1:8080-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)