[ 
https://issues.apache.org/jira/browse/CAMEL-4188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13061738#comment-13061738
 ] 

Freeman Fang commented on CAMEL-4188:
-------------------------------------

Hi Mike,

About camel-mail can't work on karaf out-of-box, I think the reason is that 
karaf is designed to keep as small/simple as possible, it not by default ship 
camel features with it and so not tune the jre.properties/customer.properties 
to accommodate camel related features by default. However, Apache servicemix 
already do this job for you, you can take a look at the 
jre.properties/customer.properties shipped with sevicemix and you can tell the 
difference with that in karaf. Actually you can edit 
$SMX4_HOME/etc/org.apache.karaf.features.cfg and easily disable JBI components 
there if you don't need the JBI stuff, which can make servicemix as simple as 
karaf and it's a better start to install camel related features there.

Regards
Freeman

> Cannot install camel-mail feature in Karaf 2.2.2 or 2.2.1
> ---------------------------------------------------------
>
>                 Key: CAMEL-4188
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4188
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-mail
>    Affects Versions: 2.7.2
>         Environment: Java SDK 1.6, Apache Karaf 2.2.2 or 2.2.1 using felix 
> container.
>            Reporter: Mike Gardiner
>            Assignee: Jean-Baptiste Onofré
>            Priority: Critical
>             Fix For: 2.7.3, 2.8.0
>
>
> Attempting to install the camel-mail feature results in the following error:
> Error executing command: Unable to resolve module org.apache.camel.camel-mail 
> [73.0] because it is exposed to package 'javax.activation' from 
> org.apache.felix.framework [0] and 
> org.apache.servicemix.specs.activation-api-1.1 [66.0] via two dependency 
> chains.
> Chain 1:
>   org.apache.camel.camel-mail [73.0]
>     import: (package=javax.activation)
>      |
>     export: package=javax.activation
>   org.apache.felix.framework [0]
> Chain 2:
>   org.apache.camel.camel-mail [73.0]
>     import: 
> (&(package=org.apache.camel.impl)(version>=2.7.0)(!(version>=2.8.0)))
>      |
>     export: package=org.apache.camel.impl; uses:=javax.xml.bind.annotation
>   org.apache.camel.camel-core [71.0]
>     import: (package=javax.xml.bind.annotation)
>      |
>     export: package=javax.xml.bind.annotation; uses:=javax.activation
>   org.apache.servicemix.specs.jaxb-api-2.2 [67.0]
>     import: (&(package=javax.activation)(version>=1.1.0))
>      |
>     export: package=javax.activation
>   org.apache.servicemix.specs.activation-api-1.1 [66.0]
> After forcing the install with features:install -c camel-mail the camel-mail 
> bundle refuses to start because of the error indicated above.  It looks like 
> there's several exports of the javax.activation package which causes the 
> error.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to