Re: dependency chain split for org.osgi.service.http.runtime.dto

2018-11-06 Thread 'Achim Nierbeck' via OPS4J
Remove the org.eclipse.osgi.services bundle. As per Spec all compendium
implementing bundles usually also provide the corresponding OSGi spec
Packages.
In this case everything for http etc.

regards, Achim

Am Di., 6. Nov. 2018 um 20:19 Uhr schrieb Nhut Thai Le :

> Hello,
>
> I am using pax-web-extender-whiteboard to host our web application in
> equinox and i see some split dependency chain errors when starting up my
> env:
> This one is caused by org.osgi.service.http.runtime.dto being exported by
> both org.ops4j.pax.web.pax-web-api and org.eclipse.osgi.services
> RESOLVER: Candidate permutation failed due to a conflict between imports;
> will try another if possible. (Uses constraint violation. Unable to resolve
> resource org.ops4j.pax.web.pax-web-extender-whiteboard [osgi.identity;
> osgi.identity="org.ops4j.pax.web.pax-web-extender-whiteboard";
> type="osgi.bundle"; version:Version="7.2.0"] because it is exposed to
> package 'org.osgi.service.http.runtime.dto' from resources
> org.ops4j.pax.web.pax-web-api [osgi.identity;
> osgi.identity="org.ops4j.pax.web.pax-web-api"; type="osgi.bundle";
> version:Version="7.2.0"] and org.eclipse.osgi.services [osgi.identity;
> osgi.identity="org.eclipse.osgi.services"; type="osgi.bundle";
> version:Version="3.6.0.v20170228-1906"] via two dependency chains.
>
> Chain 1:
>   org.ops4j.pax.web.pax-web-extender-whiteboard [osgi.identity;
> osgi.identity="org.ops4j.pax.web.pax-web-extender-whiteboard";
> type="osgi.bundle"; version:Version="7.2.0"]
> import:
> (&(osgi.wiring.package=org.osgi.service.http.runtime.dto)(&(version>=1.0.0)(!(version>=2.0.0
>  |
> export: osgi.wiring.package: org.osgi.service.http.runtime.dto
>   org.ops4j.pax.web.pax-web-api [osgi.identity;
> osgi.identity="org.ops4j.pax.web.pax-web-api"; type="osgi.bundle";
> version:Version="7.2.0"]
>
> Chain 2:
>   org.ops4j.pax.web.pax-web-extender-whiteboard [osgi.identity;
> osgi.identity="org.ops4j.pax.web.pax-web-extender-whiteboard";
> type="osgi.bundle"; version:Version="7.2.0"]
> import:
> (&(osgi.wiring.package=org.osgi.service.http.runtime)(&(version>=1.0.0)(!(version>=2.0.0
>  |
> export: osgi.wiring.package: org.osgi.service.http.runtime;
> uses:=org.osgi.service.http.runtime.dto
> export: osgi.wiring.package=org.osgi.service.http.runtime.dto
>   org.eclipse.osgi.services [osgi.identity;
> osgi.identity="org.eclipse.osgi.services"; type="osgi.bundle";
> version:Version="3.6.0.v20170228-1906"])
>
> Not sure what i should do about this since pax-web-api is used heavily by
> other pax-web bundles and org.eclipse.osgi.services is the super bundle
> that provides many packages from osgi specs (cm, http, component,...)
>
> Does anyone has a suggestion ?
>
> --
> --
> --
> OPS4J - http://www.ops4j.org - ops4j@googlegroups.com
>
> ---
> You received this message because you are subscribed to the Google Groups
> "OPS4J" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ops4j+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>


-- 

Apache Member
Apache Karaf  Committer & PMC
OPS4J Pax Web  Committer &
Project Lead
blog 
Co-Author of Apache Karaf Cookbook 

Software Architect / Project Manager / Scrum Master

-- 
-- 
--
OPS4J - http://www.ops4j.org - ops4j@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ops4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


dependency chain split for org.osgi.service.http.runtime.dto

2018-11-06 Thread Nhut Thai Le
Hello,

I am using pax-web-extender-whiteboard to host our web application in 
equinox and i see some split dependency chain errors when starting up my 
env:
This one is caused by org.osgi.service.http.runtime.dto being exported by 
both org.ops4j.pax.web.pax-web-api and org.eclipse.osgi.services
RESOLVER: Candidate permutation failed due to a conflict between imports; 
will try another if possible. (Uses constraint violation. Unable to resolve 
resource org.ops4j.pax.web.pax-web-extender-whiteboard [osgi.identity; 
osgi.identity="org.ops4j.pax.web.pax-web-extender-whiteboard"; 
type="osgi.bundle"; version:Version="7.2.0"] because it is exposed to 
package 'org.osgi.service.http.runtime.dto' from resources 
org.ops4j.pax.web.pax-web-api [osgi.identity; 
osgi.identity="org.ops4j.pax.web.pax-web-api"; type="osgi.bundle"; 
version:Version="7.2.0"] and org.eclipse.osgi.services [osgi.identity; 
osgi.identity="org.eclipse.osgi.services"; type="osgi.bundle"; 
version:Version="3.6.0.v20170228-1906"] via two dependency chains.

Chain 1:
  org.ops4j.pax.web.pax-web-extender-whiteboard [osgi.identity; 
osgi.identity="org.ops4j.pax.web.pax-web-extender-whiteboard"; 
type="osgi.bundle"; version:Version="7.2.0"]
import: 
(&(osgi.wiring.package=org.osgi.service.http.runtime.dto)(&(version>=1.0.0)(!(version>=2.0.0
 |
export: osgi.wiring.package: org.osgi.service.http.runtime.dto
  org.ops4j.pax.web.pax-web-api [osgi.identity; 
osgi.identity="org.ops4j.pax.web.pax-web-api"; type="osgi.bundle"; 
version:Version="7.2.0"]

Chain 2:
  org.ops4j.pax.web.pax-web-extender-whiteboard [osgi.identity; 
osgi.identity="org.ops4j.pax.web.pax-web-extender-whiteboard"; 
type="osgi.bundle"; version:Version="7.2.0"]
import: 
(&(osgi.wiring.package=org.osgi.service.http.runtime)(&(version>=1.0.0)(!(version>=2.0.0
 |
export: osgi.wiring.package: org.osgi.service.http.runtime; 
uses:=org.osgi.service.http.runtime.dto
export: osgi.wiring.package=org.osgi.service.http.runtime.dto
  org.eclipse.osgi.services [osgi.identity; 
osgi.identity="org.eclipse.osgi.services"; type="osgi.bundle"; 
version:Version="3.6.0.v20170228-1906"])

Not sure what i should do about this since pax-web-api is used heavily by 
other pax-web bundles and org.eclipse.osgi.services is the super bundle 
that provides many packages from osgi specs (cm, http, component,...)

Does anyone has a suggestion ?

-- 
-- 
--
OPS4J - http://www.ops4j.org - ops4j@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ops4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.