Craig,

Check out this K.B.  Although the stack trace isn't identical, it's likely
the same problem as the first one listed in this K.B.:

JRun 3.0: EJB run-time errors
http://www.allaire.com/Handlers/index.cfm?ID=17486&Method=Full

Scott Stirling
Allaire Corporation
http://www.allaire.com/developer/jrunreferencedesk/

> -----Original Message-----
> From: Craig Altenburg [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 08, 2000 3:45 PM
> To: [EMAIL PROTECTED]
> Subject: Calling EJBs from Apache Tomcat
> 
> 
> 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._js
> pService(_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(ServletWra
> pper.java:503)
>         at 
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
>         at 
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro
> cessConnection(Ajp12ConnectionHandler.java, 
> Compiled Code)
>         at 
> org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEnd
> point.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.

Reply via email to