You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2011/01/06 10:17:45 UTC

[jira] Commented: (KARAF-245) Export SUN packages in config.properties like done in ServiceMix

    [ https://issues.apache.org/jira/browse/KARAF-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12978236#action_12978236 ] 

Guillaume Nodet commented on KARAF-245:
---------------------------------------

I think CXF need to be run with a J2SE-1.5 profile.  I suppose we could tweak the bundles a bit to make sure it works in 1.6 too without having to hide some packages, not sure how it would work though (I guess the main problem would be to ensure clients are wired on the API provided as bundles instead of the JVM by default).
For SAAJ, see http://cxf.547215.n5.nabble.com/running-CXF-service-under-IBM-JDK-on-AIX-td548674.html (the sun parser needs to be put in the lib/ext folder).

> Export SUN packages in config.properties like done in ServiceMix
> ----------------------------------------------------------------
>
>                 Key: KARAF-245
>                 URL: https://issues.apache.org/jira/browse/KARAF-245
>             Project: Karaf
>          Issue Type: Improvement
>          Components: runtime
>    Affects Versions: 2.0.0, 2.1.0
>         Environment: davsclaus:/opt$ mvn -version
> Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
> Java version: 1.6.0_20
> Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
> Default locale: en_US, platform encoding: MacRoman
> OS name: "mac os x" version: "10.6.4" arch: "x86_64" Family: "mac"
>            Reporter: Claus Ibsen
>
> I am updating chapter 13 about OSGi and I hit a problem with camel-cxf
> and Karaf 2.1
> He is what I do
> davsclaus:/opt$ mvn -version
> Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
> Java version: 1.6.0_20
> Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
> Default locale: en_US, platform encoding: MacRoman
> OS name: "mac os x" version: "10.6.4" arch: "x86_64" Family: "mac"
> davsclaus:/opt$ tar -xf ~/Downloads/apache-karaf-2.1.0.tar.gz
> davsclaus:/opt/apache-karaf-2.1.0$ bin/karaf
> karaf@root> features:addurl
> mvn:org.apache.camel.karaf/apache-camel/2.5-SNAPSHOT/xml/features
> karaf@root> features:install camel-cxf
> Error executing command: Could not start bundle
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.saaj-impl/1.3.2_1
> in feature(s) : Unresolved constraint in bundle
> org.apache.servicemix.bundles.saaj-impl [90]: Unable to resolve 90.0:
> missing requirement [90.0] package;
> (package=com.sun.org.apache.xerces.internal.dom)
> And I get the above problem with the SUN package.
> I have not changed any configuration settings on Karaf.
> I just tried with equinox instead of felix as osgi container. Same problem
> karaf@root> features:install camel
> karaf@root> features:
> features:addurl              features:info
> features:install             features:list
> features:listrepositories    features:listurl
> features:listversions        features:refreshurl
> features:removerepository    features:removeurl           features:uninstall
> karaf@root> features:install camel-cxf
> Refreshing bundles org.springframework.context (38),
> org.springframework.context.support (39),
> org.apache.servicemix.bundles.cglib (47), org.apache.camel.camel-core
> (46), org.springframework.aop (34),
> org.apache.servicemix.bundles.jaxb-impl (44)
> Error executing command: Could not start bundle
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.saaj-impl/1.3.2_1
> in feature(s) : The bundle
> "org.apache.servicemix.bundles.saaj-impl_1.3.2.1 [90]" could not be
> resolved. Reason: Missing Constraint: Import-Package:
> com.sun.org.apache.xerces.internal.dom; version="0.0.0"
> And the solution suggested by Willem Jiang
> Hi Claus,
> ServiceMix is using a different etc/config.properties from the karaf, and it exports these sun packages
>  com.sun.org.apache.xalan.internal.xsltc.trax, \
>  com.sun.org.apache.xerces.internal.dom, \
>  com.sun.org.apache.xerces.internal.jaxp, \
>  com.sun.org.apache.xerces.internal.xni, \
> I'm afraid you need to do the same thing in karaf etc/config.properties file if you are try to using the saaj-impl from sun.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.