[
https://issues.apache.org/jira/browse/NEETHI-10?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13025707#comment-13025707
]
Guillaume Nodet commented on NEETHI-10:
---------------------------------------
FWIW, you can change the packages exported by the JDK by configuring the OSGi
framework.
Also version="[0,2)" doesn't really make much sense to me. It may be better to
just remove the attribute I think.
Last, in the manifest pasted above, it seems neethi import the packages it
exports which should not be the case for a library such as neethi.
This can be fixed by adding -noimport:=true on the exported packages in the bnd
instructions.
> 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]