Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.2.9
-
None
Description
When this SEI is deployed in tomcat , the httpServletRequest.getScheme() returns null value:
@Addressing(required=true)
@WebService(serviceName = "SOAPService", endpointInterface = "org.apache.hello_world.Greeter", targetNamespace = "http://apache.org/hello_world")
public class GreeterImpl implements Greeter {
@Resource
WebServiceContext wscontext;
private String myName;
public GreeterImpl()
{ this("defaultGreeter"); }public GreeterImpl(String name)
{ myName = name; }public String greetMe(String me)
{ return "Hello " + me; }public String sayHi()
{ return "Bonjour from " + myName; }public void pingMe()
{ MessageContext msgContext = wscontext.getMessageContext(); HttpServletRequest httpServletRequest = (HttpServletRequest)msgContext.get(MessageContext.SERVLET_REQUEST); System.out.println(httpServletRequest.getScheme()); }}
From the code , the WSA interceptor will create another thread to run the serviceInvoker interceptor and servlet thread (receives the http request) will cleanup the request information.
The serviceInvoker in the new created thread always get null value from schemeMB.
package org.apache.coyote;
public final class Request{
public void recycle()
}