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

Mike Gardiner commented on CAMEL-4188:
--------------------------------------

Jean,

I appreciate the fact that we can work around this issue but instead of forcing 
all users of Karaf who wish to host Camel to update their config.properties 
file wouldn't it make more sense to fix the camel-mail bundle to rely on the 
packages already exported in Karaf in bundle 0 and not install another 
activation library?  Or could we be more specific in our import to use the 
javax.activation package from the ServiceMix Activation bundle? 

> 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