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

Maven POM uses incorrect stax-api dependency [SWS-492] #625

Closed
gregturn opened this issue Mar 9, 2009 · 1 comment
Closed

Maven POM uses incorrect stax-api dependency [SWS-492] #625

gregturn opened this issue Mar 9, 2009 · 1 comment
Assignees
Milestone

Comments

@gregturn
Copy link
Member

@gregturn gregturn commented Mar 9, 2009

Patrick Crocker opened SWS-492 and commented

These POMs all reference the stax:stax-api:1.0.1 (groupId:artifactId:version) dependency for the 'jdk14-jdk15' profile.

http://repo2.maven.org/maven2/org/springframework/ws/spring-ws-parent/1.5.6/spring-ws-parent-1.5.6.pom
http://repo2.maven.org/maven2/org/springframework/ws/spring-oxm/1.5.6/spring-oxm-1.5.6.pom
http://repo2.maven.org/maven2/org/springframework/ws/spring-xml/1.5.6/spring-xml-1.5.6.pom

This stax jar file incorrectly includes the following classes:

javax.xml.namespace.NamespaceContext
javax.xml.namespace.QName

When deploying on Oracle Application Server 10g, this will cause the following exception:

Caused by: java.lang.LinkageError: loader constraints violated when linking javax/xml/namespace/QName class
        at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl.<clinit>(RuntimeBuiltinLeafInfoImpl.java:224)
        ...

The work-around is to exclude the stax:stax-api:1.0.1 dependency and include the javax.xml.stream:stax-api:1.0-2 dependency. This jar file only includes classes in the javax.xml.stream package and does not include any extraneous packages or classes.


Referenced from: commits 8899569, 3117dfc

1 votes, 2 watchers

@gregturn
Copy link
Member Author

@gregturn 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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.