JAX WS 2.0 client - unexpected end of file
I have a web service deployed in JBoss-4.0.5.GA. I connect to it using JAX-WS 2.0. Normally it works correct, but when the server method runs longer than 30 seconds my client got an error (even if I only call a Thread.sleep(35000) in the server method):
javax.xml.ws.WebServiceException: java.net.SocketException: Unexpected end of file from server
The server does not throw an exception immediately, but when it finishes the method (for example 40 seconds after calling it) it throws an exception, that the pipe is broken.
The tricky is, that this problem only occurs at the business server, thats why I do not attach stack traces (I can not access them now). On my test server all methods work correct.
This looks like a timeout, but I did not set the "com.sun.xml.ws.request.timeout" property of the request context (even if this parameter is set, and the request keeps longer, the thrown exception is not the same), and all the settings are the same on my test server.