Return-Path: Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: (qmail 74331 invoked from network); 22 Oct 2010 13:44:38 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Oct 2010 13:44:38 -0000 Received: (qmail 70360 invoked by uid 500); 22 Oct 2010 13:44:38 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 70336 invoked by uid 500); 22 Oct 2010 13:44:37 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 70291 invoked by uid 99); 22 Oct 2010 13:44:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Oct 2010 13:44:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Oct 2010 13:44:36 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9MDiGA9007421 for ; Fri, 22 Oct 2010 13:44:16 GMT Message-ID: <5567750.26171287755056094.JavaMail.jira@thor> Date: Fri, 22 Oct 2010 09:44:16 -0400 (EDT) From: "Claus Ibsen (JIRA)" To: issues@karaf.apache.org Subject: [jira] Commented: (KARAF-245) Export SUN packages in config.properties like done in ServiceMix In-Reply-To: <26903591.71651286779353013.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12923859#action_12923859 ] Claus Ibsen commented on KARAF-245: ----------------------------------- Jesus its one big guess game. In SMX the jre.properties have selected packages commented out. Looks like someone have done some trail and error and just fixed it by adding and committing out stuff. > 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.