On Wed, Dec 5, 2018 at 11:03 PM Raymond Auge <raymond.a...@liferay.com>
wrote:

> It looks like you are exporting the package `javax.annotation` from the
> system bundle (say via `org.osgi.framework.system.packages.extra`, i.e.
> `-runsystempackages`), while you also have the bundle
> org.apache.servicemix.specs.annotation-api-1.3 deployed.
>

It look like org.eclipse.osgi is a uber that provide all the osgi specs
>> used by equinox and org.apache.servicemix.specs.annotation-api-1.3 is the
>> partial spec that come with the aries.jax.rs.whiteboard implementation and
>> finally the javax.annotation-api is the generic api. Should I only use the
>> API that come with the impl in my launch to avoid this kind of dependency
>> mix up?
>>
>
`org.eclipse.osgi` is the equinox framework. I'm not aware that it exports
javax.annotation on it's own. I suspect you're exporting the packages of
javax.annotation-api from the framework class path.

Choose _only one provider_ and make sure it also provides the contract and
the issue should be resolved.

- Ray



> Hope to get some insight on this
>>
>> Thai
>>
>> _______________________________________________
>> OSGi Developer Mail List
>> osgi-dev@mail.osgi.org
>> https://mail.osgi.org/mailman/listinfo/osgi-dev
>
>
>
> --
> *Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
>  (@rotty3000)
> Senior Software Architect *Liferay, Inc.* <http://www.liferay.com>
>  (@Liferay)
> Board Member & EEG Co-Chair, OSGi Alliance <http://osgi.org>
> (@OSGiAlliance)
>


-- 
*Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
 (@rotty3000)
Senior Software Architect *Liferay, Inc.* <http://www.liferay.com>
 (@Liferay)
Board Member & EEG Co-Chair, OSGi Alliance <http://osgi.org> (@OSGiAlliance)
_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to