You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by "Martin Weindel (JIRA)" <ji...@apache.org> on 2011/04/27 12:03:03 UTC
[jira] [Created] (NEETHI-10) Packages javax.xml.stream and
javax.xml.stream.events cannot be resolved
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
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: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org
[jira] [Resolved] (NEETHI-10) Packages javax.xml.stream and
javax.xml.stream.events cannot be resolved
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NEETHI-10?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved NEETHI-10.
-------------------------------
Resolution: Fixed
Fix Version/s: 3.0.1
Assignee: Daniel Kulp
> 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
> Assignee: Daniel Kulp
> Labels: osgi
> Fix For: 3.0.1
>
>
> 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: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org
[jira] [Commented] (NEETHI-10) Packages javax.xml.stream and
javax.xml.stream.events cannot be resolved
Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
[ 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: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org
[jira] [Commented] (NEETHI-10) Packages javax.xml.stream and
javax.xml.stream.events cannot be resolved
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ 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: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org