Hi JB, Ok, thanks. I was wondering about that Jetty error.
So I switched back to Karaf 3 since I need CXF-DOSGi, and, AFAIK, that requires CXF < 3.0.0. Although I get the error below, it seems to work, and the remote services are registered. karaf@root()> feature:repo-add cxf 2.7.8 Adding feature url mvn:org.apache.cxf.karaf/apache-cxf/2.7.8/xml/features karaf@root()> feature:install cxf/2.7.8 Error executing command: Can't install feature cxf/2.7.8: Could not start bundle mvn:org.apache.cxf/cxf-bundle-compatible/2.7.8 in feature(s) cxf-2.7.8: Unresolved constraint in bundle org.apache.cxf.bundle [161]: Unable to resolve 161.0: missing requirement [161.0] osgi.wiring.bundle; (osgi.wiring.bundle=org.springframework.beans) karaf@root()> feature:repo-add cxf-dosgi 1.6.0 Adding feature url mvn:org.apache.cxf.dosgi/cxf-dosgi/1.6.0/xml/features karaf@root()> feature:install cxf-dosgi-discovery-distributed/1.6.0 karaf@root()> feature:install webconsole ... Thanks again for your help. Erwin > On Jun 20, 2015, at 15:58, Jean-Baptiste Onofré <[email protected]> wrote: > > Hi Erwin, > > Karaf 4.x comes with Jetty 9 (not 8). So, you have to update your CXF version > (3.11 for instance) or downgrade to Karaf 3 (which provides Jetty 8). > > Regards > JB > > On 06/20/2015 09:28 PM, Erwin Hogeweg wrote: >> From a fresh installation: >> >> *karaf*@root()> feature:install http >> *karaf*@root()> feature:repo-add cxf 3.0.2 >> Adding feature url mvn:org.apache.cxf.karaf/apache-cxf/3.0.2/xml/features >> *karaf*@root()> feature:install -v cxf/3.0.2 >> Adding features: cxf/[3.0.2,3.0.2] >> Error executing command: Unable to resolve root: missing requirement >> [root] osgi.identity; osgi.identity=cxf-http-jetty; type=karaf.feature; >> version=3.0.2 [caused by: Unable to resolve cxf-http-jetty/3.0.2: >> missing requirement [cxf-http-jetty/3.0.2] osgi.identity; >> osgi.identity=org.apache.cxf.cxf-rt-transports-http-jetty; >> type=osgi.bundle; version="[3.0.2,3.0.2]"; resolution:=mandatory [caused >> by: Unable to resolve org.apache.cxf.cxf-rt-transports-http-jetty/3.0.2: >> missing requirement [org.apache.cxf.cxf-rt-transports-http-jetty/3.0.2] >> osgi.wiring.package; >> filter:="(&(osgi.wiring.package=org.eclipse.jetty.continuation)(version>=7.6.0)(!(version>=8.2.0)))"]] >> *karaf*@root()> >> >> >>> On Jun 20, 2015, at 15:11, Jean-Baptiste Onofré <[email protected] >>> <mailto:[email protected]>> wrote: >>> >>> Can you first try to install the http feature before the cxf one: >>> >>> feature:install http >>> feature:install cxf >>> >>> The http feature should install the servlet-api bundle. >>> >>> Regards >>> JB >>> >>> On 06/20/2015 08:59 PM, Erwin Hogeweg wrote: >>>>> I guess the same happens with a simple feature:install cxf ? >>>> Yeah ,that doesn’t seem to work quite right either. >>>> >>>> *karaf*@root()> feature:install cxf >>>> Error executing command: Unable to resolve root: missing requirement >>>> [root] osgi.identity; osgi.identity=cxf-http-jetty; type=karaf.feature; >>>> version=3.0.2 [caused by: Unable to resolve cxf-http-jetty/3.0.2: >>>> missing requirement [cxf-http-jetty/3.0.2] osgi.identity; >>>> osgi.identity=org.apache.cxf.cxf-rt-transports-http-jetty; >>>> type=osgi.bundle; version="[3.0.2,3.0.2]"; resolution:=mandatory [caused >>>> by: Unable to resolve org.apache.cxf.cxf-rt-transports-http-jetty/3.0.2: >>>> missing requirement [org.apache.cxf.cxf-rt-transports-http-jetty/3.0.2] >>>> osgi.wiring.package; >>>> filter:="(&(osgi.wiring.package=javax.servlet)(version>=0.0.0)(!(version>=4.0.0)))"]] >>>> *karaf*@root()> >>>> >>>> Regards, >>>> >>>> Erwin >>>> >>>>> >>>>> Regards >>>>> JB >>>>> >>>>> On 06/20/2015 08:02 PM, Erwin Hogeweg wrote: >>>>>> Hi - >>>>>> >>>>>> Trying to install cxf feature in 4.0.0.M3, following the steps in the >>>>>> Cookbook, I am getting the errors below. I assume this is a user error, >>>>>> but apart from the Jira issue KARAF-3333 cannot find any documentation >>>>>> on which version I should use. >>>>>> >>>>>> >>>>>> *karaf*@root()> feature:repo-add cxf 3.0.2 >>>>>> Adding feature url >>>>>> mvn:org.apache.cxf.karaf/apache-cxf/3.0.2/xml/features >>>>>> *karaf*@root()> feature:install -v cxf/3.0.2 >>>>>> Adding features: cxf/[3.0.2,3.0.2] >>>>>> Error executing command: Error >>>>>> *karaf*@root()> >>>>>> >>>>>> Please advise. >>>>>> >>>>>> Thanks, >>>>>> >>>>>> Erwin >>>>>> >>>>> >>>>> -- >>>>> Jean-Baptiste Onofré >>>>> [email protected] >>>>> <mailto:[email protected]><mailto:[email protected]> >>>>> http://blog.nanthrax.net <http://blog.nanthrax.net/> >>>>> Talend -http://www.talend.com <http://www.talend.com/> >>>> >>>> >>>> >>> >>> -- >>> Jean-Baptiste Onofré >>> [email protected] <mailto:[email protected]> >>> http://blog.nanthrax.net <http://blog.nanthrax.net/> >>> Talend -http://www.talend.com <http://www.talend.com/> >> > > -- > Jean-Baptiste Onofré > [email protected] > http://blog.nanthrax.net > Talend - http://www.talend.com
