Hello,
I'm porting an application from jboss 2.4 to jboss 4.0.2.
During ejb lookup in jboss 4.0.2 from the remote client the following exception is thrown:
javax.naming.CommunicationException [Root exception is java.io.InvalidClassException: org.jboss.invocation.InvokerInterceptor; unable to create instance]
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:707)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
If I set CallByValue to true I get the corresponding exception for the MarshallingInvokerInterceptor:
javax.naming.CommunicationException [Root exception is java.io.InvalidClassException: org.jboss.invocation.MarshallingInvokerInterceptor; unable to create instance]
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:707)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
I don't think it is missing some classes since I packaged into the client jar all library jars that are used for linking.
Does someone have an idea, what the reason of this exception could be?
Frank
I got it working by picking the class files for the client jar one by another by hand. I guess there was some conflict with different versions of classes in different libraries.