10 Replies Latest reply on Jun 18, 2015 11:16 AM by manan28

    Client jar needed for jboss-6.1.0.Final for ejb war application

    manan28

      clien/jbossall-client.jar needs to be imported in web project in order to call ejb hosted on Jboss.

      jbossall-client.jar refers to all other jars(172 of them) in the same folder.

       

      If we only use the jnp-client and jboss-ejb-client-bom dependency we get a classcast exception as below:

      java.lang.ClassCastException: javax.naming.Reference cannot be cast to our custom EJB Remote class.

       

      We are building our project via maven.

      Is there any dependency which can be used for the above mentioned jar so that we dont have to mention each of the jars individually.

       

       

      Any response is greatly appreciated.