Trying to build this breaks with
buildjar:
[junit] WARNING: multiple versions of ant detected in path for junit
[junit]
jar:file:/opt/local/share/java/apache-ant/lib/ant.jar!/org/apache/tools/ant/Project.class
[junit] and
jar:file:/Users/jalkanen/Eclipse/JSPWiki-svn/tests/lib/selenium-server-1.0-beta1.jar!/org/apache/tools/ant/Project.class
[junit] Running org.apache.wiki.FileUtilTest
[junit] Exception in thread "main" java.lang.NoSuchFieldError: fFeatures
[junit] at org.apache.xerces.parsers.XML11Configuration.<init>(Unknown
Source)
[junit] at org.apache.xerces.parsers.XML11Configuration.<init>(Unknown
Source)
[junit] at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[junit] at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[junit] at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[junit] at
java.lang.reflect.Constructor.newInstance(Constructor.java:513)
[junit] at java.lang.Class.newInstance0(Class.java:355)
[junit] at java.lang.Class.newInstance(Class.java:308)
[junit] at org.apache.xerces.parsers.ObjectFactory.newInstance(Unknown
Source)
[junit] at
org.apache.xerces.parsers.ObjectFactory.findJarServiceProvider(Unknown Source)
[junit] at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown
Source)
[junit] at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown
Source)
[junit] at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
[junit] at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
[junit] at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown
Source)
[junit] at
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
Source)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.getDocumentBuilder(XMLJUnitResultFormatter.java:60)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.startTestSuite(XMLJUnitResultFormatter.java:115)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.fireStartTestSuite(JUnitTestRunner.java:623)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:410)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:931)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:785)
Quick googling suggests that this has something to do with either Ant or Xerces
versions, but I'm a bit stymied here. Switching Xerces to 2.7.1 has no effect,
so this is probably again an environment issue, but just to check: can others
run ant tests ok?
/Janne
On Aug 21, 2012, at 23:12 , Juan Pablo Santos Rodríguez wrote:
> http://svn.apache.org/repos/asf/incubator/jspwiki/tags/jspwiki_2_9_0_incubating_rc3