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

Kirill Mikhailov do-not-reply at jboss.com
Tue Oct 2 00:25:37 EDT 2012


Kirill Mikhailov [https://community.jboss.org/people/kmrol] created the discussion

"Re: Remote EJB3 client deploy fail."

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

--------------------------------------------------------------
Hi Bob,

1. add "Dependencies: org.jboss.remote-naming" to META-INF/manifest.mf of your .WAR file. This will load org.jboss.remote-naming module and eliminate "Failed instantiate InitialContextFactory" exception.

2. do not use (remove) property "jboss.naming.client.ejb.context": true from jndi map
instead of this, make jboss-ejb-client.properties file and place it to WEB-INF folder vs content like this:
remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false 
remote.connections=default 
remote.connection.default.host=your host
remote.connection.default.port=your port
remote.connection.default.username=you user
remote.connection.default.password=you password
remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false 

 https://docs.jboss.org/author/display/AS71/Class+Loading+in+AS7 https://docs.jboss.org/author/display/AS71/Class+Loading+in+AS7
 https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+client+using+JNDI https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+client+using+JNDI

Good luck!
--------------------------------------------------------------

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

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/20121002/a7f1b28c/attachment-0001.html 


More information about the jboss-user mailing list