解决ant编译Tomcat7出错 javax.net.ssl.SSLHandshakeException

xiaoxiao2021-02-28  103

想研究一下Tomcat源码,按照网上搜索的一般方法安装Ant,在cmd中使用【ant ide-eclipse】编译tomcat源码

关于版本问题:jdk1.6 tomcat,7.0 Ant 1.9.8 【ant ide-eclipse】开始下载相关的包,但是进行到这一步时开始报错: [get] Error getting http://downloads.sourceforge.net/easymock/easymock-3.2.zip to D:\XXX\apache-tomcat-8.5.14-src\tomcatPath\download-1169236070.zip报错: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative DNS name matching jaist.dl.sourceforge.net found.具体报错: BUILD FAILED apache-tomcat-7.0.77-src\build.xml:2693: The following error occurred while executing this line: apache-tomcat-7.0.77-src\build.xml:2856: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative DNS name matching jaist.dl.sourceforge.net found. easymock:按照出错中的网址将【easymock-3.2.zip】这个包下载,放在base.path下解压为【easymock-3.2】文件夹即可。 但是按照这个方法,【cglib-nodep.jar】却还是无法通过编译,借鉴 http://www.cnblogs.com/Kidezyq/p/5820184.html 这位的方法也不行。 可以在build.xml中找到cglib对应的name和value: <antcall target="downloadfile"> <param name="sourcefile" value="${cglib.loc}"/> <param name="destfile" value="${cglib.jar}"/> <param name="destdir" value="${cglib.home}"/> </antcall> 将这一段注释掉,在cglib网站上下载 cglib-nodep.jar,并放在base.path下解压为 cglib-nodep文件夹 即可BUILD SUCCESSFUL。 Question: 1.后来发现这应该是天朝防火墙的问题,但是有个疑问既然是防火墙的问题,那么为什么单独将错误中的网址拿出来又能访问呢?=。= 2. 这俩包没有解决掉的时候,有时候【ant】【ant  compile】也是BUILD SUCCESSFUL的=。= 找到原因再更新答案。 t

转载请注明原文地址: https://www.6miu.com/read-35863.html

最新回复(0)