[
https://jira.jboss.org/jira/browse/JBWS-2707?page=com.atlassian.jira.plug...
]
Alessio Soldano commented on JBWS-2707:
---------------------------------------
An early (and partial) check using 2.2.3-SNAPSHOT revealed we need what follows due to a
change on the Apache's CXFServlet to support JAXRS service listing in:
Index: modules/server/src/main/java/org/jboss/wsf/stack/cxf/CXFServletExt.java
===================================================================
--- modules/server/src/main/java/org/jboss/wsf/stack/cxf/CXFServletExt.java (revisione
10328)
+++ modules/server/src/main/java/org/jboss/wsf/stack/cxf/CXFServletExt.java (copia
locale)
@@ -141,6 +142,28 @@
BusFactory.setThreadDefaultBus(null);
}
}
+
+ //required for CXF 2.2.3 or greater
+ @Override
+ protected void invoke(HttpServletRequest req, HttpServletResponse res) throws
ServletException
+ {
+ try
+ {
+ BusFactory.setThreadDefaultBus(getBus());
+ EndpointAssociation.setEndpoint(endpoint);
+ RequestHandler requestHandler = (RequestHandler)endpoint.getRequestHandler();
+ requestHandler.handleHttpRequest(endpoint, req, res, getServletContext());
+ }
+ catch (IOException ioe)
+ {
+ throw new ServletException(ioe);
+ }
+ finally
+ {
+ EndpointAssociation.removeEndpoint();
+ BusFactory.setThreadDefaultBus(null);
+ }
+ }
@Override
public void destroy()
Update to Apache CXF 2.2.3
--------------------------
Key: JBWS-2707
URL:
https://jira.jboss.org/jira/browse/JBWS-2707
Project: JBoss Web Services
Issue Type: Task
Security Level: Public(Everyone can see)
Components: jbossws-cxf
Reporter: Alessio Soldano
Assignee: Alessio Soldano
Fix For: jbossws-cxf-3.2.0
We need to update to Apache CXF 2.2.3 as soon as it's released.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira