在Glassfish上使用Jenkins部署EAR

时间:2015-10-14 11:51:57

标签: java java-ee jenkins

我正在使用Jenkins构建和部署我的应用程序。

构建步骤已成功完成。但部署步骤尚未完成。我尝试了两件事。

  • 第一次尝试:

我将ant目标值设置为 run-deploy ,我得到了此异常

    /var/lib/jenkins/workspace/VecturaTest/nbproject/ant-deploy.xml:89: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names present
    at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
    at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1884)
    at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:276)
    at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:270)
    at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1341)
    at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:153)
    at sun.security.ssl.Handshaker.processLoop(Handshaker.java:868)
    at sun.security.ssl.Handshaker.process_record(Handshaker.java:804)
    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1016)
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1312)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1339)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1323)
    at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:563)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153)
    at org.apache.tools.ant.taskdefs.Get$GetThread.openConnection(Get.java:728)
    at org.apache.tools.ant.taskdefs.Get$GetThread.get(Get.java:641)
    at org.apache.tools.ant.taskdefs.Get$GetThread.run(Get.java:631)
Caused by: java.security.cert.CertificateException: No subject alternative names present
    at sun.security.util.HostnameChecker.matchIP(HostnameChecker.java:142)
    at sun.security.util.HostnameChecker.match(HostnameChecker.java:91)
    at sun.security.ssl.X509TrustManagerImpl.checkIdentity(X509TrustManagerImpl.java:347)
    at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:203)
    at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:126)
    at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1323)
    ... 13 more
  • 第二次尝试:

我使用Deploy plugin,日志中没有显示eception,但我的应用程序未部署。我设置了这些参数:

- Fichiers WAR/EAR : /absolute/path/myapp.ear
- Context path : I don't know what to do here, I tried /myapp
- GlassFish home : /opt/glasfish3/glassfish
- GlassFish hostname : the IP adress of the server

为什么这两个尝试不起作用?错误的参数?其他插件依赖? ......?

提前感谢您的帮助!

注意:我不使用MAEVEN

0 个答案:

没有答案