org.osgi.framework.BundleException: Unable to resolve due to
constraint violation.
at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3302)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1653)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:892)
at
org.apache.felix.karaf.shell.osgi.StartBundle.doExecute(StartBundle.java:29)
at
org.apache.felix.karaf.shell.osgi.BundlesCommand.doExecute(BundlesCommand.java:49)
at
org.apache.felix.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:41)
at
org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:34)
at
org.apache.felix.gogo.runtime.shell.CommandProxy.execute(CommandProxy.java:45)
at org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:211)
at
org.apache.felix.gogo.runtime.shell.Closure.executeStatement(Closure.java:146)
at org.apache.felix.gogo.runtime.shell.Pipe.run(Pipe.java:91)
at org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:75)
at
org.apache.felix.gogo.runtime.shell.CommandSessionImpl.execute(CommandSessionImpl.java:71)
at
org.apache.felix.karaf.shell.console.jline.Console.run(Console.java:174)
at java.lang.Thread.run(Thread.java:619)
Charles Moulliard
Senior Enterprise Architect (J2EE, .NET, SOA)
Apache Camel Committer
*******************************************************************
- Blog : http://cmoulliard.blogspot.com
- Twitter : http://twitter.com/cmoulliard
- Linkedlin : http://www.linkedin.com/in/charlesmoulliard
On Wed, May 5, 2010 at 2:49 PM, Guillaume Nodet <[email protected]> wrote:
> What's the exact error ?
>
> On Wed, May 5, 2010 at 14:47, Charles Moulliard <[email protected]>wrote:
>
>> Hi,
>>
>> I try to deploy a bundle under ServiceMix 4.2 running Felix 2.0.4 and
>> get an unresolved constraint. The bundle is created using Felix
>> maven-bundle-plugin 2.0.1
>>
>> <plugin>
>> <groupId>org.apache.felix</groupId>
>> <artifactId>maven-bundle-plugin</artifactId>
>> <version>${felix-version}</version>
>> <extensions>true</extensions>
>>
>> <configuration>
>>
>> <excludeDependencies>${project.osgi.exclude.dependencies}</excludeDependencies>
>>
>> <instructions>
>>
>> <Bundle-Name>Test</Bundle-Name>
>>
>> <Bundle-SymbolicName>Test</Bundle-SymbolicName>
>>
>> <Export-Package>com.goodyear.emea.gicl.esb.persistence</Export-Package>
>> <Import-Package>
>>
>> com.goodyear.emea.gicl.esb.model,
>>
>> org.eclipse.persistence.jpa,
>>
>> javax.persistence,
>> *
>> </Import-Package>
>> <Private-Package>
>>
>> com.goodyear.emea.gicl.esb.entities,
>>
>> com.goodyear.emea.gicl.esb.persistence.impl</Private-Package>
>> <Implementation-Title>SAP
>> Manual Upload</Implementation-Title>
>>
>> <Implementation-Version>1.0.0-SNAPSHOT</Implementation-Version>
>> </instructions>
>> </configuration>
>> </plugin>
>>
>> Here is the manifest. Surprisingly, I don t see any Private-Package in
>> the MANIFEST file and the package com.goodyear.emea.gicl.esb.entities
>> is well present in the jar
>>
>> Manifest-Version: 1.0
>> Export-Package: com.goodyear.emea.gicl.esb.persistence;uses:="com.good
>> year.emea.gicl.esb.model"
>> Implementation-Title: SAP Manual Upload
>> Implementation-Version: 1.0.0-SNAPSHOT
>> Built-By: ngib962
>> Tool: Bnd-0.0.357
>> Bundle-Name: sap-prodspec-persistence
>> Created-By: Apache Maven Bundle Plugin
>> Build-Jdk: 1.6.0_14
>> Bundle-Version: 1.0.0.SNAPSHOT
>> Bnd-LastModified: 1273062847410
>> Bundle-ManifestVersion: 2
>> Bundle-SymbolicName: com.goodyear.emea.gicl.esb.sap-prodspec-persisten
>> ce
>> Import-Package: com.goodyear.emea.gicl.esb.model,com.goodyear.emea.gic
>> l.esb.persistence,javax.persistence;version="1.1",org.eclipse.persist
>> ence.jpa;version="2.0",org.springframework.orm.jpa;version="2.5",org.
>> springframework.orm.jpa.support;version="2.5",org.springframework.orm
>> .jpa.vendor;version="2.5",org.springframework.transaction.support;ver
>> sion="2.5"
>>
>> Any idea is welcome ?
>>
>> Charles Moulliard
>>
>> Senior Enterprise Architect (J2EE, .NET, SOA)
>> Apache Camel Committer
>>
>> *******************************************************************
>> - Blog : http://cmoulliard.blogspot.com
>> - Twitter : http://twitter.com/cmoulliard
>> - Linkedlin : http://www.linkedin.com/in/charlesmoulliard
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]