You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by Paul Szczesniak <PS...@OptioSoftware.com> on 2001/11/05 15:27:15 UTC

Error in connecting to EJB

I get the error message 'Error in connecting to EJB' when trying to use SOAP
2.2 on Tomcat 4.0 to connect to an EJB in JOnAS 2.3 on Solaris.  I've
followed a similar thread on this board that suggested that the problem is
CLASSPATH related.  However, I have a servlet on the Tomcat server that
successfully accesses the desired EJB on the local machine and I also have
an application that sends a SOAP message to this server that successfully
accesses an EJB on another machine (JOnAS 2.2.7 on Win NT Workstation).
These achievements lead me to believe that it's not the CLASSPATH that's
responsible for this error.
I've included a partial list of the stack dump that shows the EJB being
invoked (tpserv.JOnASosTPAuthHome_Stub.create).


<SOAP-ENV:Body><SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>Error in connecting to EJB</faultstring>
<faultactor>/soap/servlet/rpcrouter</faultactor>
<detail>
<stackTrace>java.lang.reflect.InvocationTargetException:
java.rmi.ServerError: Error occurred in server thread; nested exception is:
java.lang.NoSuchMethodError
java.lang.NoSuchMethodError
        at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
all.java:245)
        at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:354)
        at
org.objectweb.jonas.rmifilters.RemoteStub.invoke(RemoteStub.java:87)
        at
tpserv.JOnASosTPAuthHome_Stub.create(classes\tpserv\JOnASosTPAuthHome_Stub.j
ava:36)
        at java.lang.reflect.Method.invoke(Native Method)
        at
org.apache.soap.providers.StatelessEJBProvider.locate(StatelessEJBProvider.j
ava:270)
        at
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:28
5)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

Regards,
T. Paul Szczesniak