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

          Hi Raphael CHAUMIER,

          Thanks for your input.

          Regarding Linux node deploy issue, I hope I had to use "Publish Over FTP Plugin" to set my local path for FTP transfers in Jenkins Configuration. I am doing that. Will keep you posted on this.

          And to answer your question "What was the problem with the key authentication ?"
          --We were getting "JSAFE Invalid Use case exception" when trying to use key authentication. Not sure about the root cause for this issue. We will be debugging this issue soon after fixing our problem with Linux node, will keep you posted.

          Thanks for your guidance.

          With Regards,
          Bharath N

          Bharath Natarajan added a comment - Hi Raphael CHAUMIER, Thanks for your input. Regarding Linux node deploy issue, I hope I had to use "Publish Over FTP Plugin" to set my local path for FTP transfers in Jenkins Configuration. I am doing that. Will keep you posted on this. And to answer your question "What was the problem with the key authentication ?" --We were getting "JSAFE Invalid Use case exception" when trying to use key authentication. Not sure about the root cause for this issue. We will be debugging this issue soon after fixing our problem with Linux node, will keep you posted. Thanks for your guidance. With Regards, Bharath N

          Raphael CHAUMIER added a comment - - edited

          Concerning the localPath, the plugin uses remoteDir value to transfer the library

          <weblogic-target>

          <!-- used to transfer by FTP the component flagged as library to the WL machine -->
          <ftpHost>weblogic.remote.host</ftpHost>
          <ftpUser>weblogic.remote.user</ftpUser>
          <ftpPassowrd>weblogic.remote.password</ftpPassowrd>
          <remoteDir>/remote/file/to/path/used/to/deploy/libraries</remoteDir>
          </weblogic-target>

          Raphael CHAUMIER added a comment - - edited Concerning the localPath, the plugin uses remoteDir value to transfer the library <weblogic-target> <!-- used to transfer by FTP the component flagged as library to the WL machine --> <ftpHost> weblogic.remote.host </ftpHost> <ftpUser> weblogic.remote.user </ftpUser> <ftpPassowrd> weblogic.remote.password </ftpPassowrd> <remoteDir>/remote/file/to/path/used/to/deploy/libraries</remoteDir> </weblogic-target>

          Hi Raphel CHAUMIER,

          Thanks for your input. I am adding FTP config details to my config.xml. Will keep you posted on the progress.

          One kind help, please update the text pertaining to my organization in one of your comment as following " [WeblogicDeploymentPlugin] - TRANSFERING LIBRARY : (local=vzkauthoring.war) (remote=null/vzkauthoring.war) to (ftp=weblogic-host.com@null) ..."

          Bharath Natarajan added a comment - Hi Raphel CHAUMIER, Thanks for your input. I am adding FTP config details to my config.xml. Will keep you posted on the progress. One kind help, please update the text pertaining to my organization in one of your comment as following " [WeblogicDeploymentPlugin] - TRANSFERING LIBRARY : (local=vzkauthoring.war) (remote=null/vzkauthoring.war) to (ftp=weblogic-host.com@null) ..."

          done

          Raphael CHAUMIER added a comment - done

          Hi Raphel CHAUMIER,

          We made changes to configuration.xml and tried to deploy but got stuck in same error even after make necessary changes as suggested by you. We are using the JAVA_HOME as set in Jenkins Master.

          Started by user Natarajan, Bharath
          [EnvInject] - Loading node environment variables.
          Building remotely on XYZ.ABC.SAN.11 (XYZ) in workspace /tmp/ojwl/workspace/XYZ.Deploy_DEV1
          [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 XYZ.war]...
          [WeblogicDeploymentPlugin] - 2 files found under del
          [WeblogicDeploymentPlugin] - the following resource ['vzknowledge.war'] doesn't match XYZ.war
          [WeblogicDeploymentPlugin] - the following resource recorded /apps/opt/jenkinsnfs/internal-vd/jnmisc/del/XYZ.war is eligible.
          [WeblogicDeploymentPlugin] - Deploying the artifact on the following target : (name=DEV-LINX-BYPASSWD) (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 XYZ -targets WLS_Cluster -adminurl t3://weblogic-host.com:2001 -user xyz -password abc -undeploy -library
          [WeblogicDeploymentPlugin] - ARTIFACT UNDEPLOYED SUCCESSFULLY.
          [WeblogicDeploymentPlugin] - TRANSFERING LIBRARY : (local=XYZ.war) (remote=/tmp/ojwl/XYZ.war) to (ftp=weblogic-host.com@weblogic) ...
          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] ------------------------------------------------------------------------
          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 Log:
          ------------------------------------ ARTIFACT UNDEPLOYMENT ------------------------------------------------
          Error: Could not find or load main class weblogic.Deployer

          Also tried deploying the artifact as non library component and got below error, the same configuration runs fine if we run from Jenkins master on Linux server, the error comes in when we run it on Linux slave node where weblogic 10.3.4 is installed. Also, tried using Linux slave node java path in weblogic global configuration and was getting "NO JDK Found error"

          Started by user Natarajan, Bharath
          [EnvInject] - Loading node environment variables.
          Building remotely on XYZ.54 (ABC) in workspace /tmp/ojwl/workspace/XYZ_DEV1
          [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 ABC.war]...
          [WeblogicDeploymentPlugin] - 2 files found under del
          [WeblogicDeploymentPlugin] - the following resource ['ABC.war'] doesn't match ABC.war
          [WeblogicDeploymentPlugin] - the following resource recorded /apps/opt/jenkinsnfs/internal-vd/jnmisc/del/ABC.war is eligible.
          [WeblogicDeploymentPlugin] - Deploying the artifact on the following target : (name=DEV-LINX-BYPASSWD) (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 ABC -targets WLS_Cluster -adminurl t3://weblogic-host.com:2001 -user xyz -password abc -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 ABC -source /apps/opt/jenkinsnfs/internal-vd/jnmisc/del/ABC.war -targets WLS_Cluster -adminurl t3://weblogic-host.com:2001 -xyz weblogic -password abc -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 Log:
          ------------------------------------ ARTIFACT UNDEPLOYMENT ------------------------------------------------
          Error: Could not find or load main class weblogic.Deployer
          ------------------------------------ ARTIFACT DEPLOYMENT ------------------------------------------------
          Error: Could not find or load main class weblogic.Deployer

          Bharath Natarajan added a comment - Hi Raphel CHAUMIER, We made changes to configuration.xml and tried to deploy but got stuck in same error even after make necessary changes as suggested by you. We are using the JAVA_HOME as set in Jenkins Master. Started by user Natarajan, Bharath [EnvInject] - Loading node environment variables. Building remotely on XYZ.ABC.SAN.11 (XYZ) in workspace /tmp/ojwl/workspace/XYZ.Deploy_DEV1 [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 XYZ.war] ... [WeblogicDeploymentPlugin] - 2 files found under del [WeblogicDeploymentPlugin] - the following resource ['vzknowledge.war'] doesn't match XYZ.war [WeblogicDeploymentPlugin] - the following resource recorded /apps/opt/jenkinsnfs/internal-vd/jnmisc/del/XYZ.war is eligible. [WeblogicDeploymentPlugin] - Deploying the artifact on the following target : (name=DEV-LINX-BYPASSWD) (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 XYZ -targets WLS_Cluster -adminurl t3://weblogic-host.com:2001 -user xyz -password abc -undeploy -library [WeblogicDeploymentPlugin] - ARTIFACT UNDEPLOYED SUCCESSFULLY. [WeblogicDeploymentPlugin] - TRANSFERING LIBRARY : (local=XYZ.war) (remote=/tmp/ojwl/XYZ.war) to (ftp=weblogic-host.com@weblogic) ... 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] ------------------------------------------------------------------------ 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 Log: ------------------------------------ ARTIFACT UNDEPLOYMENT ------------------------------------------------ Error: Could not find or load main class weblogic.Deployer Also tried deploying the artifact as non library component and got below error, the same configuration runs fine if we run from Jenkins master on Linux server, the error comes in when we run it on Linux slave node where weblogic 10.3.4 is installed. Also, tried using Linux slave node java path in weblogic global configuration and was getting "NO JDK Found error" Started by user Natarajan, Bharath [EnvInject] - Loading node environment variables. Building remotely on XYZ.54 (ABC) in workspace /tmp/ojwl/workspace/XYZ_DEV1 [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 ABC.war] ... [WeblogicDeploymentPlugin] - 2 files found under del [WeblogicDeploymentPlugin] - the following resource ['ABC.war'] doesn't match ABC.war [WeblogicDeploymentPlugin] - the following resource recorded /apps/opt/jenkinsnfs/internal-vd/jnmisc/del/ABC.war is eligible. [WeblogicDeploymentPlugin] - Deploying the artifact on the following target : (name=DEV-LINX-BYPASSWD) (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 ABC -targets WLS_Cluster -adminurl t3://weblogic-host.com:2001 -user xyz -password abc -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 ABC -source /apps/opt/jenkinsnfs/internal-vd/jnmisc/del/ABC.war -targets WLS_Cluster -adminurl t3://weblogic-host.com:2001 -xyz weblogic -password abc -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 Log: ------------------------------------ ARTIFACT UNDEPLOYMENT ------------------------------------------------ Error: Could not find or load main class weblogic.Deployer ------------------------------------ ARTIFACT DEPLOYMENT ------------------------------------------------ Error: Could not find or load main class weblogic.Deployer

          Hi bharath_natarajan

          Concerning the ftp transfer from your linux node I see the error : "Caused by: java.net.ConnectException: Connection refused". Did you test the ftp connection between the linux slave node and the host where the weblogic server is installedwith the ftp linux command?

          About the problem "Could not find or load main class weblogic.Deployer" is the weblogic.jar is installed on your linux node ? is the path exists on your linux node ?

          Raphael CHAUMIER added a comment - Hi bharath_natarajan Concerning the ftp transfer from your linux node I see the error : "Caused by: java.net.ConnectException: Connection refused". Did you test the ftp connection between the linux slave node and the host where the weblogic server is installedwith the ftp linux command? About the problem "Could not find or load main class weblogic.Deployer" is the weblogic.jar is installed on your linux node ? is the path exists on your linux node ?

          Hi bharath_natarajan

          Did you resolve your problem?

          Raphael CHAUMIER added a comment - Hi bharath_natarajan Did you resolve your problem?

          Code changed in jenkins
          User: rachaumi
          Path:
          src/main/java/org/jenkinsci/plugins/deploy/weblogic/FreeStyleJobArtifactSelectorImpl.java
          http://jenkins-ci.org/commit/weblogic-deployer-plugin/5aae97fd7c5e361a31594d66eab2c309956b818b
          Log:
          JENKINS-36215 Use of FilePath instead of File

          Compare: https://github.com/jenkinsci/weblogic-deployer-plugin/compare/4f15e9582190...5aae97fd7c5e

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: rachaumi Path: src/main/java/org/jenkinsci/plugins/deploy/weblogic/FreeStyleJobArtifactSelectorImpl.java http://jenkins-ci.org/commit/weblogic-deployer-plugin/5aae97fd7c5e361a31594d66eab2c309956b818b Log: JENKINS-36215 Use of FilePath instead of File Compare: https://github.com/jenkinsci/weblogic-deployer-plugin/compare/4f15e9582190...5aae97fd7c5e

          Hi bharath_natarajan

           

          I've just released the version 4.0. Let me know if it's ok for you.

          Raphael CHAUMIER added a comment - Hi bharath_natarajan   I've just released the version 4.0. Let me know if it's ok for you.

          No news I consider the issue as resolved

          Raphael CHAUMIER added a comment - No news I consider the issue as resolved

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

              Created:
              Updated:
              Resolved: