• Post Reply Bookmark Topic Watch Topic
  • New Topic

[SOLVED] java.xml in multiple jars  RSS feed

 
Chris Zaremba
Ranch Hand
Posts: 54
Eclipse IDE Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on an application using/ running on Java 7 (compiling to Java 6)/ Tomcat 6/ Spring 3.1. I have a couple of places in the source where I create a javax.xml.validation.SchemaFactory and javax.xml.transform.TransformerFactory. One of my dependencies is stax-api and its jar contains an old versions of some javax.xml classes that incompatible with my code where I am creating the factories as I use new methods and constants. Spring also had a dependency on another jar that contained another version of javax.xml (although I couldn't find the source code to verify this). I excluded the spring dependency from Ivy and that seems ok at the moment. What can be done about stax?

EDIT:

Isn't it always the way. You spend ages searching for an answer and then as soon as you post a forum question you find the answer. Stax was incorporated into Java 6 (or a previous version) and the separate stax-api jar is no longer required.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!