On 07/02/2012 07:47 PM, Freeman Fang wrote:
Hi,

Restart may make it work but it's not reliable, you do need use jre.properties.cxf if you want to install cxf feature in karaf 2.2.x. The jre.properties.cxf(with fine-tuned system bundle 0 export package which won't conflict with spec bundles) is shipped with Karaf 2.2.x by default, the purpose of that file is for using cxf related features.

With upcoming Karaf 2.3.x/3.x, which endorse use new spec from servicemix, you won't need use jre.properties.cxf anymore, but with Karaf 2.2.x, you do need it.

Freeman

On 2012-7-3, at 上午7:56, ramesh wrote:

On 07/02/2012 06:44 PM, Freeman Fang wrote:
Hi,

There's a jre.properties.cxf in $KARAF_HOME/etc, you need use this one when you install cxf feature.

Just rename jre.properties.cxf to jre.properties to override the old one.

Freeman
On 2012-7-3, at 上午7:09, ramesh wrote:


I am trying to do a fresh install of CXF 2.6.1 on Karaf 2.2.8 and I get this error. Do I need to install Camel to fix this ?


karaf@root> features:install cxf
Error executing command: Could not start bundle mvn:org.apache.cxf/cxf-api/2.6.1 in feature(s) cxf-core-2.6.1: Unable to resolve module org.apache.cxf.cxf-api [84.0] because it is exposed to package 'javax.activation' from org.apache.servicemix.specs.activation-api-1.1 [91.0] and org.apache.felix.framework [0] via two dependency chains.

Chain 1:
org.apache.cxf.cxf-api [84.0]
import: (&(package=javax.activation)(version>=0.0.0)(!(version>=2.0.0)))
   |
  export: package=javax.activation
org.apache.servicemix.specs.activation-api-1.1 [91.0]

Chain 2:
org.apache.cxf.cxf-api [84.0]
import: (&(package=javax.mail.internet)(version>=1.4.0)(!(version>=2.0.0)))
   |
  export: package=javax.mail.internet; uses:=javax.activation
javax.mail [74.0]
  import: (package=javax.activation)
   |
  export: package=javax.activation
org.apache.felix.framework [0]

regards,
Ramesh

---------------------------------------------
Freeman Fang

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: http://weibo.com/u/1473905042











Hi Freeman,

Thanks , It is a clean Karaf on production server. So after couple of failed attempts I restarted Karaf and it went well.

regards,
Ramesh


---------------------------------------------
Freeman Fang

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: http://weibo.com/u/1473905042











Thanks Freeman for the info. Wasn't aware about these issues.

best regards,
Ramesh


Reply via email to