1 Reply Latest reply on Nov 25, 2009 10:19 AM by jaikiran pai

    Call EJB 3 deployed under JBoss 4.2.3  from JBoss 4.0.5

    Jeo Jeo Newbie

      Hello,

      I have an EJB 3 deployed under a JBoss AS 4.2.3 and I have a Web Application deployed under an other server JBoss AS 4.0.5.

      I would like to call the EJB from my Web Application but I'me getting the following Exception :

      javax.naming.CommunicationException [Root exception is java.io.InvalidClassException: org.jboss.remoting.InvokerLocator; local class incompatible: stream classdesc serialVersionUID = -4977622166779282521, local class serialVersionUID = -2909329895029296248]
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:722)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
       at javax.naming.InitialContext.lookup(InitialContext.java:392)
       at com.nordnet.referencing.batch.invoker.EJB3Invoker.execute(EJB3Invoker.java:81)
       at com.nordnet.referencing.batch.BatchLauncher.main(BatchLauncher.java:101)
      Caused by: java.io.InvalidClassException: org.jboss.remoting.InvokerLocator; local class incompatible: stream classdesc serialVersionUID = -4977622166779282521, local class serialVersionUID = -2909329895029296248
       at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
       at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
       at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
       at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
       at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
       at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
       at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
       at java.rmi.MarshalledObject.get(MarshalledObject.java:142)
       at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:652)
       ... 4 more


      My question is : how to call this EJB ? Do I include jbossall-client-4.2.3-GA in my Web Application under JBoss 4.0.5 ???

      Thank in advance for your responses.

      Jeoffrey.