I fixed my feature.xml and the problem disappeared. thanks
2010/11/8 Guillaume Nodet <gno...@gmail.com>: > The problem happens because the features service does not remove the > blank characters before and after the bundles urls and it looks like > the felix framework will not reload bundles with such invalid urls. > I've just raised KARAF-268 which I'll try to fix later today. > > On Mon, Nov 8, 2010 at 20:23, Jorge Riquelme <to...@totex.cl> wrote: >> Guillaume, I can reproduce the issue with karaf 2.1.0 and the attached >> files: a test feature file, plus custom.properties and jre.properties >> (stolen from smix :p). >> >> First, load the features.xml file and install the contentcompass feature: >> >> ka...@root> features:addurl file:/home/totex/features.xml >> ka...@root> features:install contentcompass >> ka...@root> list >> START LEVEL 100 , List Threshold: 50 >> ID State Blueprint Level Name >> [ 31] [Active ] [Created ] [ 60] Apache Karaf :: Shell >> ConfigAdmin Commands (2.1.0) >> [ 32] [Active ] [ ] [ 60] Apache Aries Transaction >> Manager (0.2.0.incubating) >> [ 33] [Active ] [ ] [ 60] Apache ServiceMix :: Specs >> :: Stax API 1.0 (1.6.0.SNAPSHOT) >> ... >> [ 70] [Active ] [ ] [ 60] Apache CXF Bundle Jar (2.2.11) >> ... >> [ 84] [Active ] [ ] [ 60] Clerezza Ext - Jena OSGi >> Bundle (0.6.0.incubating-SNAPSHOT) >> >> All bundles are active. Then, shutdown (ctrl+d) and restart: >> >> ka...@root> ERROR: Error starting mvn:org.apache.cxf/cxf-bundle/2.2.11 >> (org.osgi.framework.BundleException: Unresolved constraint in bundle >> org.apache.cxf.bundle [70]: Unable to resolve 70.0: missing >> requirement [70.0] package; (package=javax.transaction.xa)) >> org.osgi.framework.BundleException: Unresolved constraint in bundle >> org.apache.cxf.bundle [70]: Unable to resolve 70.0: missing >> requirement [70.0] package; (package=javax.transaction.xa) >> at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3409) >> at org.apache.felix.framework.Felix.startBundle(Felix.java:1709) >> at >> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1143) >> at >> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) >> at java.lang.Thread.run(Thread.java:636) >> >> ka...@root> list >> START LEVEL 100 , List Threshold: 50 >> ID State Blueprint Level Name >> [ 31] [Active ] [Created ] [ 60] Apache Karaf :: Shell >> ConfigAdmin Commands (2.1.0) >> [ 33] [Active ] [ ] [ 60] Apache ServiceMix :: Specs >> :: Stax API 1.0 (1.6.0.SNAPSHOT) >> [ 34] [Active ] [ ] [ 60] Stax2 API (3.0.2) >> ... >> [ 70] [Installed ] [ ] [ 60] Apache CXF Bundle Jar (2.2.11) >> ... >> [ 84] [Active ] [ ] [ 60] Clerezza Ext - Jena OSGi >> Bundle (0.6.0.incubating-SNAPSHOT) >> >> Bundle 32 is lost, and bundle 70 isn't running for the missing dependency. >> Then: >> >> ka...@root> install -s >> mvn:org.apache.aries.transaction/org.apache.aries.transaction.manager/0.2-incubating >> Bundle ID: 85 >> ka...@root> restart 70 >> >> After manually reinstall the bundle, the problem doesn't happen >> anymore (all loads fine after shutdown and restart). >> >> >> saludos >> >> 2010/11/8 Guillaume Nodet <gno...@gmail.com>: >>> Can you reproduce the problem easily ? If so, could you please give >>> the exact steps you use to reproduce the problem ? >>> >>> On Mon, Nov 8, 2010 at 04:21, Jorge Riquelme <to...@totex.cl> wrote: >>>> Hi list, i'm having a problem with karaf 2.1.1-SNAPSHOT with a >>>> particular bundle >>>> (mvn:org.apache.aries.transaction/org.apache.aries.transaction.manager/0.2-incubating). >>>> I start from a "fresh" install of karaf and deploy my feature; all >>>> fine: >>>> >>>> ka...@root> list >>>> START LEVEL 100 , List Threshold: 50 >>>> ID State Blueprint Spring Level Name >>>> ... >>>> [ 43] [Active ] [ ] [ ] [ 60] >>>> spring-osgi-extender (1.2.0) >>>> [ 44] [Active ] [ ] [ ] [ 60] >>>> spring-osgi-annotation (1.2.0) >>>> [ 45] [Active ] [ ] [ ] [ 60] Apache Aries >>>> Transaction Manager (0.2.0.incubating) >>>> [ 46] [Active ] [ ] [ ] [ 60] Apache >>>> ServiceMix :: Specs :: Stax API 1.0 (1.6.0.SNAPSHOT) >>>> [ 47] [Active ] [ ] [ ] [ 60] Stax2 API (3.0.2) >>>> ... >>>> >>>> After, when I restart karaf, the bundle 45 is lost and I get several >>>> exceptions from the other dependent bundles (of aries tx): >>>> >>>> ka...@root> ERROR: Error starting mvn:org.apache.cxf/cxf-bundle/2.2.11 >>>> (org.osgi.framework.BundleException: Unresolved constraint in bundle >>>> org.apache.cxf.bundle [83]: Unable to resolve 83.0: missing >>>> requirement [83.0] package; (package=javax.transaction.xa)) >>>> org.osgi.framework.BundleException: Unresolved constraint in bundle >>>> org.apache.cxf.bundle [83]: Unable to resolve 83.0: missing >>>> requirement [83.0] package; (package=javax.transaction.xa) >>>> at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3409) >>>> at org.apache.felix.framework.Felix.startBundle(Felix.java:1709) >>>> at >>>> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1143) >>>> at >>>> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) >>>> at java.lang.Thread.run(Thread.java:636) >>>> ERROR: Error starting >>>> wrap:mvn:com.openlinksw/virt_jena/2.6.2,mvn:cl.toeska/contentcompass-features/1.0.0-SNAPSHOT/bnd/virt_jena-2.6.2 >>>> (org.osgi.framework.BundleException: Unresolved constraint in bundle >>>> wrap_mvn_com.openlinksw_virt_jena_2.6.2_mvn_cl.toeska_contentcompass-features_1.0.0-SNAPSHOT_bnd_virt_jena-2.6.2 >>>> [98]: Unable to resolve 98.0: missing requirement [98.0] package; >>>> (&(package=virtuoso.jdbc3)(version>=2.6.2)) [caused by: Unable to >>>> resolve 99.0: missing requirement [99.0] package; >>>> (package=javax.transaction.xa)]) >>>> org.osgi.framework.BundleException: Unresolved constraint in bundle >>>> wrap_mvn_com.openlinksw_virt_jena_2.6.2_mvn_cl.toeska_contentcompass-features_1.0.0-SNAPSHOT_bnd_virt_jena-2.6.2 >>>> [98]: Unable to resolve 98.0: missing requirement [98.0] package; >>>> (&(package=virtuoso.jdbc3)(version>=2.6.2)) [caused by: Unable to >>>> resolve 99.0: missing requirement [99.0] package; >>>> (package=javax.transaction.xa)] >>>> at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3409) >>>> at org.apache.felix.framework.Felix.startBundle(Felix.java:1709) >>>> at >>>> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1143) >>>> at >>>> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) >>>> at java.lang.Thread.run(Thread.java:636) >>>> ... (a lot more) >>>> >>>> ka...@root> list >>>> START LEVEL 100 , List Threshold: 50 >>>> ID State Blueprint Spring Level Name >>>> ... >>>> [ 43] [Active ] [ ] [ ] [ 60] >>>> spring-osgi-extender (1.2.0) >>>> [ 44] [Active ] [ ] [ ] [ 60] >>>> spring-osgi-annotation (1.2.0) >>>> [ 46] [Active ] [ ] [ ] [ 60] Apache >>>> ServiceMix :: Specs :: Stax API 1.0 (1.6.0.SNAPSHOT) >>>> [ 47] [Active ] [ ] [ ] [ 60] Stax2 API (3.0.2) >>>> ... >>>> >>>> I need to reinstall the bundle with "install >>>> mvn:org.apache.aries.transaction/org.apache.aries.transaction.manager/0.2-incubating" >>>> and restart all the other bundles that failed at startup. After that, >>>> the bundle gets another ID and the problem doesn't happen anymore (I >>>> restart karaf and aries tx loads and run fine). >>>> >>>> Any help will be appreciated :) >>>> >>>> saludos >>>> >>>> -- >>>> Jorge Riquelme Santana >>>> >>> >>> >>> >>> -- >>> Cheers, >>> Guillaume Nodet >>> ------------------------ >>> Blog: http://gnodet.blogspot.com/ >>> ------------------------ >>> Open Source SOA >>> http://fusesource.com >>> >> >> >> >> -- >> Jorge Riquelme Santana >> > > > > -- > Cheers, > Guillaume Nodet > ------------------------ > Blog: http://gnodet.blogspot.com/ > ------------------------ > Open Source SOA > http://fusesource.com > -- Jorge Riquelme Santana