[ 
https://issues.apache.org/jira/browse/NEETHI-10?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13025922#comment-13025922
 ] 

Daniel Kulp commented on NEETHI-10:
-----------------------------------


Guillaume,

When using the maven-bundle-plugin, if the dependent JAR has an OSGi manifest, 
I couldn't get it to NOT stick a version on the import.    Do you know if there 
is a way to make it do so?    The best I could figure out was a fairly wide 
range (like the "[0.0,2)" range).   In this case, the javax.xml.stream.events 
should have the same range defined as javax.xml.stream.  


Martin: the version of those API's that are included in the JDK are not really 
"OSGi aware" and thus would not likely pick up an other Stax implementation 
other than the version in the JDK.   In general, you don't want to use that 
version as it's much slower than Woodstox and also significantly more buggy.   
My suggestion is to change to using:

org.apache.servicemix.specs/org.apache.servicemix.specs.stax-api-1.0
for the API jar and use the latest woodstox 4.x bundles.






> Packages javax.xml.stream and javax.xml.stream.events cannot be resolved
> ------------------------------------------------------------------------
>
>                 Key: NEETHI-10
>                 URL: https://issues.apache.org/jira/browse/NEETHI-10
>             Project: Neethi
>          Issue Type: Bug
>    Affects Versions: 3.0
>         Environment: OSGi (Equinox 3.6 with JDK 1.6)
>            Reporter: Martin Weindel
>              Labels: osgi
>
> When using neethi-3.0.0.jar in an OSGi environment, the packages 
> javax.xml.stream and javax.xml.stream.events cannot be resolved.
> As a consequence the neethi bundle itself is not resolved.
> This is caused by the following lines in the MANIFEST.MF, as these packages 
> are provided by the JDK without version information.
> Import-Package: javax.xml.namespace,javax.xml.parsers,javax.xml.stream
>  ;version="[0.0,2)",javax.xml.stream.events;version="[1.0,2)",javax.xm
> Proposed fix: Remove the version specification (i.e. ;version="[0.0,2)") in 
> the MANIFEST.MF for the packages javax.xml.stream and javax.xml.stream.events 
> as shown below
> Import-Package: javax.xml.namespace,javax.xml.parsers,javax.xml.stream
>  ,javax.xml.stream.events,javax.xml.transform,javax.xml.transform.dom,
>  org.apache.axiom.om;resolution:=optional,org.apache.axiom.om.impl.bui
>  lder;resolution:=optional,org.apache.axiom.om.impl.dom;resolution:=op
>  tional,org.apache.neethi;version="[3.0,4)",org.apache.neethi.builders
>  ;version="[3.0,4)",org.apache.neethi.builders.converters;version="[3.
>  0,4)",org.apache.neethi.builders.xml;version="[3.0,4)",org.apache.nee
>  thi.util;version="[3.0,4)",org.w3c.dom

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to