You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2010/10/11 08:42:33 UTC
[jira] Created: (KARAF-245) Export SUN packages in
config.properties like done in ServiceMix
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.
[jira] Commented: (KARAF-245) Export SUN packages in
config.properties like done in ServiceMix
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Commented: (KARAF-245) Export SUN packages in
config.properties like done in ServiceMix
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12919735#action_12919735 ]
Claus Ibsen commented on KARAF-245:
-----------------------------------
I wonder if Karaf/SMX should export those XML parser packages by default. But also for IBM JDK as it may have a different package name
> 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.
[jira] Commented: (KARAF-245) Export SUN packages in
config.properties like done in ServiceMix
Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12923872#action_12923872 ]
Guillaume Nodet commented on KARAF-245:
---------------------------------------
Btw, if exporting the SUN packages is not sufficient in Karaf, I'd rather not exporting them at all and eventually provide a second set of jre properties (where the user could then configure easily to choose the plain jre packages or the jee/osgi-friendly packages).
> 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.
[jira] Commented: (KARAF-245) Export SUN packages in
config.properties like done in ServiceMix
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12924169#action_12924169 ]
Claus Ibsen commented on KARAF-245:
-----------------------------------
Just to be sure I tried with JDK 1.5 as well and get the same problem as reported.
This was in fact expected, but wanted to be sure.
> 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.
[jira] Commented: (KARAF-245) Export SUN packages in
config.properties like done in ServiceMix
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12923857#action_12923857 ]
Claus Ibsen commented on KARAF-245:
-----------------------------------
btw I get some ugly errors starting Karaf 2.1 if I add those to jre 6 entry.
> 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.
[jira] Commented: (KARAF-245) Export SUN packages in
config.properties like done in ServiceMix
Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12923871#action_12923871 ]
Guillaume Nodet commented on KARAF-245:
---------------------------------------
If you plan to deploy things that use the servicemix specs (or any JEE technology), you should use the karaf jre properties and deploy the appropriate specs and implementations. In Karaf, we decided not to do so after some users complained that not all packages were exported.
There's no way to satisfy both sides at the same time unfortunately (unless the JRE itself becomes OSGi friendly).
> 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.
[jira] Commented: (KARAF-245) Export SUN packages in
config.properties like done in ServiceMix
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12924171#action_12924171 ]
Claus Ibsen commented on KARAF-245:
-----------------------------------
The workaround is the use the SMX jre properties, which you can override the existing by storing it with the name etc/custom.properties.
>From a shell you can do this fairly easily as follows:
davsclaus:/opt/apache-karaf-2.1.0$ curl http://svn.apache.org/repos/asf/servicemix/smx4/features/trunk/assembly/src/main/filtered-resources/etc/jre.properties > etc/custom.properties
Then it works. However you need to install the http feature before installing CXF as it requires http 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.
[jira] Commented: (KARAF-245) Export SUN packages in
config.properties like done in ServiceMix
Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12923848#action_12923848 ]
Jean-Baptiste Onofré commented on KARAF-245:
--------------------------------------------
Yes, it's in jre.properties.
Agree that the Sun packages should be defined for JRE 1.5 too.
I fix it right now :)
> 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.
[jira] Commented: (KARAF-245) Export SUN packages in
config.properties like done in ServiceMix
Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12923467#action_12923467 ]
Jean-Baptiste Onofré commented on KARAF-245:
--------------------------------------------
Not sure it should be make by default as it's JDK vendor dependant.
The etc/jre.properties is only JRE version dependant, not vendor.
We have to enhance the jre.properties or the config.properties to define the Sun packages running on a JDK Sun vendor.
> 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.
[jira] Commented: (KARAF-245) Export SUN packages in
config.properties like done in ServiceMix
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ 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.