Hi,

we have some examples in the Talend ESB github that should work:
https://github.com/Talend/tesb-rt-se/tree/master/examples/cxf

<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<configuration>
<instructions>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Require-Bundle>org.apache.cxf.bundle,org.springframework.beans</Require-Bundle>
<Export-Package>service</Export-Package>
</instructions>
</configuration>
</plugin>


You need the feature:install cxf for this to work. So it is still using the compat bundle. Simpler examples should also work with the individual cxf bundles. When using spring dm you often need require bundle for each of the bundles. With blueprint this should not be necessary.

Can you try this?

Christian


Am 28.04.2012 08:04, schrieb fitzcaraldo:
OK
I have followed Christian's post to install the CXF 2.6.0 bundles into karaf
2.2.5 as described at the bottom of this page:

http://www.liquid-reality.de/display/liquid/2012/01/20/Big+improvements+for+CXF+in+OSGi+ahead+with+version+2.6.0
http://www.liquid-reality.de/display/liquid/2012/01/20/Big+improvements+for+CXF+in+OSGi+ahead+with+version+2.6.0

All appears well and the new multiple CXF bundles are visible.

I am now trying to deploy a simple Camel route using cxf 2.6.0 but I'm
unsure what I need to put in the maven-bundle-plugin to suit cxf 2.6.0.

Currently I have this:

<plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <version>2.2.0</version>
        <extensions>true</extensions>
        <configuration>
                <instructions>
                <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                        <Import-Package>
                                *,
                                javax.jws,
                                javax.wsdl,
                                javax.xml.bind,
                                javax.xml.bind.annotation,
                                javax.xml.namespace,
                                javax.xml.ws,
                                META-INF.cxf,
                                org.apache.cxf.bus,
                                org.apache.cxf.bus.spring,
                                org.apache.cxf.bus.resource,
                                org.apache.cxf.configuration.spring,
                                org.apache.cxf.resource,
                                ....
                        </Import-Package>
                        <Require-Bundle>org.apache.cxf.bundle</Require-Bundle>
                </instructions>
        </configuration>
</plugin>

If I remove both the Import-Package and Require-Bundle elements I get the -
'can't find the META-INF/cxf.xml' problem.

If I use the one shown, I get an unresolved dependency for
org.apache.cxf.bundle - which it not surprising given it doesn't exist
anymore under CXF 2.6.0.

Can someone share a working config for the plugin?

Thanks


--
View this message in context: 
http://cxf.547215.n5.nabble.com/cxf-2-6-0-deploy-into-karaf-2-2-5-tp5672113p5672113.html
Sent from the cxf-user mailing list archive at Nabble.com.


--

Christian Schneider
http://www.liquid-reality.de

Open Source Architect
Talend Application Integration Division http://www.talend.com

Reply via email to