4 Replies Latest reply on Nov 6, 2003 4:23 AM by steven_anto

    JBoss-4.0.0DR2 remote client JNDI connection problem

    Sean Radford Novice

      Anyone know what's changed from JBoss-3 (and an earlier CVS build of JBoss 4) to JBoss-4.0.0DR2 that now causes my JUnit tests to fall over.

      Basically, I'm trying to do a JNDI lookup to a SessionBean...

      With jboss-all-client.jar in the classpath I get:
      java.lang.NoClassDefFoundError: org/jboss/system/ServiceMBeanSupport

      So I add jboss-system.jar (not a client jar!) and get:
      java.lang.NoClassDefFoundError: javax/management/NotificationBroadcasterSupport

      So I add jbossjmx-ant.jar and get:
      java.lang.NoClassDefFoundError: Lorg/jboss/remoting/ClientInterceptor;

      So I add jboss-remoting.jar (not a client jar!) and get:
      Caused by: java.io.InvalidClassException: org.jboss.invocation.remoting.RemotingAdapter; unable to create instance
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1633)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
      at java.util.HashMap.readObject(HashMap.java:1006)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:838)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
      at org.jboss.proxy.ClientContainer.readExternal(ClientContainer.java:113)
      at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1686)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1644)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
      at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
      at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:30)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:522)
      ... 46 more

      Any ideas, as I NEED help - spend all day on this :-( (and I don't want this project to have to use JBoss-3.xx)

      Thanks in advance,

      Sean