JBoss Community

Re: Remote EJB3 client deploy fail.

created by Kirill Mikhailov in EJB3 - View the full discussion

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/EJB+invocations+from+a+remote+client+using+JNDI



Good luck!

Reply to this message by going to Community

Start a new discussion in EJB3 at Community