I've been trying to call an EJB (running under JRun) from a JSP running under
the Apache Tomcat. (Both on RedHat Linux 6.2)
After copying "ejipt_exports.jar", "ejipt_client.jar" and
"ejipt_jms_clinet.jar to the "WEB-INF/lib" directory of the web application
where the JSP resides I am able to locate the session bean and create a new
instance. I can also call methods in the bean's external interface.
The problem that I now have is that one method that returns an array of
classes fails when trying to return it's results (see the stack trace below).
The same method works fine if I call it from a JSP running under the same
JRun server that hosts the EJB.
I've tried running JRun and Tomcat with both JDK 1.2.2 and the latest beta of
JDK 1.3 with no luck.
Any Suggestions?
========= Stack Trace =========
java.rmi.UnmarshalException: error unmarshalling return; nested exception
is:
java.io.EOFException: Expecting code
java.io.EOFException: Expecting code
at java.io.ObjectInputStream.peekCode(ObjectInputStream.java,
Compiled Code)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java,
Compiled Code)
at java.io.ObjectInputStream.inputArray(ObjectInputStream.java,
Compiled Code)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java,
Compiled Code)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java,
Compiled Code)
at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java, Compiled
Code)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java, Compiled Code)
at allaire.ejipt._CallableStub.call(_CallableStub.java, Compiled Code)
at allaire.ejipt._CallableStub._call(_CallableStub.java, Compiled
Code)
at com.optix.ejb.OASObject_Stub.listScreen(OASObject_Stub.java:1751)
at
_0002fTC_0002dOASTest_00032_0002ejspTC_0002dOASTest2_jsp_0._jspService(_0002fTC_0002dOASTest_00032_0002ejspTC_0002dOASTest2_jsp_0.java:147)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
Code)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:174)
at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
Code)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java,
Compiled Code)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java,
Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)
------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.