Hi Wolfgang,
I was busy other task, sorry for late response..
My JNDIView shows as below -
+- PaymentAdmin (class: org.jnp.interfaces.NamingContext) | +- AuthenticationBean (class: org.jnp.interfaces.NamingContext) | | +- local (proxy: $Proxy146 implements interface com.tarangtech.mtg.authentication.ejb.AuthenticationLocal,interface org.jboss.ejb3.JBossProxy) | | +- remote (proxy: $Proxy144 implements interface com.tarangtech.mtg.authentication.ejb.AuthenticationRemote,interface org.jboss.ejb3.JBossProxy) +- UILConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)
And here is my code below -
ctx = new InitialContext();
Object obj = ctx.lookup("PaymentAdmin/AuthenticationBean/remote");
AuthenticationRemote auRem = (AuthenticationRemote)obj;
Exception -
javax.naming.CommunicationException [Root exception is java.io.InvalidClassException: org.jboss.ejb3.remoting.BaseRemoteProxy; local class incompatible: stream classdesc serialVersionUID = -2711693270411201590, local class serialVersionUID = 1126421850898582900]
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:723)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:588)
at javax.naming.InitialContext.lookup(Unknown Source)
at Main.main(Main.java:13)
Caused by: java.io.InvalidClassException: org.jboss.ejb3.remoting.BaseRemoteProxy; local class incompatible: stream classdesc serialVersionUID = -2711693270411201590, local class serialVersionUID = 1126421850898582900
at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.rmi.MarshalledObject.get(Unknown Source)
at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:653)
... 3 more
What's wrong here?
Please assist me ..
Thanks,
Nagesh