Hmmmm, a fresh, unmodified checkout of Solr will fail on my Windows7 box if I run "ant -Dtestcase=VelocityResponseWriterTest test". It succeeds on my Mac. Anyone got a clue? Or should I look into it? Of course it succeeds in IntelliJ. Siiiigggghhhh
The error reported is: junit-sequential: [junit] Testsuite: org.apache.solr.velocity.VelocityResponseWriterTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 3.242 sec [junit] ------------- Standard Error ----------------- [junit] NOTE: reproduce with: ant test -Dtestcase=VelocityResponseWriterTest -Dtestmethod=testTemplateName -Dtests.s eed=7323578340428606364:2660469109353774457 [junit] NOTE: test params are: codec=RandomCodecProvider: {}, locale=ar_MA, timezone=America/Indiana/Vevay [junit] NOTE: all tests run in this JVM: [junit] [VelocityResponseWriterTest] [junit] NOTE: Windows 7 6.1 x86/Sun Microsystems Inc. 1.6.0_21 (32-bit)/cpus=4,threads=1,free=13281704,total=1625292 8 [junit] ------------- ---------------- --------------- [junit] [junit] Testcase: testTemplateName took 3.126 sec [junit] Caused an ERROR [junit] org.apache.log4j.Logger.setAdditivity(Z)V [junit] java.lang.NoSuchMethodError: org.apache.log4j.Logger.setAdditivity(Z)V [junit] at org.apache.velocity.runtime.log.Log4JLogChute.initAppender(Log4JLogChute.java:126) [junit] at org.apache.velocity.runtime.log.Log4JLogChute.init(Log4JLogChute.java:85) [junit] at org.apache.velocity.runtime.log.LogManager.createLogChute(LogManager.java:157) [junit] at org.apache.velocity.runtime.log.LogManager.updateLog(LogManager.java:255) [junit] at org.apache.velocity.runtime.RuntimeInstance.initializeLog(RuntimeInstance.java:795) [junit] at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:250) [junit] at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:107) [junit] at org.apache.solr.response.VelocityResponseWriter.getEngine(VelocityResponseWriter.java:131) [junit] at org.apache.solr.response.VelocityResponseWriter.write(VelocityResponseWriter.java:39) [junit] at org.apache.solr.velocity.VelocityResponseWriterTest.testTemplateName(VelocityResponseWriterTest.java: 22) [junit] at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1127) [junit] at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1059) [junit] [junit] Test org.apache.solr.velocity.VelocityResponseWriterTest FAILED BUILD FAILED C:\apache-trunk-unmodified\solr\build.xml:383: The following error occurred while executing this line: C:\apache-trunk-unmodified\solr\build.xml:487: Tests failed! Erick