remote ejb call EAP 6.1->AS6: NoClassDefFoundError: Could not initialize class org.jnp.interfaces.NamingContext
devsisodia Oct 23, 2013 4:42 PMHello,
My application has ejb client inside EAP 6.1 that need to invoke remote ejb hosted on Jboss AS6. For this i created module in eap6.1 and in the module.xml file listed resources as all the jars present in JBOSS_HOME/client directory.
Here i am getting NoClassDefFoundError: Could not initialize class org.jnp.interfaces.NamingContext.
Quick help will be appreciated.
19:37:40,875 INFO [com.tatacommunications.tp.integration.glowpoint.SdpServicesMediator] (pool-3-thread-14) before InitialContext
19:37:40,876 ERROR [org.jboss.as.ejb3.invocation] (pool-3-thread-14) JBAS014134: EJB Invocation failed on component GlowpointManagerMBean for method public abstract voi
d com.tatacommunications.tp.integration.glowpoint.GlowpointManager.synchronize(int): javax.ejb.EJBException: JBAS014580: Unexpected Error
at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInNoTx(CMTTxInterceptor.java:188) [jboss-as-ejb3-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInNoTx(CMTTxInterceptor.java:237) [jboss-as-ejb3-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
at org.jboss.as.ejb3.tx.CMTTxInterceptor.notSupported(CMTTxInterceptor.java:299) [jboss-as-ejb3-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:212) [jboss-as-ejb3-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]
at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [jboss-as-ejb3-7.
2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final-redhat-2.jar:1.1.1.Final-redhat-2]
at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64) [jboss-as-ejb3-7.2.0.Final-redhat
-8.jar:7.2.0.Final-redhat-8]
....
....
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.jnp.interfaces.NamingContext
at org.jnp.interfaces.NamingContextFactory.getInitialContext(NamingContextFactory.java:55) [jbossjmx-ant.jar:6.0.0.Final]
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684) [rt.jar:1.7.0_21]
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307) [rt.jar:1.7.0_21]
at javax.naming.InitialContext.init(InitialContext.java:242) [rt.jar:1.7.0_21]
at javax.naming.InitialContext.(InitialContext.java:216) [rt.jar:1.7.0_21]
at com.tatacommunications.tp.integration.glowpoint.SdpServicesMediator.getAllocationService(SdpServicesMediator.java:28) [glowpoint-integration-management.jar:]
at com.tatacommunications.tp.integration.glowpoint.GlowpointManagerMBean.resolveAllocationServiceRemote(GlowpointManagerMBean.java:337) [glowpoint-integration-management.jar:]