Uses constraint when adding org.springframework.spring [message #550321] |
Thu, 29 July 2010 18:09  |
Eclipse User |
|
|
|
Hi,
I'm trying to get my project into OSGI. I'm going through the tutorials on the DM server docs and have come up with issue as soon as I add the org.springframework.spring jar.
Resolver report:
Uses violation: <Import-Package: org.springframework.web.servlet.view.freemarker; version="0.0.0"> in bundle <org.springframework.showcase.formtags-shared-libs_0.0.0>
Resolver reported uses conflict for import constrained to bundle <org.springframework.web.servlet> constrained bundle version range "[3.0.0.RELEASE,3.0.0.RELEASE]"
. com.springsource.kernel.osgi.framework.UnableToSatisfyBundleDependenciesException: Unable to satisfy dependencies of bundle 'org.springframework.showcase.formtags-shared-libs' at version '0.0.0': Cannot resolve: org.springframework.showcase.formtags-shared-libs
Resolver report:
Uses violation: <Import-Package: org.springframework.web.servlet.view.freemarker; version="0.0.0"> in bundle <org.springframework.showcase.formtags-shared-libs_0.0.0>
Resolver reported uses conflict for import constrained to bundle <org.springframework.web.servlet> constrained bundle version range "[3.0.0.RELEASE,3.0.0.RELEASE]"
I don't understand why this issue would be occuring, this is a package that is being exported by the jar, so why is there a uses constraint and how can I get rid of it, it's driving me up the wall.
|
|
|
|
|
|
|
|
Re: Uses constraint when adding org.springframework.spring [message #594357 is a reply to message #550321] |
Fri, 30 July 2010 08:19  |
Eclipse User |
|
|
|
Hi,
Thanks for you response. I was actually only adding this as it's included in the greenpages examples. I'm in the UK myself but have been working late trying to get OSGI to work. I've gone from plain OSGI to DM Server to Virgo, I've not been able to get hardly any of the examples working. Greenpages worked the first time and then started to complain about a missing META-INF file which I could find now way of getting into the jar and no error message to say why it wasn't included.
It would be good to see some really simple web examples that could just be added as a project in eclipse that just worked, I think all the additional technology llike the Maven may be causing issues that are very difficult to overcome when you are trying to learn OSGI only (although I will eventually put Maven & Bundlor in probably). I just don't think it's a good idea to promote the framework by packaging it all together with what appear to be unreliable frameworks (from all the postings I can see and fact I just can't get it to work)
I'm trying to cut back on the technologies and get JSF working in OSGI and I have another question and would be really grateful if people could help me just to get a simple JSF application working, have started another post for it though so not to confuse this posting.
|
|
|
Powered by
FUDForum. Page generated in 0.05810 seconds