Hello Brice,

Brice Vandeputte wrote:

> Hi all,
> 
>  I'm trying to use XStream (JSON mode) with the following constraints:
> 
>   - jdk 1.4,
>   - Prosyst OSGi container.
> 
> 
> In the official "news.html" page, I read (nov 2011):
>>  Anyone who needs a version for Java 1.4.2 can build it easily from
> source, this build is still supported and part of CI.
> 
> So I get the xstream source and I compile it using JDK 1.4.2_19 and maven
> 2.0.11 (with success).
> In my target bundle application I just inline the following ressources
> from the distribution :
>  - xstream-1.4.7.jar
>  - jettison-1.0.1.jar
>  - stax-1.2.0.jar
>  - stax-api-1.0.1.jar
> 
> When I start my application, I Got the following result :
>  > org.osgi.framework.BundleException: Can't Resolve poc-bundle :
> com.ibm.xml.xlxp.api.stax
> 
> So my questions are:
> - is xstream always compliant with jdk 1.4 ?

Yes, otherwise you would not have been able to build it. The unit tests are 
quite extensive. OSGi support is a different story though.

> - do you know how to solve this dependency error ?
> - what's wrong in the way I use xstream ?

The reported error message indicates that this is an error reported by OSGi. 
My OSGi knowledge is very limited, therefore I'd check the manifests of the 
jars from above for this bundle requirement. Note, that no OSGi entries are 
added to XStream's manifest if you build with Java 1.4 (mainly because the 
Felix bundle-plugin requires a Java 5 runtime), you will have to handcraft a 
manifest on your own.

Cheers,
Jörg


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to