Hi Rupert,

thanks for the response to my last email and for the suggestion about the
chain configuration. I installed as you wrote the following bundles:

com.sun.jersey.contribs.jersey-multipart  (version 1.18)
com.sun.jersey.core (version 1.18)
com.sun.jersey.jersey-server (version 1.18)

but my bundle (datalifecycle) is not still activated because of the
following conflicts

 Cannot start (org.osgi.framework.BundleException: Uses constraint
violation. Unable to resolve bundle revision eu.fusepool.datalifecycle
[182.1] because it is exposed to package 'javax.ws.rs' from bundle
revisions com.sun.jersey.core [274.0] and javax.ws.rs-api [267.0] via two
dependency chains.

Chain 1:
  eu.fusepool.datalifecycle [182.1]
    import: (&(osgi.wiring.package=javax.ws.rs
)(version>=1.0.0)(!(version>=3.0.0)))
     |
    export: osgi.wiring.package=javax.ws.rs
  com.sun.jersey.core [274.0]

Chain 2:
  eu.fusepool.datalifecycle [182.1]
    import: (osgi.wiring.package=org.apache.clerezza.jaxrs.utils)
     |
    export: osgi.wiring.package=org.apache.clerezza.jaxrs.utils; uses:=
javax.ws.rs
  org.apache.clerezza.jaxrs.utils [147.0]
    import: (&(osgi.wiring.package=javax.ws.rs
)(version>=1.0.0)(!(version>=3.0.0)))
     |
    export: osgi.wiring.package=javax.ws.rs
  javax.ws.rs-api [267.0]) org.osgi.framework.BundleException: Uses
constraint violation. Unable to resolve bundle revision
eu.fusepool.datalifecycle [182.1] because it is exposed to package '
javax.ws.rs' from bundle revisions com.sun.jersey.core [274.0] and
javax.ws.rs-api [267.0] via two dependency chains.

It seems that the conflict is related to Clerezza that imports javax.ws.rs.
I saw there are some utilities in Clerezza API for multipart messages. I
will see in that mailing list if they had the same problem.


Regards

Luigi


On 4 February 2014 12:44, Rupert Westenthaler <rupert.westentha...@gmail.com
> wrote:

> Hi Luigi,
>
> You need to install dependent bundle to the OSGI environment running
> Stanbol.
>
> There are a lot of different options how to do this. Your can:
>
> * use the Bundles tab of the Felix Webconsole.
> * copy the bundle to the 'stanbol/fileinstall' folder. [3]
> * use the RESTful service [2] of the Felix Webconsole to install bundles.
>
> For deployment you might want to create your own bundlelist and a
> Stanbol launcher configuration. See the production mode [1] section on
> the stanbol webpage for more information on how to do that.
>
> In the case of things related to JAX-RS please note that stanbol 0.12
> requires a JAX-RS 1.0 implementation (the version you are using ATM).
> Stanbol 1.0 (trunk version) uses JAX-RS 2.0. For this you will need to
> use Jersey 2.0+ version.
>
> If your bundle can work with both you can specify the according
> version range in the "Import-Package" directive of your bundle (e.g.
> com.sun.jersey;version="[1.17,3)")
>
> best
> Rupert
>
> [1] http://stanbol.apache.org/docs/trunk/production-mode/
> [2]
> http://felix.apache.org/documentation/subprojects/apache-felix-web-console/web-console-restful-api.html
> [3]
> http://stanbol.apache.org/docs/trunk/production-mode/partial-updates.html
>
> On Tue, Feb 4, 2014 at 12:10 PM, Luigi Selmi <luigise...@gmail.com> wrote:
> > Hi all,
> >
> > I need to use jersey-multipart package to handle multipart messages in a
> > osgi service. I added the following dependency (and some others) to the
> > project's pom file
> >
> > <dependency>
> >         <groupId>com.sun.jersey.contribs</groupId>
> >         <artifactId>jersey-multipart</artifactId>
> >         <version>1.17</version>
> > </dependency>
> >
> > I can compile my bundle but when I install it in Stanbol it doesn't
> > activate and in the Felix console there is this message
> >
> > Imported Packages com.sun.jersey.multipart,version=[1.17,2) -- Cannot be
> > resolved
> >
> > That is because maven downloads the needed packages in my local .m2
> > repository but those packages are not included in the bundle and as
> Stanbol
> > didn't come with them it cannot activate my it. Now the question is: how
> > can I add the required packages to Stanbol so that my bundle can be
> > activated ? Thanks in advance.
> >
> > Luigi
>
>
>
> --
> | Rupert Westenthaler             rupert.westentha...@gmail.com
> | Bodenlehenstraße 11                             ++43-699-11108907
> | A-5500 Bischofshofen
>

Reply via email to