I have a servlet that runs on an intranet web server using Tomcat. The servlet is supposed to access a remote (that is, outside the corporate firewall) SOAP service, invoke an operation, and then format the response into HTML and pass the result back to a user's browser. The servlet uses Axis client-side classes to create the call, invoke the operation, and deserialize the response into an object.

I've set up Tomcat so that the servlet can get out through the firewall, and verified that the connection is in fact being made. I've also set up a test program that uses the same class to connect to the remote service, and the code itself works fine.

But as a servlet running under Tomcat, I get this exception:

Connection reset by peer: JVM_recv in socket input stream read

at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:116)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:535)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:131)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)

.. and so on ....

I've asked this question on the Tomcat users mailing list and received no response, so I'm hoping someone here has seen this, or has done something similar and gotten it to work.

Thanks,

Steven Gollery
[EMAIL PROTECTED]

Reply via email to