| can't import derbyclient bundle [message #633353] |
Sat, 16 October 2010 15:56  |
Kostas Kougios Messages: 42 Registered: August 2010 |
Member |
|
|
I am getting exceptions while trying to import derbyclient 10.6.2000001.999685 .
When I do
Import-Bundle: derbyclient
I get
Caused by: org.eclipse.virgo.kernel.osgi.framework.UnableToSatisfyBundleDependenciesException: Unable to satisfy dependencies of bundle 'com.rits.derby' at vers
ion '1.0.0': Import-Bundle with symbolic name 'derbyclient' in version range '[0.0.0, oo)' could not be satisfied
at org.eclipse.virgo.kernel.userregion.internal.importexpansion.ImportExpansionHandler.getBundlePackageImports(ImportExpansionHandler.java:271)
When I do
Require-Bundle: derbyclient;version="[10.6.2000001.999685]"
I get
Caused by: org.eclipse.virgo.kernel.osgi.framework.UnableToSatisfyBundleDependenciesException: Unable to satisfy dependencies of bundle 'com.rits.derby' at vers
ion '1.0.0': Cannot resolve: com.rits.derby
Resolver report:
A Require-Bundle could not be resolved. Caused by missing constraint in bundle <com.rits.derby_1.0.0>
constraint: <Require-Bundle: derbyclient; bundle-version="0.0.0">
at org.eclipse.virgo.kernel.install.pipeline.stage.resolve.internal.QuasiResolveStage.process(QuasiResolveStage.java:45)
....
I do have derby client in my maven repository and I've configured virgo to read bundles from it. This works because I import other bundles from it.
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derbyclient</artifactId>
<version>10.6.2.1</version>
</dependency>
Any ideas?
Thanks
|
|
|
|
|
|
|
|
| Re: can't import derbyclient bundle [message #633479 is a reply to message #633436] |
Mon, 18 October 2010 03:44   |
Glyn Normington Messages: 1186 Registered: July 2009 |
Senior Member |
|
|
The crucial point here is that an external repository is only scanned when Virgo starts up and Virgo has not already indexed the external repository, so the restart of Virgo with -clean is necessary to delete the index and rescan to pick up the changes. See the user guide for details.
(Watched repositories are actively scanned and pick up changes without having to restart Virgo, but these are flat directories only and therefore not suitable for Maven repositories.)
Glad you are sorted now!
[Updated on: Mon, 18 October 2010 03:49] Report message to a moderator
|
|
|
| Re: can't import derbyclient bundle [message #633529 is a reply to message #633425] |
Mon, 18 October 2010 06:41   |
Steve Powell Messages: 23 Registered: January 2010 Location: Southampton |
Junior Member |
|
|
Just a comment -- surely you should have coded:
Require-Bundle: derbyclient;bundle-version="[10.6.2000001.999685,10.6.2000001.999685]" that is, used the bundle-version attribute and not the version attribute.
That would explain the message:
Missing Constraint: Require-Bundle: derbyclient; bundle-version="0.0.0" referring to version 0.0.0 (which you 'specified').
I don't think if affects the rest of the discussion, however.
Steve Powell :-/
|
|
|
|
|
|
|
|
|
|
|
|
| Re: can't import derbyclient bundle [message #634452 is a reply to message #634290] |
Thu, 21 October 2010 14:36  |
Kostas Kougios Messages: 42 Registered: August 2010 |
Member |
|
|
| Glyn Normington wrote on Thu, 21 October 2010 03:34 | It's handled by dmk.sh/dmk.bat. If you use the Virgo tooling, there is an option to clean start the server.
|
aha, thats why it doesn't work for me. I was invoking java straight away with the -clean param. Not a bug then.
|
|
|
Powered by
FUDForum. Page generated in 0.05475 seconds