[
https://issues.apache.org/activemq/browse/SM-1756?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52498#action_52498
]
BenoƮt Clouet edited comment on SM-1756 at 6/26/09 2:53 AM:
------------------------------------------------------------
the trick is to get the context loaded after the CXFManagedServlet. So use the
alternative to the ContextLoaderListener ie. the ContextLoaderServlet.
This involves a slight modification of the web.xml. You have to comment out
:
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
and to replace this by the servlet context loader equivalent :
<servlet>
<servlet-name>context</servlet-name>
<servlet-class>org.springframework.web.context.ContextLoaderServlet</servlet-class>
<load-on-startup>3</load-on-startup>
</servlet>
This patch should be applied to the apache-servicemix-web instead of the
servicemix-web-console because of the overlay mechanism which overwrites the
web.xml from the servicemix-web-console by the one from apache-servicemix-web.
was (Author: benoit.clouet):
the trick is to get the context loaded after the CXFManagedServlet. So use
the alternative to the ContextLoaderListener ie. the ContextLoaderServlet.
This involves a slight modification of the web.xml. You have to comment out
:
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
and to replace this by the servlet context loader equivalent :
<servlet>
<servlet-name>context</servlet-name>
<servlet-class>org.springframework.web.context.ContextLoaderServlet</servlet-class>
<load-on-startup>3</load-on-startup>
</servlet>
> add CXFManagedServlet to apache-servicemix-web to enable servicemix-cxf-bc
> endpoint deploy into servlet container without starting jetty
> ----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: SM-1756
> URL: https://issues.apache.org/activemq/browse/SM-1756
> Project: ServiceMix
> Issue Type: New Feature
> Components: servicemix-cxf-bc, servicemix-web-console
> Reporter: Freeman Fang
> Assignee: Freeman Fang
> Fix For: 3.3.1, 3.2.4
>
> Attachments: SM-1756.patch
>
>
> we need add CXFManagedServlet in the web.xml to replace the http transport
> with cxf servlet transport.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.