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
<?xml version="1.0" encoding="UTF-8"?>
<!-- ContentCompass Features -->
<!-- date: 10/10/2010 -->
<!-- author: Jorge Riquelme Santana -->
<!-- version: $Id: features.xml 13 2010-11-08 17:38:06Z totex $ -->
<features name="contentcompass-1.0.0">
	<repository>
		mvn:org.apache.karaf/apache-karaf/2.1.0/xml/features
	</repository>

	<!-- copied from apache-servicemix-nmr-1.3.0-SNAPSHOT-features.xml -->
	<feature name="transaction" version="0.2-incubating">
		<bundle>
			mvn:org.apache.aries.transaction/org.apache.aries.transaction.manager/0.2-incubating
		</bundle>
	</feature>
	<feature name="woodstox" version="4.0.8">
		<bundle>
			mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.stax-api-1.0/1.6-SNAPSHOT
		</bundle>
		<bundle>mvn:org.codehaus.woodstox/stax2-api/3.0.2
		</bundle>
		<bundle>mvn:org.codehaus.woodstox/woodstox-core-asl/4.0.8
		</bundle>
	</feature>

	<!-- copied from apache-servicemix-4.3.0-SNAPSHOT-features.xml -->
	<feature name="cxf" version="2.2.11">
		<feature version="0.2-incubating">transaction</feature>
		<feature version="4.0.8">woodstox</feature>
		<bundle>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/1.6-SNAPSHOT
		</bundle>
		<bundle>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1
		</bundle>
		<bundle>mvn:org.apache.geronimo.specs/geronimo-ws-metadata_2.0_spec/1.1.2
		</bundle>
		<bundle>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.saaj-api-1.3/1.6-SNAPSHOT
		</bundle>
		<bundle>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxb-api-2.1/1.6-SNAPSHOT
		</bundle>
		<bundle>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxws-api-2.1/1.6-SNAPSHOT
		</bundle>
		<bundle>mvn:javax.mail/mail/1.4.3</bundle>
		<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.asm/2.2.3_4
		</bundle>
		<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.fastinfoset/1.2.7_3
		</bundle>
		<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.1.12_2
		</bundle>
		<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.neethi/2.0.4_3
		</bundle>
		<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.saaj-impl/1.3.2_2
		</bundle>
		<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.wsdl4j/1.6.2_3
		</bundle>
		<bundle>mvn:org.apache.ws.commons.schema/XmlSchema/1.4.5
		</bundle>
		<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlresolver/1.2_3
		</bundle>
		<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xerces/2.9.1_4
		</bundle>
		<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.bcel/5.2_3
		</bundle>
		<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan/2.7.1_3
		</bundle>
		<bundle>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jsr311-api-1.1/1.6-SNAPSHOT
		</bundle>
		<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlsec/1.4.3_3
		</bundle>
		<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.opensaml/1.1_5
		</bundle>
		<bundle>mvn:org.apache.ws.security/wss4j/1.5.9</bundle>
		<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlbeans/2.4.0_4
		</bundle>
		<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-lang/2.4_4
		</bundle>
		<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-collections/3.2.1_1
		</bundle>
		<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.oro/2.0.8_4
		</bundle>
		<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.velocity/1.6.2_4
		</bundle>
		<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.abdera/0.4.0-incubating_4
		</bundle>
		<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-codec/1.3_3
		</bundle>
		<bundle>mvn:org.codehaus.jettison/jettison/1.2
		</bundle>
		<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jdom/1.1_3
		</bundle>
		<bundle>mvn:org.apache.ws.commons.axiom/axiom-impl/1.2.7
		</bundle>
		<bundle>mvn:org.apache.ws.commons.axiom/axiom-api/1.2.7
		</bundle>
		<bundle>mvn:org.apache.geronimo.specs/geronimo-servlet_2.5_spec/1.1.2
		</bundle>
		<bundle>mvn:org.apache.cxf/cxf-bundle/2.2.11</bundle>
	</feature>
	<feature name="cxf-osgi" version="2.2.11">
		<feature version="2.2.11">cxf</feature>
		<feature version="2.1.0">war</feature>
	</feature>
	<feature name="cxf-jaxrs" version="2.2.11">
		<feature version="2.2.11">cxf-osgi</feature>
		<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.abdera/0.4.0-incubating_4
		</bundle>
		<bundle>mvn:org.codehaus.jettison/jettison/1.2
		</bundle>
		<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlbeans/2.4.0_4
		</bundle>
	</feature>

	<!-- bean validation, required by cc-common validation classes -->
	<feature name="bean-validation" version="1.0.0-SNAPSHOT">
		<bundle>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jsr303-api-1.0.0/1.6-SNAPSHOT</bundle>
		<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hibernate-validator/4.1.0.Final_1</bundle>
		<!-- required by hibernate-validator -->
		<bundle>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.scripting-api-1.0/1.6-SNAPSHOT</bundle>
	</feature>

	<!-- Jena over virtuoso -->
	<feature name="jena-osgi" version="1.0.0-SNAPSHOT">
		<feature version="0.2-incubating">transaction</feature>
		<bundle>mvn:org.apache.clerezza.ext/com.hp.hpl.jena/0.6-incubating-SNAPSHOT</bundle>
		<!-- virtuoso jena jars -->
