[
https://issues.apache.org/jira/browse/CAMEL-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12998906#comment-12998906
]
Arnoud Glimmerveen commented on CAMEL-3702:
-------------------------------------------
I've tested the example against the CXF 2.3.4-SNAPSHOT. It works fine now for
Tomcat 7 and Jetty 8. On GlassFish v3 however I get the following Exception:
{noformat}
[#|2011-02-24T16:44:47.451+0100|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=30;_ThreadName=pool-36-thread-1;|2011-02-24
16:44:47,450 [ool-36-thread-1] WARN PhaseInterceptorChain -
Interceptor for
{http://incident.cxf.example.camel.apache.org/}IncidentService#{http://incident.cxf.example.camel.apache.org/}reportIncident
has thrown exception, unwinding now
java.lang.IllegalStateException: The request has not been put into asynchronous
mode, must call ServletRequest.startAsync first
at
org.apache.catalina.connector.Request.getAsyncContext(Request.java:3764)[web-core.jar:3.0.1]
at
org.apache.catalina.connector.RequestFacade.getAsyncContext(RequestFacade.java:1105)[web-core.jar:3.0.1]
at
org.apache.cxf.transport.http.Servlet3ContinuationProvider$Servlet3Continuation.<init>(Servlet3ContinuationProvider.java:77)[cxf-rt-transports-http-2.3.4-SNAPSHOT.jar:2.3.4-SNAPSHOT]
at
org.apache.cxf.transport.http.Servlet3ContinuationProvider.getContinuation(Servlet3ContinuationProvider.java:57)[cxf-rt-transports-http-2.3.4-SNAPSHOT.jar:2.3.4-SNAPSHOT]
at
org.apache.camel.component.cxf.CxfConsumer$1.getContinuation(CxfConsumer.java:126)[camel-cxf-2.6.0.jar:2.6.0]
at
org.apache.camel.component.cxf.CxfConsumer$1.invoke(CxfConsumer.java:67)[camel-cxf-2.6.0.jar:2.6.0]
at
org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)[cxf-rt-core-2.3.4-SNAPSHOT.jar:2.3.4-SNAPSHOT]
at
org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:93)[cxf-rt-core-2.3.4-SNAPSHOT.jar:2.3.4-SNAPSHOT]
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:255)[cxf-api-2.3.4-SNAPSHOT.jar:2.3.4-SNAPSHOT]
at
org.apache.cxf.phase.PhaseInterceptorChain.resume(PhaseInterceptorChain.java:224)[cxf-api-2.3.4-SNAPSHOT.jar:2.3.4-SNAPSHOT]
at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:70)[cxf-rt-core-2.3.4-SNAPSHOT.jar:2.3.4-SNAPSHOT]
at
org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:118)[cxf-rt-transports-http-2.3.4-SNAPSHOT.jar:2.3.4-SNAPSHOT]
at
org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:461)[cxf-rt-transports-http-2.3.4-SNAPSHOT.jar:2.3.4-SNAPSHOT]
at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:188)[cxf-rt-transports-http-2.3.4-SNAPSHOT.jar:2.3.4-SNAPSHOT]
at
org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:148)[cxf-rt-transports-http-2.3.4-SNAPSHOT.jar:2.3.4-SNAPSHOT]
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:179)[cxf-rt-transports-http-2.3.4-SNAPSHOT.jar:2.3.4-SNAPSHOT]
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:103)[cxf-rt-transports-http-2.3.4-SNAPSHOT.jar:2.3.4-SNAPSHOT]
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:754)[javax.servlet.jar:]
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:159)[cxf-rt-transports-http-2.3.4-SNAPSHOT.jar:2.3.4-SNAPSHOT]
at
org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)[web-core.jar:3.0.1]
at
org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:822)[web-core.jar:3.0.1]
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)[web-core.jar:3.0.1]
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:517)[web-core.jar:3.0.1]
at
org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:488)[web-core.jar:3.0.1]
at
org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:379)[web-core.jar:3.0.1]
at
org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:336)[web-core.jar:3.0.1]
at
org.apache.catalina.connector.AsyncContextImpl$Handler.run(AsyncContextImpl.java:375)[web-core.jar:3.0.1]
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_18]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_18]
at java.lang.Thread.run(Thread.java:619)[:1.6.0_18]
|#]
{noformat}
> Example camel-example-cxf-tomcat does not work on Tomcat 7
> ----------------------------------------------------------
>
> Key: CAMEL-3702
> URL: https://issues.apache.org/jira/browse/CAMEL-3702
> Project: Camel
> Issue Type: Bug
> Components: examples
> Affects Versions: 2.6.0
> Environment: Windows 7, Tomcat 7.0.8, Camel 2.6.0
> Reporter: Arnoud Glimmerveen
> Assignee: Willem Jiang
>
> I am trying to get the example camel-example-cxf-tomcat to work on Tomcat
> 7.0.8. This example contains a CxfEndpoint that is configured as being
> asynchronous (by default). Because of this asynchronous setting I was
> notified by an Exception that I should set the async-supported property of
> the CXFServlet in the web.xml. After I set this property to true, I see that
> invocations are received and processed by the Camel route, however the result
> is not returned: the connection is closed directly.
> I assume this issue is not directly related to the example itself (apart from
> the missing async-supported property), however I was not able to pinpoint
> which component is triggering the connection to be closed before the result
> is written.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira