Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manifest files in 2.0.0 release are incorrect [SWS-681] #781

Closed
gregturn opened this issue Jan 17, 2011 · 5 comments
Closed

Manifest files in 2.0.0 release are incorrect [SWS-681] #781

gregturn opened this issue Jan 17, 2011 · 5 comments
Assignees
Milestone

Comments

@gregturn
Copy link
Contributor

Casey Hadden opened SWS-681 and commented

The manifest files in the 2.0 release jars appear incorrect.

The spring-ws-core jar does not include OSGi information, while the spring-ws-security jar and others reference the 2.0.0.M4 release.

spring-ws-core-2.0.0.RELEASE.jar/META-INF/MANIFEST.MF :
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: arjen
Build-Jdk: 1.6.0_22

spring-ws-security-2.0.0.RELEASE.jar/META-INF/MANIFEST.MF:
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: arjen
Build-Jdk: 1.6.0_22
Export-Package: org.springframework.ws.soap.security;version="2.0.0.M4"
[snip]
Bundle-Vendor: SpringSource
Bundle-Version: 2.0.0.M4
Tool: Bundlor 1.0.0.RELEASE
Bundle-Name: Spring Web Services SOAP Security


Affects: 2.0 GA

Referenced from: commits 38ecdd2

5 votes, 3 watchers

@gregturn
Copy link
Contributor Author

Richard Kettelerij commented

This turns out to be an issue for Apache Camel, see https://issues.apache.org/jira/browse/CAMEL-3659.

@gregturn
Copy link
Contributor Author

David Geary commented

Also ensure that javax package imports do not include version numbers (or are verison "0") where possible (ie for packages now part of java se)

eg in spring ws 1.5.9 the imports are (extract from manifest)

javax.activation;version="1.1",
javax.servlet,javax.servlet.http,javax.wsdl;resolution:=optional,
javax.wsdl.extensions;resolution:=optional,
javax.wsdl.extensions.schema;resolution:=optional,
javax.wsdl.extensions.soap;resolution:=optional,
javax.wsdl.extensions.soap12;resolution:=optional,
javax.wsdl.factory;resolution:=optional,
javax.wsdl.xml;resolution:=optional,
javax.xml.namespace,
javax.xml.parsers,
javax.xml.soap;resolution:=optional,
javax.xml.stream;version="1.0",
javax.xml.stream.events;version="1.0",
javax.xml.stream.util;version="1.0",
javax.xml.transform,
javax.xml.transform.dom,
javax.xml.transform.sax,
javax.xml.transform.stream

whereas in spring ws 2.0.0.M1 more versions are referenced ie

javax.activation;version="[1.1.0, 2.0.0)",
javax.servlet;version="[2.4.0, 3.0.0)",
javax.servlet.http;version="[2.4.0, 3.0.0)",
javax.wsdl;version="[1.6.1, 2.0.0)";resolution:="optional",
javax.wsdl.extensions;version="[1.6.1, 2.0.0)";resolution:="optional",
javax.wsdl.extensions.schema;version="[1.6.1, 2.0.0)";resolution:="optional",
javax.wsdl.extensions.soap;version="[1.6.1, 2.0.0)";resolution:="optional",
javax.wsdl.extensions.soap12;version="[1.6.1, 2.0.0)";resolution:="optional",
javax.wsdl.factory;version="[1.6.1, 2.0.0)";resolution:="optional",
javax.wsdl.xml;version="[1.6.1, 2.0.0)";resolution:="optional",
javax.xml.namespace;version="0",
javax.xml.parsers;version="0",
javax.xml.soap;version="[1.1.0, 2.0.0)";resolution:="optional",
javax.xml.stream;version="[1.0.1, 2.0.0)";resolution:="optional",
javax.xml.stream.events;version="[1.0.1, 2.0.0)";resolution:="optional",
javax.xml.stream.util;version="[1.0.1, 2.0.0)";resolution:="optional",
javax.xml.transform;version="0",
javax.xml.transform.dom;version="0",
javax.xml.transform.sax;version="0",
javax.xml.transform.stream;version="0",
javax.xml.xpath;version="0",

compared to core spring (3.0.5) where the imports are just

javax.xml.namespace;version="0";resolution:="optional",
javax.xml.stream;version="0";resolution:="optional",
javax.xml.stream.events;version="0";resolution:="optional",
javax.xml.stream.util;version="0";resolution:="optional",
javax.xml.transform;version="0";resolution:="optional",
javax.xml.transform.sax;version="0";resolution:="optional",
javax.xml.transform.stax;version="0";resolution:="optional"

Since spring ws currently forces the version, to get the spring ws bundles resolved you need to install additional bundles (eg javax.xml.stream) but even then this will cause a conflict with core spring which gets wired to the underlying JRE javax classes.

Not having the version number allows the everything to pick up the underlying JRE javax classes.

@gregturn
Copy link
Contributor Author

Arjen Poutsma commented

This should be fixed now.

I've uploaded a new snapshot for you to verify. Could you please download this snapshot and see if the manifests are correct now?

@gregturn
Copy link
Contributor Author

David Geary commented

Seems to be fixed, tested on Karaf - the snapshot bundles install and resolve now.

@gregturn
Copy link
Contributor Author

gregturn commented May 4, 2012

Arjen Poutsma commented

Closing old issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants