2 Replies Latest reply on Oct 2, 2012 12:25 AM by kmrol

    Remote EJB3 client deploy fail.

    r4_1314

      Hi all,

       

      I have a war builds on spring jndi template to invoke ejbs which deployed on a remote Jboss as 7.1.0 server.  And my deploy server also a jboss 7.1.0 server.

      The jndi config is

       

      "java.naming.factory.initial": "org.jboss.naming.remote.client.InitialContextFactory",

      "java.naming.security.principal":"user",

      "java.naming.security.credentials":"user",

      "java.naming.provider.url": "remote://192.168.1.153:4447",

      "jboss.naming.client.ejb.context": true

       

      The first time I packed the war with a jboss-client-7.1.0.Final.jar, but I got the linkage error of org/jboss/remoting/Connection. So I removed that jar, deployed again. Another error appeared

       

      (http--0.0.0.0-8080-1) javax.naming.NamingException: JBAS011843: Failed instantiate InitialContextFactory org.jboss.naming.remote.client.InitialContextFactory from classloader ModuleClassLoader for Module "deployment.abc.war:main" from Service Module Loader

      18:35:33,214 ERROR [stderr] (http--0.0.0.0-8080-1) javax.naming.NamingException: JBAS011843: Failed instantiate InitialContextFactory org.jboss.naming.remote.client.InitialContextFactory from classloader ModuleClassLoader for Module "deployment.abc.war:main" from Service Module Loader

      18:35:33,215 ERROR [stderr] (http--0.0.0.0-8080-1)           at org.jboss.as.naming.InitialContextFactoryBuilder.createInitialContextFactory(InitialContextFactoryBuilder.java:64)

      18:35:33,225 ERROR [stderr] (http--0.0.0.0-8080-1)           at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:681)

      18:35:33,226 ERROR [stderr] (http--0.0.0.0-8080-1)           at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:305)

      18:35:33,226 ERROR [stderr] (http--0.0.0.0-8080-1)           at javax.naming.InitialContext.init(InitialContext.java:240)

      18:35:33,227 ERROR [stderr] (http--0.0.0.0-8080-1)           at javax.naming.InitialContext.<init>(InitialContext.java:214)

      18:35:33,227 ERROR [stderr] (http--0.0.0.0-8080-1)           at org.springframework.jndi.JndiTemplate.createInitialContext(JndiTemplate.java:136)

      18:35:33,228 ERROR [stderr] (http--0.0.0.0-8080-1)           at org.springframework.jndi.JndiTemplate.getContext(JndiTemplate.java:103)

       

      Any idea for this?