HughP / simal

Automatically exported from code.google.com/p/simal
0 stars 0 forks source link

Core unable to compile due to inclusion of old java.xml packages #273

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
stax-api-1.0.1.jar contains an implementation of javax.xml.XMLConstants This 
class does not include the constant NULL_NS_URI

Consequently core is not compiling for me. However, the CI server is not 
reporting an error.

The dependency chain is:

sdb -> arq -> wstx-asl -> stax-api

How can I make Simal compile?

Original issue reported on code.google.com by ross.gardler on 12 Feb 2010 at 3:21

GoogleCodeExporter commented 9 years ago

Original comment by ross.gardler on 12 Feb 2010 at 3:22

GoogleCodeExporter commented 9 years ago
I can't reproduce this error. The java.xml.XLMConstants that is in the JRE is 
used on 
my machine and I can't find a way to not use it. I scaled back to Java 5 but in 
that 
version the NULL_NS_URI is also in the class.

How do you try to compile? Is this a mvn compile from the command-line? Can you 
add 
verbose logging to the issue? 

Original comment by sander.v...@oucs.ox.ac.uk on 12 Feb 2010 at 4:44

GoogleCodeExporter commented 9 years ago
The problem only manifests itself in Eclipse using Q4E i.e. it will compile 
from the 
command line. This would support my suspicion that it is a classpath ordering 
thing.

Eclipse is using the version of javax.xml.XMLConstants from stax-api in 
preference to 
the one bundled with Java.

Original comment by ross.gardler on 15 Feb 2010 at 11:55

GoogleCodeExporter commented 9 years ago
The Maven Eclipse plugin we currently recommend on our DevelopSimal page is 
m2eclipse 
(update site: http://m2eclipse.sonatype.org/update/).
Is it acceptable for you to switch or is this still a critical issue blocking 
the 
release? 

Original comment by sander.v...@oucs.ox.ac.uk on 15 Feb 2010 at 12:13

GoogleCodeExporter commented 9 years ago
Switching to using mweclipse solved the problem. Thanks.

Original comment by ross.gardler on 15 Feb 2010 at 10:21