[jboss-user] [EJB3] - Remote EJB3 client deploy fail.

Bob Kung do-not-reply at jboss.com
Tue Jun 26 07:06:50 EDT 2012


Bob Kung [https://community.jboss.org/people/r4_1314] created the discussion

"Remote EJB3 client deploy fail."

To view the discussion, visit: https://community.jboss.org/message/744203#744203

--------------------------------------------------------------
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?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/744203#744203]

Start a new discussion in EJB3 at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120626/4bf870e3/attachment-0001.html 


More information about the jboss-user mailing list