You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Simon MaticLangford <Si...@betfair.com> on 2008/10/07 16:02:34 UTC

Unresolved constraint that exists within a bundle

Hi,

 

I'm playing around with a PoC using Felix and Oracle Coherence as a compute grid. I have created a bundle that contains the coherence classes embedded using the maven-bundle-plugin config:

 

            <plugin>

                <groupId>org.apache.felix</groupId>

                <artifactId>maven-bundle-plugin</artifactId>

                <extensions>true</extensions>

                <configuration>

                    <instructions>

                        <Private-Package>com.betfair.poc.grid.adapter</Private-Package>

                        <Export-Service>com.betfair.poc.grid.adapter.GridAdapter</Export-Service>

                        <Bundle-Activator>com.betfair.poc.grid.adapter.Activator</Bundle-Activator>

                        <Embed-Dependency>*;scope=compile</Embed-Dependency>

                    </instructions>

                </configuration>

            </plugin>

 

and where my dependencies include (amongst others): 

 

        <dependency>

            <groupId>tangosol</groupId>

            <artifactId>coherence</artifactId>

            <version>311b341</version>

        </dependency>

        <dependency>

            <groupId>tangosol</groupId>

            <artifactId>tangosol-nolicense</artifactId>

            <version>311b341</version>

        </dependency>

 

In my generated bundle jar I can see the embedded coherence-311b341.jar and tangosol-nolicense-311b341.jar, and in my manifest I have the relevant entries:

 

Manifest-Version: 1.0

Private-Package: com.betfair.poc.grid.adapter,<snip>,com.tangosol.util.filter,com.tangosol.util.processor,com.tangosol.util.registry,<snip>

Bundle-ClassPath: .,mail-1.3.1.jar,j2ee-1.4.jar,activation-1.0.2.jar,coherence-311b341.jar,tangosol-nolicense-311b341.jar,jaas-1.0.01.jar

Built-By: langfords

Tool: Bnd-0.0.255

Bundle-Name: Poc OSGi Coherence Grid Adapter

Created-By: Apache Maven Bundle Plugin

Export-Service: com.betfair.poc.grid.adapter.GridAdapter

Build-Jdk: 1.6.0_05

Bundle-Version: 1.0.0.SNAPSHOT

Bnd-LastModified: 1223383421256

Bundle-ManifestVersion: 2

Bundle-Activator: com.betfair.poc.grid.adapter.Activator

Embed-Dependency: *;scope=compile

Bundle-SymbolicName: com.betfair.poc.grid.osgi.grid-adapter

Import-Package: com.betfair.poc.grid.common,<snip>

 

And yet when I try to start the bundle from the shell I get the following error:

-> ERROR: Error starting file:/C:/research/poc/felix/felix-mytutorial/runner/target/bundles/grid-adapter-1.0.0.SNAPSHOT.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle 35: package; (package=com.tangosol.util.processor))

org.osgi.framework.BundleException: Unresolved constraint in bundle 35: package; (package=com.tangosol.util.processor)

            at org.apache.felix.framework.Felix._resolveBundle(Felix.java:1725)

            at org.apache.felix.framework.Felix._startBundle(Felix.java:1588)

            at org.apache.felix.framework.Felix.startBundle(Felix.java:1541)

            at org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1135)

            at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:267)

            at java.lang.Thread.run(Thread.java:619)

 

If anyone has any ideas what I can do it would be greatly appreciated.

 

Thanks

 

Simon

 

 

Simon Matić Langford

www.betfair.com <http://www.betfair.com/> 

 

Waterfront | Hammersmith Embankment | Chancellors Road | London | W6 9HP

 

The information in this e-mail and any attachment is confidential and is intended only for the named recipient(s). The e-mail may not be disclosed or used by any person other than the addressee, nor may it be copied in any way. If you are not a named recipient please notify the sender immediately and delete any copies of this message. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Any view or opinions presented are solely those of the author and do not necessarily represent those of Betfair. Betfair is the trading name of The Sporting Exchange Limited whose registered office is: Waterfront, Hammersmith Embankment, Chancellors Road, London W6 9HP. Registered in England with No. 3770548.

 


________________________________________________________________________
In order to protect our email recipients, Betfair Group use SkyScan from 
MessageLabs to scan all Incoming and Outgoing mail for viruses.

________________________________________________________________________