karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (KARAF-245) Export SUN packages in config.properties like done in ServiceMix
Date Fri, 22 Oct 2010 13:06:15 GMT

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

Claus Ibsen commented on KARAF-245:
-----------------------------------

Isn't this in {{jre.properties}}?

I found it here
http://svn.apache.org/repos/asf/servicemix/smx4/features/trunk/assembly/src/main/filtered-resources/etc/jre.properties

And its only for JDK 1.6? Why isn't it done for JDK 1.5 as well? I think the XML stuff is
also part of JDK 1.5.

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, \
 com.sun.jndi.ldap, \

> 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.


Mime
View raw message