2014-11-20 6:09 GMT+03:00 Bill Barker <billbar...@apache.org>: > To whom it may engage... > > This is an automated request, but not an unsolicited one. For > more information please visit http://gump.apache.org/nagged.html, > and/or contact the folk at gene...@gump.apache.org. > > Project tomcat-tc7.0.x-test-bio has an issue affecting its community > integration. > This issue affects 1 projects. > The current state of this project is 'Failed', with reason 'Build Failed'. > For reference only, the following projects are affected by this: > - tomcat-tc7.0.x-test-bio : Tomcat 7.x, a web server implementing Java > Servlet 3.0, > ... > > > Full details are available at: > > http://vmgump.apache.org/gump/public/tomcat-7.0.x/tomcat-tc7.0.x-test-bio/index.html
The tests fail with java/lang/UnsupportedClassVersionError: java/lang/Object : Unsupported major.minor version 52.0 In Tomcat 7 we have <target name="test-init1" if="java.7.home"> <property name="java.bin.path" value="${java.7.home}/bin/"/> </target> <target name="test-init2" unless="java.7.home"> <property name="java.bin.path" value=""/> </target> <junit ... jvm="${java.bin.path}java" > Gump explicitly launches Ant with Java 8 as /usr/lib/jvm/java-8-oracle/bin/java -Djava.awt.headless=true -Dbuild.sysclasspath=only org.apache.tools.ant.Main ... but apparently JUnit here is picking a different Java. I thought that using <junit jvm="java"> will pick Java that was used to launch Ant in accordance with default setting for that attribute [1]. Apparently this is not true and some older java is actually picked. Is it from PATH? I think that when I am testing Tomcat 7 on Windows with Ant 1.9.3 the java from JAVA_HOME was used. I do not have java in my PATH. Now I wonder why it worked before. I guess we can try to default java.bin.path to use java.home instead of "". <target name="test-init2" unless="java.7.home"> <property name="java.bin.path" value="${java.home}/bin"/> </target> [1] http://ant.apache.org/manual/Tasks/junit.html Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org