You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Christian Connert (JIRA)" <ji...@apache.org> on 2009/09/28 10:17:52 UTC

[jira] Updated: (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:all-tabpanel ]

Christian Connert updated SM-1900:
----------------------------------

    Attachment: TomcatDestinationFactory.java
                cxf.xml

> 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
>         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.