Hi!
I'm trying to setup a web application on Apache Tomcat that uses EJB services on JBoss. (I don't want JBoss with Tomcat embedded, since I plan to deploy the webserver and application server on 2 different machines).
If I deploy both the EJB and web application on JBoss I have no problem, but when I deploy my web application on Apache Tomcat I get the following exception when calling my EJB:
java.rmi.MarshalException: error marshalling arguments; nested exception is:
java.net.SocketException: Connection aborted by peer: socket write error
java.net.SocketException: Connection aborted by peer: socket write error
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java:91)
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:107)
at java.io.ObjectOutputStream.drain(ObjectOutputStream.java:1458)
at java.io.ObjectOutputStream.setBlockData(ObjectOutputStream.java:1481)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:402)
at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:263)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:101)
at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:138)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80)
at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:198)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
(I have copied all the client files from JBOSS/client to CATALINA/shared/lib)
Thanks for any help!
Anders