We are trying to deploy a .war file into a weblogic server from Windows node using weblogic deployer plugin. Jenkins Master is on Linux while slave node 'VZK.WIN' is on Windows. We are getting below error while trying to do this. Can someone help us in resolving this issue.

      Started by user Natarajan, Bharath
      [EnvInject] - Loading node environment variables.
      Building remotely on CAO.EWDV.VZK in workspace D:\VZK.WIN\workspace\CAO.EWDV.Vzkauthoring.Vzk.Deploy_DEV
      [WeblogicDeploymentPlugin] - Pay attention of Jdk version

      {selected version is 1.8.0_25}

      compatibility with Weblogic Deployer API (see Oracle documentation).
      [WeblogicDeploymentPlugin] - The JDK /usr/java/jdk1.8.0_25/jre will be used.
      [WeblogicDeploymentPlugin] - Retrieving artifacts recorded [filtered resources on vzkauthoring.war]...
      [WeblogicDeploymentPlugin] - 2 files found under del
      [WeblogicDeploymentPlugin] - the following resource ['vzknowledge.war'] doesn't match vzkauthoring.war
      [WeblogicDeploymentPlugin] - the following resource recorded /apps/opt/jenkinsnfs/internal-vd/jnmisc/del/vzkauthoring.war is eligible.
      [WeblogicDeploymentPlugin] - Deploying the artifact on the following target : (name=DEV-DELETE-LATER-LINX) (host=abc.mycompany.com) (port=2001)
      [WeblogicDeploymentPlugin] - UNDEPLOYING ARTIFACT...
      $ /usr/java/jdk1.8.0_25/jre/bin/java -Xms256M -Xmx256M -cp /apps/opt/jenkinsnfs/internal-vd/jnmisc/weblogic/wlfullclient.jar weblogic.Deployer -debug -remote -verbose -noexit -name vzkauthoring -targets WLS_Cluster -adminurl t3://wlhost.mycompany.com:2001 -userconfigfile /apps/opt/jenkinsnfs/internal-vd/jnmisc/temp/myuserconfigfile.secure -userkeyfile /apps/opt/jenkinsnfs/internal-vd/jnmisc/temp/myuserkeyfile.secure -undeploy
      java.io.IOException: Cannot run program "/usr/java/jdk1.8.0_25/jre/bin/java": CreateProcess error=2, The system cannot find the file specified
      at java.lang.ProcessBuilder.start(Unknown Source)
      at hudson.Proc$LocalProc.<init>(Proc.java:244)
      at hudson.Proc$LocalProc.<init>(Proc.java:216)
      at hudson.Launcher$LocalLauncher.launch(Launcher.java:815)
      at hudson.Launcher$ProcStarter.start(Launcher.java:381)
      at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1148)
      at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1113)
      at hudson.remoting.UserRequest.perform(UserRequest.java:120)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:326)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at hudson.remoting.Engine$1$1.run(Engine.java:62)
      at java.lang.Thread.run(Unknown Source)
      at ......remote call to CAO.EWDV.VZK(Native Method)
      at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
      at hudson.remoting.UserResponse.retrieve(UserRequest.java:220)
      at hudson.remoting.Channel.call(Channel.java:781)
      at hudson.Launcher$RemoteLauncher.launch(Launcher.java:928)
      at hudson.Launcher$ProcStarter.start(Launcher.java:381)
      at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.undeploy(DeploymentTaskServiceImpl.java:274)
      at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java:170)
      at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform(WeblogicDeploymentPlugin.java:239)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
      at hudson.model.Build$BuildExecution.post2(Build.java:185)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
      at hudson.model.Run.execute(Run.java:1763)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:410)
      Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
      at java.lang.ProcessImpl.create(Native Method)
      at java.lang.ProcessImpl.<init>(Unknown Source)
      at java.lang.ProcessImpl.start(Unknown Source)
      at java.lang.ProcessBuilder.start(Unknown Source)
      at hudson.Proc$LocalProc.<init>(Proc.java:244)
      at hudson.Proc$LocalProc.<init>(Proc.java:216)
      at hudson.Launcher$LocalLauncher.launch(Launcher.java:815)
      at hudson.Launcher$ProcStarter.start(Launcher.java:381)
      at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1148)
      at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1113)
      at hudson.remoting.UserRequest.perform(UserRequest.java:120)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:326)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at hudson.remoting.Engine$1$1.run(Engine.java:62)
      at java.lang.Thread.run(Unknown Source)
      ERROR: [WeblogicDeploymentPlugin] - Failed to deploy.
      [INFO] ------------------------------------------------------------------------
      [INFO] DEPLOYMENT FAILURE
      [INFO] ------------------------------------------------------------------------
      Build step 'Deploy the artifact to any Weblogic environments' changed build result to FAILURE
      Started calculate disk usage of build
      Finished Calculation of disk usage of build in 0 seconds
      Started calculate disk usage of workspace
      Finished Calculation of disk usage of workspace in 0 seconds
      Notifying upstream projects of job completion
      Finished: FAILURE

          [JENKINS-36215] Unable to deploy from a windows slave node

          Bharath Natarajan created issue -
          Bharath Natarajan made changes -
          Description Original: We are trying to deploy a .war file into a weblogic server from Windows node using weblogic deployer plugin. Jenkins Master is on Linux while slave node 'CAO.EWDV.VZK' is on Windows. We are getting below error while trying to do this. Can someone help us in resolving this issue.


          Started by user Natarajan, Bharath
          [EnvInject] - Loading node environment variables.
          Building remotely on CAO.EWDV.VZK in workspace D:\OneJenkinsVZ\workspace\CAO.EWDV.Vzkauthoring.Vzk.Deploy_DEV
          [CAO.EWDV.Vzkauthoring.Vzk.Deploy_DEV] $ sh -xe C:\Users\tnsh\AppData\Local\Temp\3\hudson682326336128695604.sh
          The system cannot find the file specified
          FATAL: command execution failed
          java.io.IOException: Cannot run program "sh" (in directory "D:\OneJenkinsVZ\workspace\CAO.EWDV.Vzkauthoring.Vzk.Deploy_DEV"): CreateProcess error=2, The system cannot find the file specified
          at java.lang.ProcessBuilder.start(Unknown Source)
          at hudson.Proc$LocalProc.<init>(Proc.java:244)
          at hudson.Proc$LocalProc.<init>(Proc.java:216)
          at hudson.Launcher$LocalLauncher.launch(Launcher.java:815)
          at hudson.Launcher$ProcStarter.start(Launcher.java:381)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1148)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1113)
          at hudson.remoting.UserRequest.perform(UserRequest.java:120)
          at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          at hudson.remoting.Request$2.run(Request.java:326)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
          at java.util.concurrent.FutureTask.run(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at hudson.remoting.Engine$1$1.run(Engine.java:62)
          at java.lang.Thread.run(Unknown Source)
          at ......remote call to CAO.EWDV.VZK(Native Method)
          at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
          at hudson.remoting.UserResponse.retrieve(UserRequest.java:220)
          at hudson.remoting.Channel.call(Channel.java:781)
          at hudson.Launcher$RemoteLauncher.launch(Launcher.java:928)
          at hudson.Launcher$ProcStarter.start(Launcher.java:381)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:95)
          at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:64)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
          at hudson.model.Build$BuildExecution.build(Build.java:205)
          at hudson.model.Build$BuildExecution.doRun(Build.java:162)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
          at hudson.model.Run.execute(Run.java:1738)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:410)
          Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
          at java.lang.ProcessImpl.create(Native Method)
          at java.lang.ProcessImpl.<init>(Unknown Source)
          at java.lang.ProcessImpl.start(Unknown Source)
          at java.lang.ProcessBuilder.start(Unknown Source)
          at hudson.Proc$LocalProc.<init>(Proc.java:244)
          at hudson.Proc$LocalProc.<init>(Proc.java:216)
          at hudson.Launcher$LocalLauncher.launch(Launcher.java:815)
          at hudson.Launcher$ProcStarter.start(Launcher.java:381)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1148)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1113)
          at hudson.remoting.UserRequest.perform(UserRequest.java:120)
          at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          at hudson.remoting.Request$2.run(Request.java:326)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
          at java.util.concurrent.FutureTask.run(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at hudson.remoting.Engine$1$1.run(Engine.java:62)
          at java.lang.Thread.run(Unknown Source)
          Build step 'Execute shell' marked build as failure
          Archiving artifacts
          [WeblogicDeploymentPlugin] - build didn't finished successfully. The plugin execution is disabled.
          [INFO] ------------------------------------------------------------------------
          [INFO] DEPLOYMENT UNSTABLE
          [INFO] ------------------------------------------------------------------------
          Started calculate disk usage of build
          Finished Calculation of disk usage of build in 0 seconds
          Started calculate disk usage of workspace
          Finished Calculation of disk usage of workspace in 0 seconds
          Notifying upstream projects of job completion
          Finished: FAILURE
          New: We are trying to deploy a .war file into a weblogic server from Windows node using weblogic deployer plugin. Jenkins Master is on Linux while slave node 'CAO.EWDV.VZK' is on Windows. We are getting below error while trying to do this. Can someone help us in resolving this issue.

          Started by user Natarajan, Bharath
          [EnvInject] - Loading node environment variables.
          Building remotely on CAO.EWDV.VZK in workspace D:\OneJenkinsVZ\workspace\CAO.EWDV.Vzkauthoring.Vzk.Deploy_DEV
          [WeblogicDeploymentPlugin] - Pay attention of Jdk version {selected version is 1.8.0_25} compatibility with Weblogic Deployer API (see Oracle documentation).
          [WeblogicDeploymentPlugin] - The JDK /usr/java/jdk1.8.0_25/jre will be used.
          [WeblogicDeploymentPlugin] - Retrieving artifacts recorded [filtered resources on vzkauthoring.war]...
          [WeblogicDeploymentPlugin] - 2 files found under del
          [WeblogicDeploymentPlugin] - the following resource ['vzknowledge.war'] doesn't match vzkauthoring.war
          [WeblogicDeploymentPlugin] - the following resource recorded /apps/opt/jenkinsnfs/internal-vd/jnmisc/del/vzkauthoring.war is eligible.
          [WeblogicDeploymentPlugin] - Deploying the artifact on the following target : (name=DEV-DELETE-LATER-LINX) (host=ewdsacovn54.ebiz.verizon.com) (port=2001)
          [WeblogicDeploymentPlugin] - UNDEPLOYING ARTIFACT...
          $ /usr/java/jdk1.8.0_25/jre/bin/java -Xms256M -Xmx256M -cp /apps/opt/jenkinsnfs/internal-vd/jnmisc/weblogic/wlfullclient.jar weblogic.Deployer -debug -remote -verbose -noexit -name vzkauthoring -targets WLS_Cluster -adminurl t3://ewdsacovn54.ebiz.verizon.com:2001 -userconfigfile /apps/opt/jenkinsnfs/internal-vd/jnmisc/temp/myuserconfigfile.secure -userkeyfile /apps/opt/jenkinsnfs/internal-vd/jnmisc/temp/myuserkeyfile.secure -undeploy
          java.io.IOException: Cannot run program "/usr/java/jdk1.8.0_25/jre/bin/java": CreateProcess error=2, The system cannot find the file specified
          at java.lang.ProcessBuilder.start(Unknown Source)
          at hudson.Proc$LocalProc.<init>(Proc.java:244)
          at hudson.Proc$LocalProc.<init>(Proc.java:216)
          at hudson.Launcher$LocalLauncher.launch(Launcher.java:815)
          at hudson.Launcher$ProcStarter.start(Launcher.java:381)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1148)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1113)
          at hudson.remoting.UserRequest.perform(UserRequest.java:120)
          at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          at hudson.remoting.Request$2.run(Request.java:326)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
          at java.util.concurrent.FutureTask.run(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at hudson.remoting.Engine$1$1.run(Engine.java:62)
          at java.lang.Thread.run(Unknown Source)
          at ......remote call to CAO.EWDV.VZK(Native Method)
          at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
          at hudson.remoting.UserResponse.retrieve(UserRequest.java:220)
          at hudson.remoting.Channel.call(Channel.java:781)
          at hudson.Launcher$RemoteLauncher.launch(Launcher.java:928)
          at hudson.Launcher$ProcStarter.start(Launcher.java:381)
          at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.undeploy(DeploymentTaskServiceImpl.java:274)
          at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java:170)
          at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform(WeblogicDeploymentPlugin.java:239)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
          at hudson.model.Build$BuildExecution.post2(Build.java:185)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
          at hudson.model.Run.execute(Run.java:1763)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:410)
          Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
          at java.lang.ProcessImpl.create(Native Method)
          at java.lang.ProcessImpl.<init>(Unknown Source)
          at java.lang.ProcessImpl.start(Unknown Source)
          at java.lang.ProcessBuilder.start(Unknown Source)
          at hudson.Proc$LocalProc.<init>(Proc.java:244)
          at hudson.Proc$LocalProc.<init>(Proc.java:216)
          at hudson.Launcher$LocalLauncher.launch(Launcher.java:815)
          at hudson.Launcher$ProcStarter.start(Launcher.java:381)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1148)
          at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1113)
          at hudson.remoting.UserRequest.perform(UserRequest.java:120)
          at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          at hudson.remoting.Request$2.run(Request.java:326)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
          at java.util.concurrent.FutureTask.run(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at hudson.remoting.Engine$1$1.run(Engine.java:62)
          at java.lang.Thread.run(Unknown Source)
          ERROR: [WeblogicDeploymentPlugin] - Failed to deploy.
          [INFO] ------------------------------------------------------------------------
          [INFO] DEPLOYMENT FAILURE
          [INFO] ------------------------------------------------------------------------
          Build step 'Deploy the artifact to any Weblogic environments' changed build result to FAILURE
          Started calculate disk usage of build
          Finished Calculation of disk usage of build in 0 seconds
          Started calculate disk usage of workspace
          Finished Calculation of disk usage of workspace in 0 seconds
          Notifying upstream projects of job completion
          Finished: FAILURE

          Raphael CHAUMIER added a comment - - edited

          HI bharath_natarajan

          As you can see in the log, the problem is that your slave (on windows) doesn't found the binary java which is set with a *nix path. ( a jdk tool in global jenkins configuration or the JAVA_HOME)

          java.io.IOException: Cannot run program "/usr/java/jdk1.8.0_25/jre/bin/java": CreateProcess error=2, The system cannot find the file specified

          Is the job which deploys only run on slave ? If you run this on master is it ok?

          Regards

          Raphael CHAUMIER added a comment - - edited HI bharath_natarajan As you can see in the log, the problem is that your slave (on windows) doesn't found the binary java which is set with a *nix path. ( a jdk tool in global jenkins configuration or the JAVA_HOME) java.io.IOException: Cannot run program "/usr/java/jdk1.8.0_25/jre/bin/java": CreateProcess error=2, The system cannot find the file specified Is the job which deploys only run on slave ? If you run this on master is it ok? Regards

          Hi Raphel Chaumier,

          Yes, the job which deploys is running only on slave node at present. Yes, it would be fine even if we can run it from Master, but it would better if we can run it only on slave node, as we wanted Master to be isolated as it connects to multiple other slaves.

          Also, I observed that in a similar jenkins configuration where both Master and Slave servers are hosted on Windows, JAVA_HOME is being taken from Slave node which is not happening in our case where Master is on Linux and Slave is on Windows. Even though we tried referring to Slave node JAVA_HOME in Jenkins Global Configuration, it was not taking it up. I am not sure if this difference is due to the fact that Master and Slaves runs on different Operating System.

          Bharath Natarajan added a comment - Hi Raphel Chaumier, Yes, the job which deploys is running only on slave node at present. Yes, it would be fine even if we can run it from Master, but it would better if we can run it only on slave node, as we wanted Master to be isolated as it connects to multiple other slaves. Also, I observed that in a similar jenkins configuration where both Master and Slave servers are hosted on Windows, JAVA_HOME is being taken from Slave node which is not happening in our case where Master is on Linux and Slave is on Windows. Even though we tried referring to Slave node JAVA_HOME in Jenkins Global Configuration, it was not taking it up. I am not sure if this difference is due to the fact that Master and Slaves runs on different Operating System.

          Bharath Natarajan added a comment - - edited

          We even tried to run the deploy job on Master and got below error in Console Output and Weblogic Deployment logs. We are using wlfullclient.jar and added wlthint3client.jar to class path as mentioned in a weblogic support forum, but still having this issue.
          Console Output:
          Console Output
          Started by user Natarajan, Bharath
          [EnvInject] - Loading node environment variables.
          Building on master in workspace /apps/opt/jenkinsnfs/internal-vd/jnhome/jobs/xyz.Deploy_DEV/workspace
          [WeblogicDeploymentPlugin] - Pay attention of Jdk version

          {selected version is 1.8.0_25}

          compatibility with Weblogic Deployer API (see Oracle documentation).
          [WeblogicDeploymentPlugin] - The JDK /usr/java/jdk1.8.0_25/jre will be used.
          [WeblogicDeploymentPlugin] - Retrieving artifacts recorded [filtered resources on vzkauthoring.war]...
          [WeblogicDeploymentPlugin] - 2 files found under del
          [WeblogicDeploymentPlugin] - the following resource ['vzknowledge.war'] doesn't match vzkauthoring.war
          [WeblogicDeploymentPlugin] - the following resource recorded /apps/opt/jenkinsnfs/internal-vd/jnmisc/del/vzkauthoring.war is eligible.
          [WeblogicDeploymentPlugin] - Deploying the artifact on the following target : (name=DEV-DELETE-LATER-LINX) (host=weblogic-host.com) (port=2001)
          [WeblogicDeploymentPlugin] - UNDEPLOYING ARTIFACT...
          $ /usr/java/jdk1.8.0_25/jre/bin/java -Xms256M -Xmx256M -cp /apps/opt/jenkinsnfs/internal-vd/jnmisc/weblogic/wlfullclient.jar:/apps/opt/jenkinsnfs/internal-vd/jnmisc/weblogic/wlthint3client.jar weblogic.Deployer -debug -remote -verbose -noexit -name vzkauthoring -targets WLS_Cluster -adminurl t3://ewdsacovnxx.ebiz.xxxxx.com:2001 -userconfigfile /apps/opt/jenkinsnfs/internal-vd/jnmisc/temp/myuserconfigfile.secure -userkeyfile /apps/opt/jenkinsnfs/internal-vd/jnmisc/temp/myuserkeyfile.secure -undeploy
          [WeblogicDeploymentPlugin] - ARTIFACT UNDEPLOYED SUCCESSFULLY.
          [WeblogicDeploymentPlugin] - DEPLOYING ARTIFACT...
          $ /usr/java/jdk1.8.0_25/jre/bin/java -Xms256M -Xmx256M -cp /apps/opt/jenkinsnfs/internal-vd/jnmisc/weblogic/wlfullclient.jar:/apps/opt/jenkinsnfs/internal-vd/jnmisc/weblogic/wlthint3client.jar weblogic.Deployer -debug -stage -remote -verbose -upload -name vzkauthoring -source /apps/opt/jenkinsnfs/internal-vd/jnmisc/del/vzkauthoring.war -targets WLS_Cluster -adminurl t3://ewdsacovnxx.ebiz.xxxxx.com:2001 -userconfigfile /apps/opt/jenkinsnfs/internal-vd/jnmisc/temp/myuserconfigfile.secure -userkeyfile /apps/opt/jenkinsnfs/internal-vd/jnmisc/temp/myuserkeyfile.secure -deploy
          java.lang.RuntimeException: task completed abnormally (exit code = 1)
          at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.deploy(DeploymentTaskServiceImpl.java:244)
          at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java:173)
          at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform(WeblogicDeploymentPlugin.java:239)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
          at hudson.model.Build$BuildExecution.post2(Build.java:185)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
          at hudson.model.Run.execute(Run.java:1763)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:410)
          ERROR: [WeblogicDeploymentPlugin] - Failed to deploy.
          [INFO] ------------------------------------------------------------------------
          [INFO] DEPLOYMENT FAILURE
          [INFO] ------------------------------------------------------------------------
          Build step 'Deploy the artifact to any Weblogic environments' changed build result to FAILURE
          Started calculate disk usage of build
          Finished Calculation of disk usage of build in 0 seconds
          Started calculate disk usage of workspace
          Finished Calculation of disk usage of workspace in 0 seconds
          Notifying upstream projects of job completion
          Finished: FAILURE

          Weblogic Deployments Log:
          ------------------------------------ ARTIFACT UNDEPLOYMENT ------------------------------------------------
          weblogic.Deployer invoked with options: -debug -remote -verbose -noexit -name vzkauthoring -targets WLS_Cluster -adminurl t3://ewdsacovnxx.ebiz.xxxxx.com:2001 -userconfigfile /apps/opt/jenkinsnfs/internal-vd/jnmisc/temp/myuserconfigfile.secure -userkeyfile /apps/opt/jenkinsnfs/internal-vd/jnmisc/temp/myuserkeyfile.secure -undeploy
          java.lang.NoClassDefFoundError: com/rsa/jsafe/JSAFE_InvalidUseException
          at weblogic.security.internal.encryption.JSafeEncryptionServiceFactory.getEncryptionService(JSafeEncryptionServiceFactory.java:48)
          at weblogic.security.UserConfigFileManager.initEncryptionRead(UserConfigFileManager.java:689)
          at weblogic.security.UserConfigFileManager.getUsernameAndPassword(UserConfigFileManager.java:171)
          at weblogic.deploy.utils.MBeanHomeTool.processUsernameAndPassword(MBeanHomeTool.java:411)
          at weblogic.deploy.api.tools.deployer.Jsr88Operation.connect(Jsr88Operation.java:295)
          at weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:137)
          at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:88)
          at weblogic.utils.compiler.Tool.run(Tool.java:158)
          at weblogic.utils.compiler.Tool.run(Tool.java:115)
          at weblogic.Deployer.run(Deployer.java:70)
          at weblogic.Deployer.main(Deployer.java:54)
          Caused by: java.lang.ClassNotFoundException: com.rsa.jsafe.JSAFE_InvalidUseException
          at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
          at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
          at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
          ... 11 more
          Unexpected Error Initializing Deployer: weblogic.Deployer$DeployerException: weblogic.deploy.api.tools.deployer.DeployerException: com/rsa/jsafe/JSAFE_InvalidUseException
          ------------------------------------ ARTIFACT DEPLOYMENT ------------------------------------------------
          weblogic.Deployer invoked with options: -debug -stage -remote -verbose -upload -name vzkauthoring -source /apps/opt/jenkinsnfs/internal-vd/jnmisc/del/vzkauthoring.war -targets WLS_Cluster -adminurl t3://ewdsacovnxx.ebiz.xxxxx.com:2001 -userconfigfile /apps/opt/jenkinsnfs/internal-vd/jnmisc/temp/myuserconfigfile.secure -userkeyfile /apps/opt/jenkinsnfs/internal-vd/jnmisc/temp/myuserkeyfile.secure -deploy
          java.lang.NoClassDefFoundError: com/rsa/jsafe/JSAFE_SecureRandom
          at weblogic.security.internal.encryption.JSafeEncryptionServiceFactory.getEncryptionService(JSafeEncryptionServiceFactory.java:48)
          at weblogic.security.UserConfigFileManager.initEncryptionRead(UserConfigFileManager.java:689)
          at weblogic.security.UserConfigFileManager.getUsernameAndPassword(UserConfigFileManager.java:171)
          at weblogic.deploy.utils.MBeanHomeTool.processUsernameAndPassword(MBeanHomeTool.java:411)
          at weblogic.deploy.api.tools.deployer.Jsr88Operation.connect(Jsr88Operation.java:295)
          at weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:137)
          at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:88)
          at weblogic.utils.compiler.Tool.run(Tool.java:158)
          at weblogic.utils.compiler.Tool.run(Tool.java:115)
          at weblogic.Deployer.run(Deployer.java:70)
          at weblogic.Deployer.main(Deployer.java:54)
          Caused by: java.lang.ClassNotFoundException: com.rsa.jsafe.JSAFE_SecureRandom
          at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
          at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
          at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
          ... 11 more
          com/rsa/jsafe/JSAFE_SecureRandom

          Bharath Natarajan added a comment - - edited We even tried to run the deploy job on Master and got below error in Console Output and Weblogic Deployment logs. We are using wlfullclient.jar and added wlthint3client.jar to class path as mentioned in a weblogic support forum, but still having this issue. Console Output: Console Output Started by user Natarajan, Bharath [EnvInject] - Loading node environment variables. Building on master in workspace /apps/opt/jenkinsnfs/internal-vd/jnhome/jobs/xyz.Deploy_DEV/workspace [WeblogicDeploymentPlugin] - Pay attention of Jdk version {selected version is 1.8.0_25} compatibility with Weblogic Deployer API (see Oracle documentation). [WeblogicDeploymentPlugin] - The JDK /usr/java/jdk1.8.0_25/jre will be used. [WeblogicDeploymentPlugin] - Retrieving artifacts recorded [filtered resources on vzkauthoring.war] ... [WeblogicDeploymentPlugin] - 2 files found under del [WeblogicDeploymentPlugin] - the following resource ['vzknowledge.war'] doesn't match vzkauthoring.war [WeblogicDeploymentPlugin] - the following resource recorded /apps/opt/jenkinsnfs/internal-vd/jnmisc/del/vzkauthoring.war is eligible. [WeblogicDeploymentPlugin] - Deploying the artifact on the following target : (name=DEV-DELETE-LATER-LINX) (host=weblogic-host.com) (port=2001) [WeblogicDeploymentPlugin] - UNDEPLOYING ARTIFACT... $ /usr/java/jdk1.8.0_25/jre/bin/java -Xms256M -Xmx256M -cp /apps/opt/jenkinsnfs/internal-vd/jnmisc/weblogic/wlfullclient.jar:/apps/opt/jenkinsnfs/internal-vd/jnmisc/weblogic/wlthint3client.jar weblogic.Deployer -debug -remote -verbose -noexit -name vzkauthoring -targets WLS_Cluster -adminurl t3://ewdsacovnxx.ebiz.xxxxx.com:2001 -userconfigfile /apps/opt/jenkinsnfs/internal-vd/jnmisc/temp/myuserconfigfile.secure -userkeyfile /apps/opt/jenkinsnfs/internal-vd/jnmisc/temp/myuserkeyfile.secure -undeploy [WeblogicDeploymentPlugin] - ARTIFACT UNDEPLOYED SUCCESSFULLY. [WeblogicDeploymentPlugin] - DEPLOYING ARTIFACT... $ /usr/java/jdk1.8.0_25/jre/bin/java -Xms256M -Xmx256M -cp /apps/opt/jenkinsnfs/internal-vd/jnmisc/weblogic/wlfullclient.jar:/apps/opt/jenkinsnfs/internal-vd/jnmisc/weblogic/wlthint3client.jar weblogic.Deployer -debug -stage -remote -verbose -upload -name vzkauthoring -source /apps/opt/jenkinsnfs/internal-vd/jnmisc/del/vzkauthoring.war -targets WLS_Cluster -adminurl t3://ewdsacovnxx.ebiz.xxxxx.com:2001 -userconfigfile /apps/opt/jenkinsnfs/internal-vd/jnmisc/temp/myuserconfigfile.secure -userkeyfile /apps/opt/jenkinsnfs/internal-vd/jnmisc/temp/myuserkeyfile.secure -deploy java.lang.RuntimeException: task completed abnormally (exit code = 1) at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.deploy(DeploymentTaskServiceImpl.java:244) at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java:173) at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform(WeblogicDeploymentPlugin.java:239) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668) at hudson.model.Run.execute(Run.java:1763) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) ERROR: [WeblogicDeploymentPlugin] - Failed to deploy. [INFO] ------------------------------------------------------------------------ [INFO] DEPLOYMENT FAILURE [INFO] ------------------------------------------------------------------------ Build step 'Deploy the artifact to any Weblogic environments' changed build result to FAILURE Started calculate disk usage of build Finished Calculation of disk usage of build in 0 seconds Started calculate disk usage of workspace Finished Calculation of disk usage of workspace in 0 seconds Notifying upstream projects of job completion Finished: FAILURE Weblogic Deployments Log: ------------------------------------ ARTIFACT UNDEPLOYMENT ------------------------------------------------ weblogic.Deployer invoked with options: -debug -remote -verbose -noexit -name vzkauthoring -targets WLS_Cluster -adminurl t3://ewdsacovnxx.ebiz.xxxxx.com:2001 -userconfigfile /apps/opt/jenkinsnfs/internal-vd/jnmisc/temp/myuserconfigfile.secure -userkeyfile /apps/opt/jenkinsnfs/internal-vd/jnmisc/temp/myuserkeyfile.secure -undeploy java.lang.NoClassDefFoundError: com/rsa/jsafe/JSAFE_InvalidUseException at weblogic.security.internal.encryption.JSafeEncryptionServiceFactory.getEncryptionService(JSafeEncryptionServiceFactory.java:48) at weblogic.security.UserConfigFileManager.initEncryptionRead(UserConfigFileManager.java:689) at weblogic.security.UserConfigFileManager.getUsernameAndPassword(UserConfigFileManager.java:171) at weblogic.deploy.utils.MBeanHomeTool.processUsernameAndPassword(MBeanHomeTool.java:411) at weblogic.deploy.api.tools.deployer.Jsr88Operation.connect(Jsr88Operation.java:295) at weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:137) at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:88) at weblogic.utils.compiler.Tool.run(Tool.java:158) at weblogic.utils.compiler.Tool.run(Tool.java:115) at weblogic.Deployer.run(Deployer.java:70) at weblogic.Deployer.main(Deployer.java:54) Caused by: java.lang.ClassNotFoundException: com.rsa.jsafe.JSAFE_InvalidUseException at java.net.URLClassLoader$1.run(URLClassLoader.java:372) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:360) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 11 more Unexpected Error Initializing Deployer: weblogic.Deployer$DeployerException: weblogic.deploy.api.tools.deployer.DeployerException: com/rsa/jsafe/JSAFE_InvalidUseException ------------------------------------ ARTIFACT DEPLOYMENT ------------------------------------------------ weblogic.Deployer invoked with options: -debug -stage -remote -verbose -upload -name vzkauthoring -source /apps/opt/jenkinsnfs/internal-vd/jnmisc/del/vzkauthoring.war -targets WLS_Cluster -adminurl t3://ewdsacovnxx.ebiz.xxxxx.com:2001 -userconfigfile /apps/opt/jenkinsnfs/internal-vd/jnmisc/temp/myuserconfigfile.secure -userkeyfile /apps/opt/jenkinsnfs/internal-vd/jnmisc/temp/myuserkeyfile.secure -deploy java.lang.NoClassDefFoundError: com/rsa/jsafe/JSAFE_SecureRandom at weblogic.security.internal.encryption.JSafeEncryptionServiceFactory.getEncryptionService(JSafeEncryptionServiceFactory.java:48) at weblogic.security.UserConfigFileManager.initEncryptionRead(UserConfigFileManager.java:689) at weblogic.security.UserConfigFileManager.getUsernameAndPassword(UserConfigFileManager.java:171) at weblogic.deploy.utils.MBeanHomeTool.processUsernameAndPassword(MBeanHomeTool.java:411) at weblogic.deploy.api.tools.deployer.Jsr88Operation.connect(Jsr88Operation.java:295) at weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:137) at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:88) at weblogic.utils.compiler.Tool.run(Tool.java:158) at weblogic.utils.compiler.Tool.run(Tool.java:115) at weblogic.Deployer.run(Deployer.java:70) at weblogic.Deployer.main(Deployer.java:54) Caused by: java.lang.ClassNotFoundException: com.rsa.jsafe.JSAFE_SecureRandom at java.net.URLClassLoader$1.run(URLClassLoader.java:372) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:360) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 11 more com/rsa/jsafe/JSAFE_SecureRandom
          Raphael CHAUMIER made changes -
          Comment [ Hi [~arunb]

          The issue of your latest deployment log is different. It is a NoClassDefFound java.lang.NoClassDefFoundError: com/rsa/jsafe/JSAFE_SecureRandom. Here is a link related to this (https://community.oracle.com/thread/3519739?start=0&tstart=0)



          ]

          Hi bharath_natarajan
          The weblogic command uses the classpath attribute defined in weblogic global configuration (where you specify wlfullclient.ar). Did you try to set
          Did you try to add The classpath value with /path/to/wulfullclient.jar;/path/to/wlthint3client.jar ?

          Raphael CHAUMIER added a comment - Hi bharath_natarajan The weblogic command uses the classpath attribute defined in weblogic global configuration (where you specify wlfullclient.ar). Did you try to set Did you try to add The classpath value with /path/to/wulfullclient.jar;/path/to/wlthint3client.jar ?

          Hi Raphael,

          I was able to run the weblogic deploy job successfully from master after changing authentication mode to BY_LOGIN in config.xml and added classpath value with /path/to/wulfullclient.jar:/path/to/wlthint3client.jar.

          Started by user David, Sagayaraj X
          [EnvInject] - Loading node environment variables.
          Building on master in workspace /apps/opt/jenkinsnfs/internal-vd/jnhome/jobs/CAO.EWDV.Vzkauthoring.Vzk.Deploy_DEV/workspace
          [WeblogicDeploymentPlugin] - Pay attention of Jdk version

          {selected version is 1.8.0_25}

          compatibility with Weblogic Deployer API (see Oracle documentation).
          [WeblogicDeploymentPlugin] - The JDK /usr/java/jdk1.8.0_25/jre will be used.
          [WeblogicDeploymentPlugin] - Retrieving artifacts recorded [filtered resources on vzkauthoring.war]...
          [WeblogicDeploymentPlugin] - 2 files found under del
          [WeblogicDeploymentPlugin] - the following resource ['vzknowledge.war'] doesn't match vzkauthoring.war
          [WeblogicDeploymentPlugin] - the following resource recorded /apps/opt/jenkinsnfs/internal-vd/jnmisc/del/vzkauthoring.war is eligible.
          [WeblogicDeploymentPlugin] - Deploying the artifact on the following target : (name=DEV-LINX-BYPASSWD) (host=xyz.com) (port=2001)
          [WeblogicDeploymentPlugin] - UNDEPLOYING ARTIFACT...
          $ /usr/java/jdk1.8.0_25/jre/bin/java -Xms256M -Xmx256M -cp /apps/opt/jenkinsnfs/internal-vd/jnmisc/weblogic/wlfullclient.jar:/apps/opt/jenkinsnfs/internal-vd/jnmisc/weblogic/wlthint3client.jar weblogic.Deployer -debug -remote -verbose -noexit -name vzkauthoring -targets WLS_Cluster -adminurl t3://xyz.com:2001 -user xyz1 -password xyz2 -undeploy
          [WeblogicDeploymentPlugin] - ARTIFACT UNDEPLOYED SUCCESSFULLY.
          [WeblogicDeploymentPlugin] - DEPLOYING ARTIFACT...
          $ /usr/java/jdk1.8.0_25/jre/bin/java -Xms256M -Xmx256M -cp /apps/opt/jenkinsnfs/internal-vd/jnmisc/weblogic/wlfullclient.jar:/apps/opt/jenkinsnfs/internal-vd/jnmisc/weblogic/wlthint3client.jar weblogic.Deployer -debug -stage -remote -verbose -upload -name vzkauthoring -source /apps/opt/jenkinsnfs/internal-vd/jnmisc/del/vzkauthoring.war -targets WLS_Cluster -adminurl t3://xyz.com:2001 -user xyz1 -password xyz2 -deploy
          [WeblogicDeploymentPlugin] - ARTIFACT DEPLOYED SUCCESSFULLY.
          [INFO] ------------------------------------------------------------------------
          [INFO] DEPLOYMENT SUCCESS
          [INFO] ------------------------------------------------------------------------
          Started calculate disk usage of build
          Finished Calculation of disk usage of build in 0 seconds
          Started calculate disk usage of workspace
          Finished Calculation of disk usage of workspace in 0 seconds
          Notifying upstream projects of job completion
          Finished: SUCCESS

          But we are able to run this deploy job from Jenkins node. Is there anyway we can do that. We are getting "No JDK error" whenever trying to use JDK installed in Jenkins node. Could you let us know how we can achieve that?

          Bharath Natarajan added a comment - Hi Raphael, I was able to run the weblogic deploy job successfully from master after changing authentication mode to BY_LOGIN in config.xml and added classpath value with /path/to/wulfullclient.jar:/path/to/wlthint3client.jar. Started by user David, Sagayaraj X [EnvInject] - Loading node environment variables. Building on master in workspace /apps/opt/jenkinsnfs/internal-vd/jnhome/jobs/CAO.EWDV.Vzkauthoring.Vzk.Deploy_DEV/workspace [WeblogicDeploymentPlugin] - Pay attention of Jdk version {selected version is 1.8.0_25} compatibility with Weblogic Deployer API (see Oracle documentation). [WeblogicDeploymentPlugin] - The JDK /usr/java/jdk1.8.0_25/jre will be used. [WeblogicDeploymentPlugin] - Retrieving artifacts recorded [filtered resources on vzkauthoring.war] ... [WeblogicDeploymentPlugin] - 2 files found under del [WeblogicDeploymentPlugin] - the following resource ['vzknowledge.war'] doesn't match vzkauthoring.war [WeblogicDeploymentPlugin] - the following resource recorded /apps/opt/jenkinsnfs/internal-vd/jnmisc/del/vzkauthoring.war is eligible. [WeblogicDeploymentPlugin] - Deploying the artifact on the following target : (name=DEV-LINX-BYPASSWD) (host=xyz.com) (port=2001) [WeblogicDeploymentPlugin] - UNDEPLOYING ARTIFACT... $ /usr/java/jdk1.8.0_25/jre/bin/java -Xms256M -Xmx256M -cp /apps/opt/jenkinsnfs/internal-vd/jnmisc/weblogic/wlfullclient.jar:/apps/opt/jenkinsnfs/internal-vd/jnmisc/weblogic/wlthint3client.jar weblogic.Deployer -debug -remote -verbose -noexit -name vzkauthoring -targets WLS_Cluster -adminurl t3://xyz.com:2001 -user xyz1 -password xyz2 -undeploy [WeblogicDeploymentPlugin] - ARTIFACT UNDEPLOYED SUCCESSFULLY. [WeblogicDeploymentPlugin] - DEPLOYING ARTIFACT... $ /usr/java/jdk1.8.0_25/jre/bin/java -Xms256M -Xmx256M -cp /apps/opt/jenkinsnfs/internal-vd/jnmisc/weblogic/wlfullclient.jar:/apps/opt/jenkinsnfs/internal-vd/jnmisc/weblogic/wlthint3client.jar weblogic.Deployer -debug -stage -remote -verbose -upload -name vzkauthoring -source /apps/opt/jenkinsnfs/internal-vd/jnmisc/del/vzkauthoring.war -targets WLS_Cluster -adminurl t3://xyz.com:2001 -user xyz1 -password xyz2 -deploy [WeblogicDeploymentPlugin] - ARTIFACT DEPLOYED SUCCESSFULLY. [INFO] ------------------------------------------------------------------------ [INFO] DEPLOYMENT SUCCESS [INFO] ------------------------------------------------------------------------ Started calculate disk usage of build Finished Calculation of disk usage of build in 0 seconds Started calculate disk usage of workspace Finished Calculation of disk usage of workspace in 0 seconds Notifying upstream projects of job completion Finished: SUCCESS But we are able to run this deploy job from Jenkins node. Is there anyway we can do that. We are getting "No JDK error" whenever trying to use JDK installed in Jenkins node. Could you let us know how we can achieve that?

          Hi bharath_natarajan

          Good news for you.

          I will add to the wiki more details about the classpath.

          What was the problem with the key authentication ?

          "But we are able to run this deploy job from Jenkins node. Is there anyway we can do that" : So you can or cannot deploy from a node?

          "We are getting "No JDK error" whenever trying to use JDK installed in Jenkins node". Do you mean : "if we set the JDK installed on the jenkins node in the jenkins global configuration there's no problem."? In the node configuration (you can see on your jenkins master instance (http://<host>:<port>/<contextPath>/computer/<my_node>/configure)) did you try to override JDK installation with the jdk installation node path ?

          Raphael CHAUMIER added a comment - Hi bharath_natarajan Good news for you. I will add to the wiki more details about the classpath. What was the problem with the key authentication ? "But we are able to run this deploy job from Jenkins node. Is there anyway we can do that" : So you can or cannot deploy from a node? "We are getting "No JDK error" whenever trying to use JDK installed in Jenkins node". Do you mean : "if we set the JDK installed on the jenkins node in the jenkins global configuration there's no problem."? In the node configuration (you can see on your jenkins master instance (http://<host>:<port>/<contextPath>/computer/<my_node>/configure)) did you try to override JDK installation with the jdk installation node path ?

          Bharath Natarajan added a comment - - edited

          "But we are able to run this deploy job from Jenkins node. Is there anyway we can do that" : So you can or cannot deploy from a node?
          --We are unable to deploy from Windows node, presently we are trying to deploy from a Linux node, we are getting below error when doing so.

          [WeblogicDeploymentPlugin] - UNDEPLOYING ARTIFACT...
          $ /usr/java/jdk1.8.0_25/jre/bin/java -Xms256M -Xmx256M -cp /apps/opt/jenkinsnfs/internal-vd/jnmisc/weblogic/wlfullclient.jar:/apps/opt/jenkinsnfs/internal-vd/jnmisc/weblogic/wlthint3client.jar weblogic.Deployer -debug -remote -verbose -noexit -name vzkauthoring -targets WLS_Cluster -adminurl t3://xyz.com:2001 -user xyz -password xyz -undeploy -library
          [WeblogicDeploymentPlugin] - ARTIFACT UNDEPLOYED SUCCESSFULLY.
          [WeblogicDeploymentPlugin] - TRANSFERING LIBRARY : (local=vzkauthoring.war) (remote=null/vzkauthoring.war) to (ftp=weblogic-host.com@null) ...
          org.jenkinsci.plugins.deploy.weblogic.exception.TransfertFileException: Failed to download file completely
          at org.jenkinsci.plugins.deploy.weblogic.util.FTPUtils.transfertFile(FTPUtils.java:61)
          at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.deploy(DeploymentTaskServiceImpl.java:222)
          at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java:173)
          at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform(WeblogicDeploymentPlugin.java:239)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
          at hudson.model.Build$BuildExecution.post2(Build.java:185)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
          at hudson.model.Run.execute(Run.java:1763)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:410)
          Caused by: java.net.ConnectException: Connection refused
          at java.net.PlainSocketImpl.socketConnect(Native Method)
          at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
          at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
          at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
          at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
          at java.net.Socket.connect(Socket.java:589)
          at org.apache.commons.net.SocketClient.connect(SocketClient.java:171)
          at org.apache.commons.net.SocketClient.connect(SocketClient.java:192)
          at org.apache.commons.net.SocketClient.connect(SocketClient.java:285)
          at org.jenkinsci.plugins.deploy.weblogic.util.FTPUtils.transfertFile(FTPUtils.java:33)
          ... 12 more
          ERROR: [WeblogicDeploymentPlugin] - Failed to deploy.
          [INFO] ------------------------------------------------------------------------
          [INFO] DEPLOYMENT FAILURE
          [INFO] ------------------------------------------------------------------------

          "We are getting "No JDK error" whenever trying to use JDK installed in Jenkins node". Do you mean : "if we set the JDK installed on the jenkins node in the jenkins global configuration there's no problem."? In the node configuration (you can see on your jenkins master instance (http://<host>:<port>/<contextPath>/computer/<my_node>/configure)) did you try to override JDK installation with the jdk installation node path ?
          --if we set the JDK installed on the jenkins node in the jenkins global configuration there's "No JDK error".

          – Yes we tried to override JDK installation with the jdk installation node path bin node configuration. But still we are getting "No JDK error". Also, I came across an blog where Weblogic plug-in will not work fine when Master is in Linux and Slave is in Windows. Hence, we are trying with Linux slave node.

          Bharath Natarajan added a comment - - edited "But we are able to run this deploy job from Jenkins node. Is there anyway we can do that" : So you can or cannot deploy from a node? --We are unable to deploy from Windows node, presently we are trying to deploy from a Linux node, we are getting below error when doing so. [WeblogicDeploymentPlugin] - UNDEPLOYING ARTIFACT... $ /usr/java/jdk1.8.0_25/jre/bin/java -Xms256M -Xmx256M -cp /apps/opt/jenkinsnfs/internal-vd/jnmisc/weblogic/wlfullclient.jar:/apps/opt/jenkinsnfs/internal-vd/jnmisc/weblogic/wlthint3client.jar weblogic.Deployer -debug -remote -verbose -noexit -name vzkauthoring -targets WLS_Cluster -adminurl t3://xyz.com:2001 -user xyz -password xyz -undeploy -library [WeblogicDeploymentPlugin] - ARTIFACT UNDEPLOYED SUCCESSFULLY. [WeblogicDeploymentPlugin] - TRANSFERING LIBRARY : (local=vzkauthoring.war) (remote=null/vzkauthoring.war) to (ftp=weblogic-host.com@null) ... org.jenkinsci.plugins.deploy.weblogic.exception.TransfertFileException: Failed to download file completely at org.jenkinsci.plugins.deploy.weblogic.util.FTPUtils.transfertFile(FTPUtils.java:61) at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.deploy(DeploymentTaskServiceImpl.java:222) at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java:173) at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform(WeblogicDeploymentPlugin.java:239) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668) at hudson.model.Run.execute(Run.java:1763) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at org.apache.commons.net.SocketClient.connect(SocketClient.java:171) at org.apache.commons.net.SocketClient.connect(SocketClient.java:192) at org.apache.commons.net.SocketClient.connect(SocketClient.java:285) at org.jenkinsci.plugins.deploy.weblogic.util.FTPUtils.transfertFile(FTPUtils.java:33) ... 12 more ERROR: [WeblogicDeploymentPlugin] - Failed to deploy. [INFO] ------------------------------------------------------------------------ [INFO] DEPLOYMENT FAILURE [INFO] ------------------------------------------------------------------------ "We are getting "No JDK error" whenever trying to use JDK installed in Jenkins node". Do you mean : "if we set the JDK installed on the jenkins node in the jenkins global configuration there's no problem."? In the node configuration (you can see on your jenkins master instance (http://<host>:<port>/<contextPath>/computer/<my_node>/configure)) did you try to override JDK installation with the jdk installation node path ? --if we set the JDK installed on the jenkins node in the jenkins global configuration there's "No JDK error". – Yes we tried to override JDK installation with the jdk installation node path bin node configuration. But still we are getting "No JDK error". Also, I came across an blog where Weblogic plug-in will not work fine when Master is in Linux and Slave is in Windows. Hence, we are trying with Linux slave node.

            raphc Raphael CHAUMIER
            bharath_natarajan Bharath Natarajan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: