Oh yes Guillaume, you're right.

I was thinking about two jersey-core bundles are deployed but it doesn't seem the case. My apologies.

I'm going to make a try of my side too to see how it's behaving.

Thanks,
Regards
JB

On 08/26/2010 10:27 AM, Guillaume Nodet wrote:
JB, you're right, but it still should not cause a resolution failure,
especially if a single version of this bundle is installed in the
framework.  Jérôme, I would try to switch to equinox (in the
etc/config file) and restart to see what happen.  Also, the Felix
Framework 3.0.2 has been released recently which may fix the problem,
so it's worth a try too.  I'll upgrade to this latest version in trunk
asap anyway.

On Thu, Aug 26, 2010 at 10:20, Jean-Baptiste Onofré<j...@nanthrax.net>  wrote:
Hi Jérôme,

The com.sun.jersey.api package is provided by jersey-core jar.
It's exported by the jersey-core bundle (according to the MANIFEST).

You are right, the package shouldn't be imported and exported.

The bundle package statement should looks like :

<Export-Package>
   com.sun.jersey*...
</Export-Package>
<Import-Package>
   !com.sun.jersey*,
   *
</Import-Package>

Like this, it can support several version of jersey-core bundle in the same
OSGi framework and avoid this kind of issue.

A possible workaround is to create your own jersey-core bundle using
maven-bundle-plugin for example.

Regards
JB

On 08/26/2010 10:10 AM, Jérôme Pochat wrote:

Hi

I tried to install Jersey REST implementation into fresh Karaf 2.0.0
instance without any success. This was working fine in previous version of
Karaf. What is strange is that there is no problem to install it inside
Felix 3.0.*.

install jsr311-api-1.1.1.jar ==>    Success
install jersey-core-1.3.jar ==>    Failed

Error executing command: Unresolved constraint in bundle
com.sun.jersey.jersey-core [34]: Unable to resolve 34.0: missing
requirement
[34.0] package; (package=com.sun.jersey.api.representation) - [34.0]
package; (package=com.sun.jersey.api.representation)

This package is imported and exported by the same bundle. Could it be a
reason of the issue?

Thanks in advance for help.




Reply via email to