This should be fixed
-thomas
On Fri, 2007-06-01 at 13:23 +0100, Tom Fennelly wrote:
Hey there Thomas.
I've run into a little problem and need some guidance.
So I checked out and built the JBossWS 2.1 codebase yesterday evening.
I updated the ESB code to use th new SPI. The new code looks as follows:
RequestHandler requestHandler = endpoint.getRequestHandler();
InvocationContext invocationContext =
endpoint.getInvocationHandler().createInvocation().getInvocationContext();
ByteArrayOutputStream os = new ByteArrayOutputStream();
requestHandler.handleRequest(endpoint, new ByteArrayInputStream(soapMessage), os,
invocationContext);
When I run it I get a ClassCastException out of
org.jboss.wsf.stack.jbws.RequestHandlerImpl. It's trying to cast the
InvocationContext to a ServletRequestContext. The endpoints I'm
attempting to invoke are standard 181 impls deployed out of the Servlet
container, which maybe explains why the request handler is expecting a
ServletRequestContext.
Do I need to create specific Endpoint, RequestHandler etc impls? If so,
does that mean that endpoints deployed out of the Servlet container are
only invokable with ServletRequest, ServletResponse, ServletContext etc
at hand?
Regards,
T.
--
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
Web Service Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx