Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-67186

Deploing to glassfish 4.1.2 failed with SSLHandshakeException

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • deploy-plugin
    • None
    • GlassFish Server Open Source Edition 4.1.2 (build 1)
      Plugin version: Version: 1.16
      Docker: using jenkins docker latest jdk8

    Description

      Im getting this exception when trying to deloy to glassfish server, I searched the internet and found some hints about this error, most of them pointed out of using a self signed certificate in m glassfish installation, I tried adding the certificate to certcas in jenkins but with no success, anyone has solved this before?

       

      thanks in advance

      [DeployPublisher][INFO] Deploying war to container GlassFish 4.x Remote with context /jenkins-testing
      ERROR: Build step failed with exception
      javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
      at sun.security.ssl.HandshakeContext.<init>(HandshakeContext.java:171)
      at sun.security.ssl.ClientHandshakeContext.<init>(ClientHandshakeContext.java:103)
      at sun.security.ssl.TransportContext.kickstart(TransportContext.java:220)
      at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:428)
      at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
      at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:197)
      at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:167)
      at com.sun.enterprise.admin.remote.RemoteAdminCommand.doHttpCommand(RemoteAdminCommand.java:714)
      Caused: org.glassfish.api.admin.CommandException
      at com.sun.enterprise.admin.remote.RemoteAdminCommand.doHttpCommand(RemoteAdminCommand.java:843)
      at com.sun.enterprise.admin.remote.RemoteAdminCommand.doHttpCommand(RemoteAdminCommand.java:607)
      at com.sun.enterprise.admin.remote.RemoteAdminCommand.fetchCommandModel(RemoteAdminCommand.java:1169)
      at com.sun.enterprise.admin.cli.remote.RemoteCommand$CLIRemoteAdminCommand.fetchCommandModel(RemoteCommand.java:104)
      at com.sun.enterprise.admin.remote.RemoteAdminCommand.getCommandModel(RemoteAdminCommand.java:353)
      at com.sun.enterprise.admin.cli.remote.RemoteCommand.prepare(RemoteCommand.java:578)
      at com.sun.enterprise.admin.cli.CLICommand.execute(CLICommand.java:276)
      at com.sun.enterprise.admin.cli.remote.RemoteCommand.execute(RemoteCommand.java:521)
      at com.sun.enterprise.admin.cli.remote.RemoteCommand.executeAndReturnOutput(RemoteCommand.java:708)
      at org.glassfish.deployment.client.RemoteDeploymentFacility$RemoteCommandRunner.run(RemoteDeploymentFacility.java:95)
      Caused: java.lang.RuntimeException
      at org.glassfish.deployment.client.RemoteDeploymentFacility$RemoteCommandRunner.run(RemoteDeploymentFacility.java:99)
      at org.glassfish.deployment.client.AbstractDeploymentFacility.listReferencedTargets(AbstractDeploymentFacility.java:723)
      Caused: java.lang.RuntimeException: error submitting remote command
      at org.glassfish.deployment.client.AbstractDeploymentFacility.listReferencedTargets(AbstractDeploymentFacility.java:754)
      at org.glassfish.deployment.client.AbstractDeploymentFacility.listTargets(AbstractDeploymentFacility.java:712)
      at org.glassfish.deployapi.SunDeploymentManager.getTargets(SunDeploymentManager.java:141)
      Caused: java.lang.IllegalStateException: error submitting remote command
      at org.glassfish.deployapi.SunDeploymentManager.getTargets(SunDeploymentManager.java:143)
      at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.findTargetModule(AbstractJsr88Deployer.java:428)
      at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.redeploy(AbstractJsr88Deployer.java:190)
      at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:81)
      at hudson.plugins.deploy.CargoContainerAdapter$DeployCallable.invoke(CargoContainerAdapter.java:167)
      at hudson.plugins.deploy.CargoContainerAdapter$DeployCallable.invoke(CargoContainerAdapter.java:136)
      at hudson.FilePath.act(FilePath.java:1171)
      at hudson.FilePath.act(FilePath.java:1154)
      at hudson.plugins.deploy.CargoContainerAdapter.redeployFile(CargoContainerAdapter.java:133)
      at hudson.plugins.deploy.PasswordProtectedAdapterCargo.redeployFile(PasswordProtectedAdapterCargo.java:95)
      at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:113)
      at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
      at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
      at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:47)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:812)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:761)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1072)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:705)
      at hudson.model.Run.execute(Run.java:1913)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
      at hudson.model.ResourceController.execute(ResourceController.java:99)
      at hudson.model.Executor.run(Executor.java:432)
      Build step 'Deploy war/ear to a container' marked build as failure
      Finished: FAILURE

      Attachments

        Activity

          There are no comments yet on this issue.

          People

            Unassigned Unassigned
            juancarlos juan carlos
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: