users@jersey.java.net

[Jersey] Re: Missing dependency in 2.0 release?

From: Romain Gilles <romain.gilles_at_gmail.com>
Date: Tue, 4 Jun 2013 13:55:49 +0200

Ok... thank you guys, it will help me for sure.

Regards,

Romain


2013/6/4 Pavel Bucek <pavel.bucek_at_oracle.com>

> Hi Romain,
>
> this one (and possibly some other final APIs which are part of Java EE 7)
> are currently available on https://maven.java.net/content/groups/promoted/; all artifacts will be pushed to maven central once Java EE 7 is
> officially released.
>
> if you are building Jersey, you can use profile "promoted" to include this
> repository:
>
> mvn clean install -Ppromoted
>
> Pavel
>
>
> On 6/4/13 1:44 PM, Romain Gilles wrote:
>
> Thanks for the very quick answer :)
> I have an issue with the jersey-common-2.0: it depends on:
> <groupId>javax.annotation</groupId>
> <artifactId>javax.annotation-api</artifactId>
> <version>1.2</version>
>
> But I can't find it in maven central repo?
>
> Romain
>
>
>
> 2013/6/4 Tang Yong <tangyong_at_cn.fujitsu.com>
>
>> 1. jersey-container-servlet-core_2.0.0 has a dependency on
>> jersey-common-2.0 which exports org.glassfish.jersey.internal package
>>
>> 2. So, I guess that your karaf feature file should be updated to include
>> the common 2.0 bundle.
>>
>> Pl. sending your karaf feature file.
>>
>> Thanks
>> Tang Yong
>>
>>
>> Romain Gilles wrote:
>>
>>> Hi all,
>>> Maybe I did not configure my dependencies properly but my configuration
>>> was working with jersey 2.0-rc1 but if I move to 2.0 it fail with the
>>> following error message:
>>>
>>> java.lang.Exception: Could not start bundle
>>> mvn:org.glassfish.jersey.containers/jersey-container-servlet-core/2.0 in
>>> feature(s) cargo-rs-1.0.0-SNAPSHOT: The bundle
>>> "org.glassfish.jersey.containers.jersey-container-servlet-core_2.0.0 [109]"
>>> could not be resolved. Reason: Missing Constraint: Import-Package:
>>> org.glassfish.jersey.internal; version="[2.0.0,3.0.0)"
>>> at
>>> org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:482)[40:org.apache.karaf.features.core:2.3.1]
>>> at
>>> org.apache.karaf.features.internal.FeaturesServiceImpl$2.run(FeaturesServiceImpl.java:1150)[40:org.apache.karaf.features.core:2.3.1]
>>> Caused by: org.osgi.framework.BundleException: The bundle
>>> "org.glassfish.jersey.containers.jersey-container-servlet-core_2.0.0 [109]"
>>> could not be resolved. Reason: Missing Constraint: Import-Package:
>>> org.glassfish.jersey.internal; version="[2.0.0,3.0.0)"
>>> at
>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1332)[osgi-3.8.0.v20120529-1548.jar:]
>>> at
>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1316)[osgi-3.8.0.v20120529-1548.jar:]
>>> at
>>> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:323)[osgi-3.8.0.v20120529-1548.jar:]
>>> at
>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:300)[osgi-3.8.0.v20120529-1548.jar:]
>>> at
>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:292)[osgi-3.8.0.v20120529-1548.jar:]
>>> at
>>> org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:479)[40:org.apache.karaf.features.core:2.3.1]
>>> ... 1 more
>>>
>>> What is strange, it is the dependency import on a package named
>>> internal...
>>>
>>> Could you help me?
>>>
>>> Thanks,
>>>
>>> Romain.
>>>
>>
>> --
>> ----------------------
>> Tang Yong
>> Senior Engineer
>> GlassFish Committer (OSGi & OSGi-JavaEE)
>> OSGi Alliance Supporter
>> Blog: http://osgizone.typepad.com/tangyong/
>>
>> Nanjing Fujitsu NanDa Software Tec CO.,LTD
>> http://www.fujitsu.com/cn/fnst
>> Tel: +86-25-86630566-8310
>> Fax: +86-25-83317685
>> ----------------------
>>
>>
>>
>
>