Hi, I need to connect
to legacy jboss servers from our new jboss 3.0.6 servers. I can’t get
a remote reference to my EJB running on JBoss 2.4.4 from
code running inside jboss 3.0.6. I have made this work
between jboss 2.4.4 and jboss
3.0.4 – all I did was put the old 2.4.4 jboss-client.jar
into the 3.0.4 deploy directory (probably not such a good idea but it worked!). However if I
simply put the old jboss 2.4.4 jboss-client.jar
into my deploy directory with jboss 3.0.6 I get the
following error on the jndi lookup. javax.naming.CommunicationException. Root exception is java.rmi.ServerException: RemoteException
occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling
arguments; nested exception is: java.lang.ClassNotFoundException: org.jnp.interfaces.FastNamingProperties
(no security manag er: RMI class loader disabled) at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133) at org.jnp.server.NamingServer_Stub.lookup(Unknown
Source) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:484) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:463) at javax.naming.InitialContext.lookup(InitialContext.java:347) at freeml.ejb.MailArchiverBean.getArchiveManager(MailArchiverBean.java:1025) at freeml.ejb.MailArchiverBean.getBothArchiveManager(MailArchiverBean.java:910) at freeml.ejb.MailArchiverBean.ejbCreate(MailArchiverBean.java:388) 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.lang.reflect.Method.invoke(Method.java:324) at
org.jboss.ejb.plugins.StatefulHASessionPersistenceManager.createSession(StatefulHASession PersistenceManager.java:135) at org.jboss.ejb.StatefulSessionContainer.createHome(StatefulSessionContainer.java:441) at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown
Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at
org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invokeHome(StatefulSessionCon tainer.java:763) at
org.jboss.ejb.plugins.StatefulHASessionSynchronisationInterceptor.invokeHome(StatefulHASe ssionSynchronisationInterceptor.java:81) at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnect ionInterceptor.java:215) at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:105) at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invokeHome(StatefulSessionInstan ceInterceptor.java:128) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:111) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:201) at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:62) at org.jboss.ejb.plugins.CleanShutdownInterceptor.invokeHome(CleanShutdownInterceptor.java:1 26)… I have tried
accessing the EJB in jboss 2.4.4 directly using a
test console client and discovered it works with the older jboss-client.jar
at the beginning of my classpath: CLASSPATH=/home/work/nick/JBoss-2.4.4/client/jboss-client.jar:\ /home/nick/JBoss-2.4.4/client/jnp-client.jar:\ /home/nick/jboss-3.0.6/client/jboss-client.jar:\ /home/nick/jboss-3.0.6/client/jbosssx-client.jar:\ /home/nick/jboss-3.0.6/client/jnp-client.jar:\ /home/nick/jboss-3.0.6/client/jboss-j2ee.jar:\ /home/nick/jboss-3.0.6/client/jbossall-client.jar:\ … but when it’s at the end I get a
similar error. CLASSPATH=/home/nick/jboss-3.0.6/client/jboss-client.jar:\ /home/nick/jboss-3.0.6/client/jbosssx-client.jar:\ /home/nick/jboss-3.0.6/client/jnp-client.jar:\ /home/nick/jboss-3.0.6/client/jboss-j2ee.jar:\ /home/nick/jboss-3.0.6/client/jbossall-client.jar:\ … /home/work/nick/JBoss-2.4.4/client/jboss-client.jar:\ /home/nick/JBoss-2.4.4/client/jnp-client.jar:\ This
points
to class conflicts between the old 2.4.4 jboss-client
classes and the new 3.0.6 jboss-client classes. java.rmi.ServerException: RemoteException
occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling
arguments; nested exception is: java.lang.ClassNotFoundException: org.jnp.interfaces.FastNamingProperties
(no security manag er: RMI class loader disabled) Does anybody know
the right way to do this? Cheers and
regards, nick |