Rainer, On Sat, Feb 16, 2019 at 2:42 PM Rainer Jung <rainer.j...@kippdata.de> wrote:
> Hi Igal, > > Am 16.02.2019 um 22:10 schrieb Igal Sapir: > > Violeta, > > > > On Sat, Feb 16, 2019 at 9:41 AM Violeta Georgieva <violet...@apache.org> > > wrote: > > > >> The proposed Apache Tomcat 7.0.93 release is now available for voting. > >> > >> > > I know that this is an issue with my environment, and not with Tomcat, > but > > I wonder how you get it to download the dependencies with Java 6 since > the > > ciphers in Java 6 are outdated (log excerpt below [1]). > > > > For the record, I downloaded JDK6, JDK7, and ANT1.8.4, set the path to > JDK7 > > in build.properties, and JAVA_HOME and ANT_HOME to JDK6 and ANT1.8.4 > > respectively. > > My workaround is currently somethin like: > > export JAVA_HOME=/usr/local/jdk1.7.0 > > export ANT_OPTS="-Djavax.net.ssl.trustStore=/path/to/cacerts > -Djavax.net.ssl.trustStorePassword=changeit > -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2" > > ant download-dist > ant download-validate > ant download-compile > ant download-test-compile > ant download-cobertura > ant extras-commons-logging-prepare > ant extras-webservices-prepare > > export JAVA_HOME=/usr/local/jdk1.6.0 > > export ANT_OPTS="-Djavax.net.ssl.trustStore=/path/to/cacerts > -Djavax.net.ssl.trustStorePassword=changeit" > > ant release > ant test > I updated the build.xml file [1] to make this a bit simpler. The "download-compile" target was both downloading (requiring Java 8) and building (requiring Java 6), so I separated the two actions. To use the new update, you can now download all of the dependencies using the new "download-deps" target using Java 8+: $ export JAVA_HOME=/path-to-jdk8 $ ant download-deps Then you can set JAVA_HOME to a Java 6 version, ANT_HOME to a ant 1.8.x version (because newer ant will not run with Java 8), and run `ant deploy` or `ant test`. The way I do it is along the lines of: $ export JAVA_HOME=/path-to-jdk6 $ export ANT_HOME=/path-to-ant1.8.x $ export ANT_OPTS="-Djava.7.home=/path-toj-jdk7" $ ant test HTH someone, though I'm pretty sure that it will help my future self with testing the next update of Tomcat 7. Best, Igal [1] https://github.com/apache/tomcat/commit/6e69455ab09b > Regards, > > Rainer > > > > [1] > > [get] Error getting > > https://repo.maven.apache.org/maven2/junit/junit/4.11/junit-4.11.jar to > > /home/ux/tomcat-build-libs/download-2104110046.tmp > > > > BUILD FAILED > > /home/ux/Downloads/apache-tomcat-7.0.93-src/build.xml:2702: The following > > error occurred while executing this line: > > /home/ux/Downloads/apache-tomcat-7.0.93-src/build.xml:3066: > > javax.net.ssl.SSLException: Received fatal alert: protocol_version > > at > com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:190) > > at > com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:136) > > at > > > com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1822) > > at > > > com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1004) > > at > > > com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1188) > > at > > > com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1215) > > at > > > com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1199) > > at > > sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:434) > > at > > > sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:166) > > at > > > sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:133) > > at > > org.apache.tools.ant.taskdefs.Get$GetThread.openConnection(Get.java:660) > > at org.apache.tools.ant.taskdefs.Get$GetThread.get(Get.java:579) > > at org.apache.tools.ant.taskdefs.Get$GetThread.run(Get.java:569) > > > > > > > > > > > >> It can be obtained from: > >> https://dist.apache.org/repos/dist/dev/tomcat/tomcat-7/v7.0.93/ > >> The Maven staging repo is: > >> > https://repository.apache.org/content/repositories/orgapachetomcat-1204/ > >> The svn tag is: > >> http://svn.apache.org/repos/asf/tomcat/tc7.0.x/tags/TOMCAT_7_0_93/ > >> > >> The proposed 7.0.93 release is: > >> [ ] Broken - do not release > >> [ ] Stable - go ahead and release as 7.0.93 Stable > >> > >> Regards, > >> Violeta >