Hi,

I'm trying to use CXF 2.7.11 inside Apache Karaf

I am using Karaf 3.0.2 (with Felix not the eclipse one)

I installed CXF by running:

feature:repo-add mvn:org.apache.cxf.karaf/apache-cxf/2.7.11/xml/features
feature:install cxf

I have been following Daniel's blog post from 3 years ago about getting CXF
running in Karaf:
http://www.dankulp.com/blog/2011/11/apache-cxf-in-osgi/

Is it still necessary to edit the jre.properties and comment out all the
javax packages?

When I did that I got a whole bunch of complaints from osgi about not being
able to find packages

ERROR: Bundle org.apache.cxf.cxf-rt-frontend-simple [121] Error starting
mvn:org.apache.cxf/cxf-rt-frontend-simple/2.7.11
(org.osgi.framework.BundleException: Unresolved constraint in bundle
org.apache.cxf.cxf-rt-frontend-simple [121]: Unable to resolve 121.0:
missing requirement [121.0] osgi.wiring.package;
(&(osgi.wiring.package=org.apache.cxf.binding.soap)(version>=2.7.0)(!(version>=3.0.0)))
[caused by: Unable to resolve 100.0: missing requirement [100.0]
osgi.wiring.package; (osgi.wiring.package=javax.jws.soap)])
org.osgi.framework.BundleException: Unresolved constraint in bundle
org.apache.cxf.cxf-rt-frontend-simple [121]: Unable to resolve 121.0:
missing requirement [121.0] osgi.wiring.package;
(&(osgi.wiring.package=org.apache.cxf.binding.soap)(version>=2.7.0)(!(version>=3.0.0)))
[caused by: Unable to resolve 100.0: missing requirement [100.0]
osgi.wiring.package; (osgi.wiring.package=javax.jws.soap)]
        at 
org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2037)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1291)
        at
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
        at java.lang.Thread.run(Unknown Source)
ERROR: Bundle org.apache.cxf.cxf-rt-frontend-jaxws [122] Error starting
mvn:org.apache.cxf/cxf-rt-frontend-jaxws/2.7.11
(org.osgi.framework.BundleException: Unresolved constraint in bundle
org.apache.cxf.cxf-rt-frontend-jaxws [122]: Unable to resolve 122.0: missing
requirement [122.0] osgi.wiring.package; (osgi.wiring.package=javax.jws))
org.osgi.framework.BundleException: Unresolved constraint in bundle
org.apache.cxf.cxf-rt-frontend-jaxws [122]: Unable to resolve 122.0: missing
requirement [122.0] osgi.wiring.package; (osgi.wiring.package=javax.jws)
        at 
org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2037)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1291)
        at
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
        at java.lang.Thread.run(Unknown Source)
etc......

When I don't change anything I get this error, when trying to add a port:

javax.xml.ws.WebServiceException: WSDLPort
{http://service.namespace.com.au/}TheServicePort already exists. Can not
create a port of the same QName.
        at com.sun.xml.internal.ws.client.WSServiceDelegate.addPort(Unknown 
Source)
        at javax.xml.ws.Service.addPort(Unknown Source)

What am I doing wrong?

Thanks,

Joel




--
View this message in context: 
http://cxf.547215.n5.nabble.com/Using-CXF-inside-Apache-Karaf-tp5751248.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to