You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2009/09/29 05:04:51 UTC
[jira] Commented: (SM-1900) servicemix-cxf-bc componet can't locate
services
[ https://issues.apache.org/activemq/browse/SM-1900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=54546#action_54546 ]
Freeman Fang commented on SM-1900:
----------------------------------
Hi Christian,
Thanks for the patch
But I believe SM-1756 already fix this issue, the org.apache.servicemix.web.cxf.CXFManagedServlet will always grap bus used in cxf-bc and do the servlet transport replace and register there.
Do you see any problem when you work with 3.3.1?
Freeman
> servicemix-cxf-bc componet can't locate services
> ------------------------------------------------
>
> Key: SM-1900
> URL: https://issues.apache.org/activemq/browse/SM-1900
> Project: ServiceMix
> Issue Type: Bug
> Components: servicemix-cxf-bc
> Affects Versions: 3.3.1
> Environment: OS: Linux chriNB 2.6.24-24-generic #1 SMP Fri Jul 24 22:46:06 UTC 2009 i686 GNU/Linux
> JAVA:
> java version "1.6.0_14"
> Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
> Java HotSpot(TM) Server VM (build 14.0-b16, mixed mode)
> Server:
> apache-tomcat-6.0.14
> Reporter: Christian Connert
> Assignee: Freeman Fang
> Attachments: cxf.xml, TomcatDestinationFactory.java
>
>
> The servicemix-cxf-bc doesn't work inside a Tomcat server.
> The problem is that the service destinations aren't found by the destination factory.
> I think this problem isn't Tomcat specific. It should occur if servicemix is deployed as a war inside some application server.
> I would suggest the following fix:
> 1.) Implement a ServletTransportFactory (see attachment 1)
> 2.) Register this ServletTransportFactory in the default cxf.xml (classpath root, see attachment 2)
> It's important to note that one needs to configure the CXF default bus with org.apache.servicemix.web.cxf.CXFManagedServlet.
> If one uses the spring based CXF configuration method, the servicemix-cxf-bc and the servlet will have different application contexts and thus it won't work.
> Kind regrades
> Christian
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.