Btw. please consider a comment from CXF community: Even with the workaround, I strongly discourage people from configuring the jetty servers in their blueprint files. Since the servers are “shared”, you get into a “first bundle to create the port has the configuration that wins” situation which can be unpredictable and error prone. If bundles with different services start up in different order, you can get strange behavior. Configuring the port via the files in /etc would be better (and also then puts the job of configuring the ports into the hands of the administrator, not the app developer, and puts it with the configs for the pax-web and others).
Regards Krzysztof On 12.02.2015 18:38, Krzysztof Sobkowiak wrote: > Hi > > Could you please try to install the Blueprint Core Compatibility Bundle? > > karaf@root> osgi:install > mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.core.compatibility/1.0.0 > Bundle ID: 216 > karaf@root> osgi:bundle-level 216 20 > > You will probably need to refresh the cxf-rt-transports-http-jetty > bundle or restart ServiceMix to correctly resolve the missing package. > > Regards > Krzysztof > > > On 11.02.2015 23:04, dsjaxen wrote: >> I am using ServiceMix 5.4.0. I have a blueprint where I am trying to start a >> Jetty Server for use with >> CXF and Camel. I am getting a ClassNotFoundException because >> the class: >> >> "org.apache.cxf.transport.http_jetty.blueprint.JettyServerEngineFactoryParser" >> (v 3.0.2) >> Is trying to use a couple classes from: >> "org.apache.aries.blueprint.reflect" >> which is not exported from the blueprint-core bundle anymore. >> >> I am using: >> <httpj:engine-factory bus="cxf"> >> <httpj:engine port="$[restservices.port]"> >> <httpj:sessionSupport>true</httpj:sessionSupport> >> </httpj:engine> >> <httpj:engine port="$[webservices.port]"> >> <httpj:sessionSupport>true</httpj:sessionSupport> >> </httpj:engine> >> </httpj:engine-factory> >> >> Is there another way to do this, or why aren't others encountering similar >> problems? >> >> Thanks, >> -Doug >> >> >> >> -- >> View this message in context: >> http://servicemix.396122.n5.nabble.com/servicemix-5-4-0-cxf-jetty-blueprint-issue-tp5722268.html >> Sent from the ServiceMix - User mailing list archive at Nabble.com. -- Krzysztof Sobkowiak JEE & OSS Architect Senior Solution Architect @ Capgemini SSC <http://www.pl.capgemini-sdm.com/en> Apache ServiceMix <http://servicemix.apache.org/> Committer & PMC