| Virgo packaged Spring 3 bundles not having all dependencies fulfilled [message #911778] |
Wed, 12 September 2012 05:54  |
Seth Helstrip Messages: 22 Registered: September 2012 |
Junior Member |
|
|
Hitting a problem where I'm trying to make use of the included Spring 3 OXM framework within Virgo. The exception is telling me that I need to fulfill the Thoughtworks xstream dependencies of the Spring OXM bundle.
org.eclipse.virgo.kernel.osgi.framework.ExtendedClassNotFoundException: com.thoughtworks.xstream.io.HierarchicalStreamWriter in KernelBundleClassLoader: [bundle=org.springframework.oxm_3.0.5.RELEASE]
org.eclipse.virgo.kernel.userregion.internal.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:139)
java.lang.ClassLoader.loadClass(ClassLoader.java:356)
java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:2404)
java.lang.Class.getDeclaredConstructors(Class.java:1853)...
I've downloaded and installed the Springsource distribution of the xstream dependency, however, when looking at the Spring OXM bundle in the Virgo admin console, it still looks as though the dependency isn't fulfilled, and I'm getting the same exception (above), indicating the same thing.
Do I need to do something to the Virgo server, in order to force it to try and fulfill it's bundles optional dependencies, from other newly installed bundles?
Many thanks in advance.
|
|
|
|
|
| Re: Virgo packaged Spring 3 bundles not having all dependencies fulfilled [message #911989 is a reply to message #911913] |
Wed, 12 September 2012 14:28  |
Chris Frost Messages: 222 Registered: January 2010 Location: Southampton, England |
Senior Member |

|
|
You got it.
This is actually a 'feature' of OSGi. Once a bundle has been installed it is not possible to resolve any extra optional dependencies without restarting the bundle. By placing your bundle in one of Virgo's repo it is able to see that it can satisfy one of the optional dependencies of the Spring bundle when Virgo is starting and bring it in.
Hope the explanation helps,
Chris.
------------------------------------------------
Chris Frost, Twitter @cgfrost
Springsource, a divison of VMware.
|
|
|
Powered by
FUDForum. Page generated in 0.02128 seconds