You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by Charles Moulliard <cm...@gmail.com> on 2011/01/03 12:35:25 UTC

Issue when deploying camel 2.5 on karaf snapshot 2.1.99

Thers is an issue when deploying camel 2.5.0 on karaf snapshot 2.1.99


charlesmoulliard@root> features:install camel
Installing feature camel 2.5.0
Installing feature camel-core 2.5.0
Installing feature spring 3.0.4.RELEASE
Installing bundle
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.aopalliance/1.0_3
Installing bundle mvn:org.springframework/spring-asm/3.0.4.RELEASE
Installing bundle mvn:org.springframework/spring-aop/3.0.4.RELEASE
Installing bundle mvn:org.springframework/spring-aspects/3.0.4.RELEASE
Installing bundle mvn:org.springframework/spring-core/3.0.4.RELEASE
Installing bundle mvn:org.springframework/spring-beans/3.0.4.RELEASE
Installing bundle mvn:org.springframework/spring-context/3.0.4.RELEASE
Installing bundle mvn:org.springframework/spring-context-support/3.0.4.RELEASE
Installing bundle mvn:org.springframework/spring-expression/3.0.4.RELEASE
Installing bundle
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/1.5.0
Installing bundle
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxb-api-2.1/1.5.0
Installing bundle
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.stax-api-1.0/1.5.0
Installing bundle
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.1.13_1
Installing bundle mvn:org.fusesource.commonman/commons-management/1.0
Installing bundle mvn:org.apache.camel/camel-core/2.5.0
Installing feature camel-spring 2.5.0
Installing feature spring 3.0.4.RELEASE
Found installed bundle: org.apache.servicemix.bundles.aopalliance [119]
Found installed bundle: org.springframework.asm [120]
Found installed bundle: org.springframework.aop [121]
Found installed bundle: org.springframework.aspects [122]
Found installed bundle: org.springframework.core [123]
Found installed bundle: org.springframework.beans [124]
Found installed bundle: org.springframework.context [125]
Found installed bundle: org.springframework.context.support [126]
Found installed bundle: org.springframework.expression [127]
Installing feature spring-dm 1.2.0
Installing feature spring 3.0.5.RELEASE
Installing bundle mvn:org.springframework/spring-beans/3.0.5.RELEASE
Installing bundle mvn:org.springframework/spring-context-support/3.0.5.RELEASE
Installing bundle mvn:org.springframework/spring-context/3.0.5.RELEASE
Installing bundle mvn:org.springframework/spring-expression/3.0.5.RELEASE
Installing bundle mvn:org.springframework/spring-asm/3.0.5.RELEASE
Installing bundle mvn:org.springframework/spring-core/3.0.5.RELEASE
Installing bundle mvn:org.springframework/spring-aop/3.0.5.RELEASE
Installing bundle mvn:org.springframework.osgi/spring-osgi-core/1.2.0
Installing bundle mvn:org.springframework.osgi/spring-osgi-io/1.2.0
Installing bundle
mvn:org.apache.karaf.deployer/org.apache.karaf.deployer.spring/2.1.99-SNAPSHOT
Installing bundle mvn:org.springframework.osgi/spring-osgi-annotation/1.2.0
Installing bundle mvn:org.springframework.osgi/spring-osgi-extender/1.2.0
Installing feature camel-core 2.5.0
Installing feature spring 3.0.4.RELEASE
Found installed bundle: org.apache.servicemix.bundles.aopalliance [119]
Found installed bundle: org.springframework.asm [120]
Found installed bundle: org.springframework.aop [121]
Found installed bundle: org.springframework.aspects [122]
Found installed bundle: org.springframework.core [123]
Found installed bundle: org.springframework.beans [124]
Found installed bundle: org.springframework.context [125]
Found installed bundle: org.springframework.context.support [126]
Found installed bundle: org.springframework.expression [127]
Found installed bundle: org.apache.servicemix.specs.activation-api-1.1 [128]
Found installed bundle: org.apache.servicemix.specs.jaxb-api-2.1 [129]
Found installed bundle: org.apache.servicemix.specs.stax-api-1.0 [130]
Found installed bundle: org.apache.servicemix.bundles.jaxb-impl [131]
Found installed bundle: commons-management [132]
Found installed bundle: org.apache.camel.camel-core [133]
Found installed bundle: org.apache.geronimo.specs.geronimo-jta_1.1_spec [87]
Installing bundle mvn:org.springframework/spring-tx/3.0.4.RELEASE
Installing bundle mvn:org.apache.camel/camel-spring/2.5.0
Exception in thread "SpringOsgiExtenderThread-1"
java.lang.IllegalStateException: BeanFactory not initialized or
already closed - call 'refresh' before accessing beans via the
ApplicationContext
	at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:171)
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.close(DependencyWaiterApplicationContextExecutor.java:345)
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.fail(DependencyWaiterApplicationContextExecutor.java:401)
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:287)
	at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)
	at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718)
	at java.lang.Thread.run(Thread.java:680)
Error executing command: Could not start bundle
mvn:org.apache.camel/camel-spring/2.5.0 in feature(s)
camel-spring-2.5.0: Constraint violation for package
'org.springframework.core' when resolving module 146.0 between
existing import 123.0.org.springframework.core BLAMED ON [[146.0]
package; (&(package=org.springframework.core)(version>=2.5.0)(!(version>=4.0.0)))]
and uses constraint 139.0.org.springframework.core BLAMED ON [[146.0]
package; (&(package=org.apache.camel.view)(version>=2.5.0)(!(version>=2.5.1))),
[133.0] package;
(&(package=org.springframework.jmx.export.metadata)(version>=2.5.0)(!(version>=4.0.0))),
[136.0] package;
(&(package=org.springframework.core)(version>=3.0.5)(!(version>=3.0.6)))]