<!--
		<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
		</bundle>
		<bundle>wrap:mvn:com.openlinksw/virtjdbc3/2.6.2,mvn:cl.toeska/contentcompass-features/1.0.0-SNAPSHOT/bnd/virtjdbc3-2.6.2
		</bundle>
-->
	</feature>

	<!-- install this feature to reproduce failure -->
	<feature name="contentcompass" version="1.0.0-SNAPSHOT">
		<feature version="2.2.11">cxf-jaxrs</feature>
		<feature version="1.0.0-SNAPSHOT">bean-validation</feature>
		<feature version="1.0.0-SNAPSHOT">jena-osgi</feature>
	</feature>

	<!-- Content Compass -->
<!--
	<feature name="contentcompass" version="1.0.0-SNAPSHOT">
		<feature version="1.0.0-SNAPSHOT">cc-base-layer</feature>
		<feature version="1.0.0-SNAPSHOT">cc-security-components</feature>
		<feature version="1.0.0-SNAPSHOT">cc-person-components</feature>
		<feature version="1.0.0-SNAPSHOT">cc-account-components</feature>
	</feature>

	<feature name="cc-person-components" version="1.0.0-SNAPSHOT">
		<feature version="1.0.0-SNAPSHOT">cc-base-layer</feature>
		<bundle>mvn:cl.toeska/cl.toeska.cc.person.api/1.0.0-SNAPSHOT</bundle>
		<bundle>mvn:cl.toeska/cl.toeska.cc.person.jena/1.0.0-SNAPSHOT</bundle>
		<bundle>mvn:cl.toeska/cl.toeska.cc.person.rest/1.0.0-SNAPSHOT</bundle>
	</feature>

	<feature name="cc-security-components" version="1.0.0-SNAPSHOT">
		<feature version="1.0.0-SNAPSHOT">cc-base-layer</feature>
		<feature version="1.0.0-SNAPSHOT">cc-account-components</feature>
		<bundle>mvn:cl.toeska/cl.toeska.cc.security.api/1.0.0-SNAPSHOT</bundle>
		<bundle>mvn:cl.toeska/cl.toeska.cc.security.jena/1.0.0-SNAPSHOT
		</bundle>
		<bundle>mvn:cl.toeska/cl.toeska.cc.security.rest/1.0.0-SNAPSHOT
		</bundle>
	</feature>

	<feature name="cc-account-components" version="1.0.0-SNAPSHOT">
		<feature version="1.0.0-SNAPSHOT">cc-base-layer</feature>
		<bundle>mvn:cl.toeska/cl.toeska.cc.account.api/1.0.0-SNAPSHOT</bundle>
		<bundle>mvn:cl.toeska/cl.toeska.cc.account.jena/1.0.0-SNAPSHOT
		</bundle>
		<bundle>mvn:cl.toeska/cl.toeska.cc.account.rest/1.0.0-SNAPSHOT
		</bundle>
	</feature>

	<feature name="cc-base-layer" version="1.0.0-SNAPSHOT">
		<feature version="3.0.4.RELEASE">spring</feature>
		<feature version="1.2.0">spring-dm</feature>
		<feature version="2.2.11">cxf-jaxrs</feature>
		<feature version="1.0.0-SNAPSHOT">bean-validation</feature>
		<feature version="1.0.0-SNAPSHOT">jena-osgi</feature>

		<bundle>wrap:mvn:net.jcip/jcip-annotations/1.0,mvn:cl.toeska/contentcompass-features/1.0.0-SNAPSHOT/bnd/jcip-annotations-1.0
		</bundle>

		<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxen/1.1.1_1
		</bundle>
		<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.velocity/1.6.2_4
		</bundle>
		<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-codec/1.3_3
		</bundle>
		<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.junit/4.7_2
		</bundle>

		<bundle>mvn:cl.toeska/cc-common/1.0.0-SNAPSHOT</bundle>
	</feature>
-->
</features>

Attachment: custom.properties
Description: Binary data

Attachment: jre.properties
Description: Binary data

Reply via email to