1 Reply Latest reply on May 7, 2009 12:28 PM by jaikiran pai

    JBossALL client jar

    Yaakov Chaikin Newbie


      Not really sure if this is the right place to ask this, but I can't really find a better place...

      I am running a maven-based java client to a remote session bean. The beans are deployed on JBoss 5.0.1-GA. When I manually include a jbossall-client.jar from the [jboss-home]/client directory in the classpath, everything works just fine...

      However, when I include (seemingly) the same JAR pulled from JBoss maven repository (http://repository.jboss.org/maven2/org/jboss/client/jbossall-client/5.0.0.GA), it throws the following exception (which tells me that the pulled JAR is missing some classes):
      java.lang.ClassCastException: javax.naming.Reference cannot be cast to org.omg.CORBA.Object
      at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:212)

      I thought it might have been because the server is 5.0.1 and the JAR's version is 5.0, but I downloaded JBoss 5.0 and the result is the same.

      Does anyone know if JBoss just messed up and uploaded jbossall-client.jar to the repository that is missing some classes or am I missing something else here?