Bundle constraint violation without a package message
oren Aug 26, 2009 2:04 PMDear All,
Sometimes I am getting a BundleException, but it doesn't tell me which dependency is not found. I turned on TRACE logging and looked in the log file, but it doesn't provide more information. Please see the attached pom. It contains references to some of my other maven projects, but these all start fine as bundles, so I am assuming there's something wrong with the pom. But without more information, I can't debug the problem. Can you kindly help me?
Thank you so much in advance.
================
In Shell:
smx@root:osgi> update 251
smx@root:osgi> start 251
ERROR CommandLineExecutionFailed: org.apache.geronimo.gshell.command.CommandExce
ption: org.osgi.framework.BundleException: Unable to resolve due to constraint v
iolation.
=================
In servicemix.log:
11:58:09,984 | TRACE | localShell | ShellContextHolder | .gshell.shell.ShellContextHolder 45 | Getting context (false): org.apache.geronimo.gshell.wisdom.shell.ShellImpl$1@4461a2
11:58:10,000 | DEBUG | localShell | ConsoleErrorHandlerImpl | om.shell.ConsoleErrorHandlerImpl 75 | org.apache.geronimo.gshell.commandline.CommandLineExecutionFailed: org.apache.geronimo.gshell.command.CommandException: org.osgi.framework.BundleException: Unable to resolve due to constraint violation.
org.apache.geronimo.gshell.commandline.CommandLineExecutionFailed: org.apache.geronimo.gshell.command.CommandException: org.osgi.framework.BundleException: Unable to resolve due to constraint violation.
at org.apache.geronimo.gshell.parser.visitor.ExecutingVisitor.executePiped(ExecutingVisitor.java:246)
at org.apache.geronimo.gshell.parser.visitor.ExecutingVisitor.visit(ExecutingVisitor.java:107)
at org.apache.geronimo.gshell.parser.ASTExpression.jjtAccept(ASTExpression.java:17)
at org.apache.geronimo.gshell.parser.SimpleNode.childrenAccept(SimpleNode.java:61)
at org.apache.geronimo.gshell.parser.visitor.ExecutingVisitor.visit(ExecutingVisitor.java:90)
at org.apache.geronimo.gshell.parser.ASTCommandLine.jjtAccept(ASTCommandLine.java:17)
at org.apache.geronimo.gshell.wisdom.shell.CommandLineBuilderImpl$1.execute(CommandLineBuilderImpl.java:96)
at org.apache.geronimo.gshell.wisdom.shell.CommandLineExecutorImpl.execute(CommandLineExecutorImpl.java:71)
at org.apache.geronimo.gshell.wisdom.shell.ShellImpl.execute(ShellImpl.java:172)
at org.apache.geronimo.gshell.wisdom.shell.ShellImpl$2.execute(ShellImpl.java:208)
at org.apache.geronimo.gshell.console.Console.work(Console.java:187)
at org.apache.geronimo.gshell.console.Console.run(Console.java:128)
at org.apache.geronimo.gshell.wisdom.shell.ShellImpl.run(ShellImpl.java:252)
at org.apache.servicemix.kernel.gshell.core.ShellWrapper.run(ShellWrapper.java:81)
at org.apache.servicemix.kernel.gshell.core.LocalConsole.run(LocalConsole.java:125)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.geronimo.gshell.command.CommandException: org.osgi.framework.BundleException: Unable to resolve due to constraint violation.
at org.apache.geronimo.gshell.wisdom.shell.CommandLineExecutorImpl.doExecute(CommandLineExecutorImpl.java:148)
at org.apache.geronimo.gshell.wisdom.shell.CommandLineExecutorImpl.execute(CommandLineExecutorImpl.java:106)
at org.apache.geronimo.gshell.parser.visitor.ExecutingVisitor$1.run(ExecutingVisitor.java:208)
at org.apache.geronimo.gshell.parser.visitor.ExecutingVisitor.executePiped(ExecutingVisitor.java:231)
... 15 more
Caused by: org.osgi.framework.BundleException: Unable to resolve due to constraint violation.
at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3066)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1439)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:770)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:751)
at org.apache.servicemix.kernel.gshell.osgi.StartBundle.doExecute(StartBundle.java:24)
at org.apache.servicemix.kernel.gshell.osgi.BundleCommand.doExecute(BundleCommand.java:74)
at org.apache.servicemix.kernel.gshell.core.OsgiCommandSupport.execute(OsgiCommandSupport.java:48)
at org.apache.geronimo.gshell.wisdom.command.CommandSupport.executeAction(CommandSupport.java:303)
at org.apache.geronimo.gshell.wisdom.command.StatefulCommand.executeAction(StatefulCommand.java:94)
at org.apache.geronimo.gshell.wisdom.command.CommandSupport.execute(CommandSupport.java:194)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:64)
at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:78)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:57)
at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:40)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy16.execute(Unknown Source)
at org.apache.geronimo.gshell.wisdom.shell.CommandLineExecutorImpl.doExecute(CommandLineExecutorImpl.java:127)
... 18 more
===================
Tail of my installed bundles (< 35 are anyway standard - I am using the standard FUSE 4.1.0.2 distribution)
Apache ServiceMix Bundles: aopalliance-1.
0 (1.0.0.1)
Apache ServiceMix Kernel :: JAAS Modules
(1.1.0.fuse)
Apache ServiceMix Bundles: oro-2.0.8 (2.0
.8.1)
Apache ServiceMix Kernel :: Spring Deploy
er (1.1.0.fuse)
Apache ServiceMix Bundles: cglib-2.1_3 (2
.1.0.3_2)
Apache ServiceMix Kernel :: File Monitor
(1.1.0.fuse)
geronimo-j2ee-connector_1.5_spec (2.0.0)
Apache ServiceMix Bundles: howl-1.0.1-1 (
1.0.1.1_1)
Geronimo TxManager :: Transaction (2.2.0.
r634076)
Apache ServiceMix Transaction (1.1.0.fuse
)
Geronimo TxManager :: Connector (2.2.0.r6
34076)
Apache ServiceMix Bundles: jencks-2.1 (2.
1.0.1)
geronimo-j2ee-management_1.1_spec (1.0.1)
Apache Commons Pool Bundle (1.4)
Apache ServiceMix Features :: ActiveMQ Co
mmands (4.1.0.fuse)
Apache ServiceMix Specs :: STAX API 1.0 (
1.3.0.fuse)
Apache ServiceMix Specs :: ACTIVATION API
1.4 (1.3.0.fuse)
Apache ServiceMix Specs :: JAXB API 2.1 (
1.3.0.fuse)
Apache ServiceMix Bundles: jaxb-impl-2.1.
6 (2.1.6.1)
Apache ServiceMix Naming (1.1.0.fuse)
Apache ServiceMix Specs :: JBI API 1.0 (1
.3.0.fuse)
Apache ServiceMix :: Utils (1.1.0.fuse)
Apache ServiceMix Document (1.1.0.fuse)
Apache ServiceMix NMR API (1.1.0.fuse)
Apache ServiceMix NMR Core (1.1.0.fuse)
Apache ServiceMix NMR OSGi (1.1.0.fuse)
Apache ServiceMix NMR Spring (1.1.0.fuse)
Apache ServiceMix NMR Commands (1.1.0.fus
e)
Apache ServiceMix NMR Management (1.1.0.f
use)
Apache ServiceMix Specs :: JAVAMAIL API 1
.4 (1.3.0.fuse)
Apache ServiceMix Bundles: woodstox-3.2.7
(3.2.7.1)
Apache ServiceMix Bundles: wsdl4j-1.6.1 (
1.6.1.1)
Apache ServiceMix Bundles: ant-1.7.0 (1.7
.0.1)
Apache ServiceMix JBI Runtime (1.1.0.fuse
)
Apache ServiceMix JBI OSGi (1.1.0.fuse)
Apache ServiceMix JBI Deployer (1.1.0.fus
e)
Apache ServiceMix JBI Commands (1.1.0.fus
e)
Apache ServiceMix JBI Clustering Requesto
r (1.1.0.fuse)
Apache ServiceMix JBI Clustering Engine (
1.1.0.fuse)
Apache ServiceMix JBI Clustering Config (
1.1.0.fuse)
Apache ServiceMix Bundles: jetty-6.1.14 (
6.1.14.1)
OPS4J Pax Web - Jsp Support (0.5.2)
OPS4J Pax Web - Web Container (0.5.2)
OPS4J Pax Web Extender - WAR (0.5.0)
OPS4J Pax Web Extender - Whiteboard (0.5.
0)
OPS4J Pax Url - war:, war-i: (0.3.3)
Apache ServiceMix WAR Deployer (4.1.0.fus
e)
ServiceMix :: Common (2009.01.0.fuse)
geronimo-ws-metadata_2.0_spec (1.1.2)
Apache ServiceMix Specs :: SAAJ API 1.3 (
1.3.0.fuse)
Apache ServiceMix Specs :: JAXWS API 2.1
(1.3.0.fuse)
Apache ServiceMix Bundles: asm-2.2.3 (2.2
.3.1)
Apache ServiceMix Bundles: FastInfoset-1.
2.2 (1.2.2.1)
Apache ServiceMix Bundles: neethi-2.0.4 (
2.0.4.1)
Apache ServiceMix Bundles: saaj-impl-1.3
(1.3.0.1)
Apache ServiceMix Bundles: xmlschema-1.4.
3 (1.4.3.1)
Apache ServiceMix Bundles: xmlresolver-1.
2 (1.2.0.1)
Apache ServiceMix Bundles: xmlsec-1.3.0 (
1.3.0.1)
Apache ServiceMix Bundles: wss4j-1.5.4 (1
.5.4.1)
Apache ServiceMix Specs :: JSR311 API 1.0
(1.3.0.fuse)
Apache ServiceMix Bundles: xmlbeans-2.4.0
(2.4.0.2)
Apache CXF Bundle Jar (2.2.2.1-fuse)
ServiceMix :: SOAP2 (2009.01.0.fuse)
ServiceMix :: CXF Binding Component (2009
.01.0.fuse)
ServiceMix :: File (2009.01.0.fuse)
Apache ServiceMix Bundles: commons-net-1.
4.1 (1.4.1.1)
ServiceMix :: FTP (2009.01.0.fuse)
ServiceMix :: SOAP (2009.01.0.fuse)
ServiceMix :: HTTP (2009.01.0.fuse)
ServiceMix :: JMS (2009.01.0.fuse)
Apache ServiceMix Bundles: geronimo-javam
ail_1.4_provider-1.8-r755222 (1.8.0.r755222_1)
ServiceMix :: Mail (2009.01.0.fuse)
ServiceMix :: Bean (2009.01.0.fuse)
ServiceMix :: Camel (2009.01.0.fuse)
Apache CXF Runtime JBI Binding (2.2.2.1-f
use)
Apache CXF Runtime JBI Transport (2.2.2.1
-fuse)
ServiceMix :: CXF Service Engine (2009.01
.0.fuse)
Apache ServiceMix Bundles: core-3.2.3.v_6
86_R32x (3.2.3.1)
Apache ServiceMix Bundles: antlr-runtime-
3.0.1 (3.0.1.1)
Apache ServiceMix Bundles: drools-4.0.7 (
4.0.7.1)
ServiceMix :: Drools Service Engine (2009
.01.0.fuse)
ServiceMix :: EIP (2009.01.0.fuse)
Apache ServiceMix Bundles: antlr-3.0.1 (3
.0.1.1)
Apache ServiceMix Bundles: quartz-1.6.1 (
1.6.1.1)
Apache ServiceMix Bundles: oscore-2.2.4 (
2.2.4.1)
Apache ServiceMix Bundles: propertyset-1.
3 (1.3.0.1)
Apache ServiceMix Bundles: osworkflow-2.7
.0 (2.7.0.1)
ServiceMix :: OSWorkflow (2009.01.0.fuse)
Apache Commons Logging (1.1.1)
Spring Context Support (2.5.6)
ServiceMix :: Quartz (2009.01.0.fuse)
AspectJ Runtime (1.6.2.RELEASE)
AspectJ Weaver (1.6.2.RELEASE)
Apache ServiceMix Specs :: Scripting API
1.0 (1.3.0.fuse)
Apache Commons Database Connection Pool (
1.2.2.osgi)
Apache ServiceMix Bundles: groovy-1.5.6 (
1.5.6.1)
Apache ServiceMix Bundles: js-1.7R1 (1.0.
0.7R1_1)
Apache ServiceMix Bundles: jruby-1.1.2 (1
.1.2.1)
ScriptEngines :: JavaScript (1.1)
Javassist Java Programming Assistant (3.3
.0.ga)
ServiceMix :: JSR-223 Scripting Service E
ngine (2009.01.0.fuse)
JBoss Hibernate Object-Relational Mapper
(3.3.1.GA)
Fragments: 244,243
ServiceMix :: Validation (2009.01.0.fuse)
c3p0 Connection Pool (0.9.1.2)
Apache ServiceMix Bundles: saxon-9.1.0.1
(9.1.0.1_1)
ServiceMix :: Saxon Service Engine (2009.
01.0.fuse)
ServiceMix :: WS-Notification Service Eng
ine (2009.01.0.fuse)
Spring O/X Mapping - Java 5 (1.5.7)
Hosts: 175,175,227
Fragments: 173
wrap_mvn_org.codehaus.jra_jra_1.0-alpha-4
(0)
wrap_mvn_xerces_xercesImpl_2.9.1 (0)
wrap_mvn_com.oracle_ojdbc6_11.1.0.7.0 (0)
wrap_mvn_com.oracle_xdb_11.1.0.7.0 (0)
wrap_mvn_jcs_jcs_20030822.182132 (0)
wrap_mvn_commons-math_commons-math_200402
18.045431 (0)
wrap_mvn_net.sourceforge.collections_coll
ections-generic_4.01 (0)
wrap_mvn_org.basex_basex-xqj_5.0 (0)
further-fuse-aop (0.0.1.SNAPSHOT)
Apache ServiceMix CXF Transport for OSGi
(4.1.0.fuse)
geronimo-activation_1.1_spec (1.0.2)
Apache ServiceMix Bundles: junit-4.4 (4.4
.0.1)
Apache ServiceMix Bundles: jdom-1.1 (1.1.
0.fuse)
Apache ServiceMix Bundles: jettison-1.0.1
(1.0.1.1)
Apache ServiceMix Bundles: werken-xpath-0
.9.4 (0.9.4.fuse)
Apache ServiceMix Bundles: velocity-1.6.2
(1.6.2.fuse)
geronimo-javamail_1.4_spec (1.5)
Apache ServiceMix Bundles: abdera-0.4.0-i
ncubating (0.4.0.incubating_1-fuse)
Apache ServiceMix Bundles: commons-io-1.3
.2 (1.3.2.1)
further-core-api (1.0.0.SNAPSHOT)
further-core-metadata (1.0.0.SNAPSHOT)
further-core-util (1.0.0.SNAPSHOT)
further-core-util-jen (1.0.0.SNAPSHOT)
further-core-query (1.0.0.SNAPSHOT)
further-core-data (1.0.0.SNAPSHOT)
further-core-data-oracle (1.0.0.SNAPSHOT)
further-core-grid (1.0.0.SNAPSHOT)
further-core-ws-cxf (1.0.0.SNAPSHOT)
further-mdr-api (1.0.0.SNAPSHOT)
further-mdr-ws-api (1.0.0.SNAPSHOT)
further-cs-api (1.0.0.SNAPSHOT)
further-cs-impl (1.0.0.SNAPSHOT)
further-i2b2-dts-api (1.0.0.SNAPSHOT)
further-i2b2-dts-impl (1.0.0.SNAPSHOT)
further-i2b2-dts-model-import (1.0.0.SNAP
SHOT)
further-i2b2-dts-namespace-import (1.0.0.
SNAPSHOT)
further-i2b2-query (1.0.0.SNAPSHOT)
further-fqe-simple-se (1.0.0.SNAPSHOT)
further-fqe-engine-se (1.0.0.SNAPSHOT)
further-fqe-engine-ws-bc (1.0.0.SNAPSHOT)
further-fqe-ds-se (1.0.0.SNAPSHOT)
further-fqe-ds-jms-bc (1.0.0.SNAPSHOT)
further-fqe-ds-uuedw (1.0.0.SNAPSHOT)
further-fqe-ds-ihc (1.0.0.SNAPSHOT)
further-dts-api (1.0.0.SNAPSHOT)
further-dts-apelon (1.0.0.SNAPSHOT)
further-dts-impl (1.0.0.SNAPSHOT)
further-dts-ws-api (1.0.0.SNAPSHOT)
further-dts-ws (1.0.0.SNAPSHOT)
JBoss Hibernate Entity Manager (3.4.0.GA)
Hosts: 164
JBoss Hibernate Annotations (3.4.0.GA)
Hosts: 164,180,208,210,224,226
JBoss Hibernate Common Annotations (3.3.0
.ga)
-
pom.xml 7.3 KB