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