DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page Hello, and a question regarding DynamicImport
Notices
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Join Date: Dec 2009
Default Hello, and a question regarding DynamicImport - 12-20-2009, 12:58 PM

Hello everyone,
I have a question regarding DynamicImport-Package with version.
In my application, I have many bundles, with lots of dependencies. I used the great BND tool to create the bundles with a version number for each package and version range for the imports.
I wanted to use DynamicImport-Package * to solve order and dependencies problems.
Although the bundle contains a "DynamicImport-Package *" in the Manifest file I still get:

org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Import-Package: com.framework.configuration.accessors; version="1.0.0"

It worked fine without the versions (i.e.. when the include packages command only contained the packages without their version).

Anyone has a clue on what can be done?

Any idea will be appreciated.
Thanks in advance,
Amnon
Reply With Quote
  (#2 (permalink)) Old
Moderator
 
Posts: 119
Thanks: 0
Thanked 10 Times in 9 Posts
Join Date: Jan 2008
Default 12-21-2009, 04:13 AM

Not 100% sure, but did you make sure the version on the manifest.mf of com.framework.configuration.accessors is actually 1.0.0?

James
Reply With Quote
  (#3 (permalink)) Old
Moderator
 
Posts: 119
Thanks: 0
Thanked 10 Times in 9 Posts
Join Date: Jan 2008
Default 12-21-2009, 04:13 AM

Not 100% sure, but did you make sure the version on the manifest.mf of com.framework.configuration.accessors is actually 1.0.0?

James
Reply With Quote
The Following User Says Thank You to jsugrue For This Useful Post:
amnonh (12-21-2009)
  (#4 (permalink)) Old
Member
 
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Join Date: Dec 2009
Default I did - 12-21-2009, 08:13 AM

I actually started with a range [1.0,1.1) and when it didn't work, I've move to concrete version (1.0.0).

Even if it was a version problem, the dynamic-import should have allow it.
I would suspect that I either need to specify a version as part of the dynamic import (I tried all the options I can think of and it didn't work). Or that dynamic import doesn't support version at all.

Is there someone who is familiar with the code that can answer it? Or, any reference to where I can go and search the code my self.
Reply With Quote
Reply

Tags
dynamicimport-package, equinox

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about inheritance jjslocum3 Java 4 06-26-2009 01:42 AM
Question about Applet ? jaypaul Java 1 04-15-2009 01:39 AM
Java FX Question PixelArtist Java 0 04-14-2009 11:38 PM
Build new RCP on IDE or not? That is the question. AndrewB Eclipse 0 10-30-2008 07:59 AM
EMF Question jdc3 Eclipse 0 02-26-2008 08:21 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com