> So what was the question? The original post isn't here. Makes it hard to help.
Eric,
I can see the original post, but here it is again.
#########------ original post start
I have been searching on the Internet about this, but no real success.
I am using JBoss 4.2.1-GA. I have ClassA and ClassB, with interfaces
IClassA and IClassB and a stateless session bean returning IClassA
(while actually returning ClassB instance). I get the exception when I
try to fetch it.
Here is the stack trace:
---------- stack trace start
ERROR SocketClientInvoker - Got marshalling exception, exiting
java.lang.ClassNotFoundException: test.domain.ClassB
at
org.jboss.remoting.serialization.ClassLoaderUtility.loadClass(ClassLoaderUtility.java:
82)
at
org.jboss.remoting.loading.RemotingClassLoader.loadClass(RemotingClassLoader.java:
76)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:
319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at
org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:
174)
at
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:
1544)
at
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:
1466)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:
1699)
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:
348)
at
org.jboss.aop.joinpoint.InvocationResponse.readExternal(InvocationResponse.java:
122)
at
java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:
1755)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:
1717)
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:
1908)
at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:
1832)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:
1719)
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:
348)
at
org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObjectVersion2_2(JavaSerializationManager.java:
239)
at
org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:
133)
at
org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:
120)
at
org.jboss.remoting.transport.socket.MicroSocketClientInvoker.versionedRead(MicroSocketClientInvoker.java:
943)
at
org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:
584)
at
org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:
122)
at org.jboss.remoting.Client.invoke(Client.java:1550)
at org.jboss.remoting.Client.invoke(Client.java:530)
at
org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:
62)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
at
org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:
61)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
at
org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:
53)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
at
org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:
72)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
at
org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:
103)
at $Proxy0.getIClassA(Unknown Source)
at test.client.TestClient.test1(TestClient.java:163)
at test.client.TestClient.run(TestClient.java:237)
at test.client.TestClient.main(TestClient.java:290)
---------- stack trace end
#########------ original post end
Question: When I try to fetch ClassA or ClassB instance using
getClassA or getClassB methods of StatelessSessionBeanTest, the client
bombs with the exception in the original post. That is, it doesn't
know how to load the entity classes (ClassA and ClassB) from the JBoss
server. I assume this is possible because JBoss is setting up the RMI
codebase (I've seen it say that when booting up - at http://127.0.0.1:8083).
Is this possible and, if it is, what is the problem? Better, do you
have a pointer to some working example on the Web? I want to use this
so clients can be automatically "upgraded" when some change happens to
entity beans - if the interface stays the same, the client should
continue to work, but it will work with the new version (so the logic
that changed can actually work).
Thanks for the note.
asoto - 05 Oct 2007 19:23 GMT
On Oct 5, 8:19 am, wi...@yahoo.com wrote:
Wi...
Have you found the solution to this problem.
I'm also having the same problem but so far have not been able to
figure it out.
Thanks
Alex
wimxa@yahoo.com - 08 Oct 2007 21:46 GMT
> Wi...
>
[quoted text clipped - 3 lines]
> Thanks
> Alex
Alex,
Unfortunately no. I have also posted to JBoss forums - no replies yet.
This doesn't seem to be capable in JBoss, even though it's all over
the place in the config files - it seems that it is just there for
some underlying things or as a future reference...
Best wishes!