[JIRA] (JENKINS-38205) Failed to deploy war on Weblogic: task completed abnormally (exit code = 1)

283 views
Skip to first unread message

gui.figueroac@gmail.com (JIRA)

unread,
Sep 14, 2016, 11:44:03 AM9/14/16
to jenkinsc...@googlegroups.com
Guillermo Figueroa created an issue
 
Jenkins / Bug JENKINS-38205
Failed to deploy war on Weblogic: task completed abnormally (exit code = 1)
Issue Type: Bug Bug
Assignee: Raphael CHAUMIER
Attachments: conf-1.png, conf-2.png, deploy-from-weblogic-machine.png, weblogic-deployment-plugin-conf-1.png, weblogic-deployment-plugin-conf-2.png, wlfullclient-generation.png
Components: weblogic-deployer-plugin
Created: 2016/Sep/14 3:43 PM
Environment: weblogic-deployer-plugin 3.5; Jenkins 2.7.2 (Docker for Mac OS X, Open-JDK 8); WebLogic 12.2.1 (Windows 7 Virtual Machine, Oracle JDK 8); wlfullclient.jar (Oracle JDK 7, wlfullclient-generation.png); wlthint3client.jar (WebLogic 12.2.1)
Labels: plugin jenkins weblogic-deployer-plugin-3.5
Priority: Blocker Blocker
Reporter: Guillermo Figueroa

Hi, I want to install a war file generated from Jenkins to WebLogic, both on different machines, but when the installation runs an error is generated:
java.lang.RuntimeException: task completed abnormally (exit code = 1)
Your help please!

Jenkins Console Output:
[WeblogicDeploymentPlugin] - EXECUTING TASK ...
$ /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -Xms256M -Xmx256M -cp /var/jenkins_home/wls-deploy/weblogic.jar:/var/jenkins_home/wls-deploy/wlfullclient.jar:/var/jenkins_home/wls-deploy/wlthint3client.jar weblogic.Deployer -adminurl t3://10.211.55.3:12001 -user system -password weblogic12 -deploy /var/jenkins_home/workspace/job-test-compile-build-deploy/dist/testcicd.war -remote -upload
java.lang.RuntimeException: task completed abnormally (exit code = 1)
at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.customize(DeploymentTaskServiceImpl.java:340)
at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java:173)
at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform(WeblogicDeploymentPlugin.java:304)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
at hudson.model.Build$BuildExecution.post2(Build.java:185)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
at hudson.model.Run.execute(Run.java:1766)
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.

WebLogic Deployment Log:
------------------------------------ TASK EXECUTION ------------------------------------------------
weblogic.Deployer invoked with options: -adminurl t3://10.211.55.3:12001 -user system -deploy /var/jenkins_home/workspace/job-test-compile-build-deploy/dist/testcicd.war -remote -upload
java.lang.NoClassDefFoundError: weblogic/deploy/api/spi/DeploymentOptions
at weblogic.deploy.api.tools.deployer.Jsr88Operation.init(Jsr88Operation.java:70)
at weblogic.deploy.api.tools.deployer.Operation.(Operation.java:52)
at weblogic.deploy.api.tools.deployer.Operation.(Operation.java:47)
at weblogic.deploy.api.tools.deployer.Operation.(Operation.java:42)
at weblogic.deploy.api.tools.deployer.Jsr88Operation.(Jsr88Operation.java:55)
at weblogic.deploy.api.tools.deployer.DeployOperation.(DeployOperation.java:18)
at weblogic.deploy.api.tools.deployer.Deployer.newOperation(Deployer.java:219)
at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:86)
at weblogic.utils.compiler.Tool.run(Tool.java:159)
at weblogic.utils.compiler.Tool.run(Tool.java:116)
at weblogic.Deployer.run(Deployer.java:74)
at weblogic.Deployer.main(Deployer.java:55)
Caused by: java.lang.ClassNotFoundException: weblogic.deploy.api.spi.DeploymentOptions
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 12 more
weblogic/deploy/api/spi/DeploymentOptions

Deployment Task Configuration (Job):
The configuration can be seen in the attached images conf-1.png and conf-2.png.
Command Line Options:
-adminurl t3://10.211.55.3:12001 -user system -password system -deploy /var/jenkins_home/workspace/job-test-compile-build-deploy/dist/testcicd.war -remote -upload

WebLogic Deployment Plugin Configuration:
I tried several options, some of these options can be seen in the attached images weblogic-deployment-plugin-conf-1.png and weblogic-deployment-plugin-conf-2.png.

plugin-configuration.xml:
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="http://org.jenkinsci.plugins/WeblogicDeploymentPlugin"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://localhost:32777/plugin/weblogic-deployer-plugin/config/plugin-configuration.xsd">
<weblogic-targets>
<weblogic-target>
<name>wls-alpha</name>
<host>10.211.55.3</host>
<port>12001</port>
<login>system</login>
<password>system</password>
<authMode>BY_LOGIN</authMode>
</weblogic-target>
</weblogic-targets>
</config>

Deploy from WebLogic Machine:
The deploy from the weblogic machine is performed without errors, this can be seen in the attached image deploy-from-weblogic-machine.png

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

gui.figueroac@gmail.com (JIRA)

unread,
Sep 14, 2016, 11:48:02 AM9/14/16
to jenkinsc...@googlegroups.com
Guillermo Figueroa updated an issue
Change By: Guillermo Figueroa
Hi, I want to install a war file generated from Jenkins to WebLogic, both on different machines, but when the installation runs an error is generated:
java.lang.RuntimeException: task completed abnormally (exit code = 1)
Your help please!

*+Jenkins Console Output:+*

[WeblogicDeploymentPlugin] - EXECUTING TASK ...
$ /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -Xms256M -Xmx256M -cp /var/jenkins_home/wls-deploy/weblogic.jar:/var/jenkins_home/wls-deploy/wlfullclient.jar:/var/jenkins_home/wls-deploy/wlthint3client.jar weblogic.Deployer -adminurl t3://10.211.55.3:12001 -user system -password weblogic12 system -deploy /var/jenkins_home/workspace/job-test-compile-build-deploy/dist/testcicd.war -remote -upload

java.lang.RuntimeException: task completed abnormally (exit code = 1)
at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.customize(DeploymentTaskServiceImpl.java:340)
at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java:173)
at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform(WeblogicDeploymentPlugin.java:304)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
at hudson.model.Build$BuildExecution.post2(Build.java:185)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
at hudson.model.Run.execute(Run.java:1766)
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.

*+WebLogic Deployment Log:+*

------------------------------------  TASK EXECUTION ------------------------------------------------
weblogic.Deployer invoked with options:  -adminurl t3://10.211.55.3:12001 -user system -deploy /var/jenkins_home/workspace/job-test-compile-build-deploy/dist/testcicd.war -remote -upload
java.lang.NoClassDefFoundError: weblogic/deploy/api/spi/DeploymentOptions
at weblogic.deploy.api.tools.deployer.Jsr88Operation.init(Jsr88Operation.java:70)
at weblogic.deploy.api.tools.deployer.Operation.(Operation.java:52)
at weblogic.deploy.api.tools.deployer.Operation.(Operation.java:47)
at weblogic.deploy.api.tools.deployer.Operation.(Operation.java:42)
at weblogic.deploy.api.tools.deployer.Jsr88Operation.(Jsr88Operation.java:55)
at weblogic.deploy.api.tools.deployer.DeployOperation.(DeployOperation.java:18)
at weblogic.deploy.api.tools.deployer.Deployer.newOperation(Deployer.java:219)
at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:86)
at weblogic.utils.compiler.Tool.run(Tool.java:159)
at weblogic.utils.compiler.Tool.run(Tool.java:116)
at weblogic.Deployer.run(Deployer.java:74)
at weblogic.Deployer.main(Deployer.java:55)
Caused by: java.lang.ClassNotFoundException: weblogic.deploy.api.spi.DeploymentOptions
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 12 more
weblogic/deploy/api/spi/DeploymentOptions

*+Deployment Task Configuration (Job):+*

The configuration can be seen in the attached images conf-1.png and conf-2.png.
Command Line Options:
-adminurl t3://10.211.55.3:12001 -user system -password system -deploy /var/jenkins_home/workspace/job-test-compile-build-deploy/dist/testcicd.war -remote -upload

*+WebLogic Deployment Plugin Configuration:+*

I tried several options, some of these options can be seen in the attached images weblogic-deployment-plugin-conf-1.png and weblogic-deployment-plugin-conf-2.png.

*+plugin-configuration.xml:+*

<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="http://org.jenkinsci.plugins/WeblogicDeploymentPlugin"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://localhost:32777/plugin/weblogic-deployer-plugin/config/plugin-configuration.xsd">
<weblogic-targets>
<weblogic-target>
  <name>wls-alpha</name>
  <host>10.211.55.3</host>
  <port>12001</port>
  <login>system</login>
  <password>system</password>
  <authMode>BY_LOGIN</authMode>
</weblogic-target>
</weblogic-targets>
</config>

*+Deploy from WebLogic Machine:+*

The deploy from the weblogic machine is performed without errors, this can be seen in the attached image deploy-from-weblogic-machine.png

rcr@orange.fr (JIRA)

unread,
Sep 14, 2016, 6:54:01 PM9/14/16
to jenkinsc...@googlegroups.com
Raphael CHAUMIER commented on Bug JENKINS-38205
 
Re: Failed to deploy war on Weblogic: task completed abnormally (exit code = 1)

Hi Guillermo Figueroa

You got a java.lang.ClassNotFoundException: weblogic.deploy.api.spi.DeploymentOptions. Can you check this class is under the wlfullclient.jar ? Can you try with a weblogic.jar ?

Regards

rcr@orange.fr (JIRA)

unread,
Sep 14, 2016, 6:58:01 PM9/14/16
to jenkinsc...@googlegroups.com
Raphael CHAUMIER edited a comment on Bug JENKINS-38205
Hi [~guillermo_figueroa]


You got a java.lang.ClassNotFoundException: weblogic.deploy.api.spi.DeploymentOptions. Can you check this class is under the wlfullclient.jar ? Can you try with a weblogic.jar ?



Regards

rcr@orange.fr (JIRA)

unread,
Sep 14, 2016, 7:11:03 PM9/14/16
to jenkinsc...@googlegroups.com
Raphael CHAUMIER edited a comment on Bug JENKINS-38205
Hi [~guillermo_figueroa]

You got a java.lang.ClassNotFoundException: weblogic.deploy.api.spi.DeploymentOptions. Can you check this class is under the wlfullclient.jar ? Can you try with
a wlthint3client.jar ? can you try with weblogic.jar ?

wlfullclient.jar is deprecated in WLS 12 (see https://docs.oracle.com/middleware/1213/wls/SACLT/basics.htm#SACLT125)

I added this information in wiki



Regards

rcr@orange.fr (JIRA)

unread,
Sep 14, 2016, 7:13:03 PM9/14/16
to jenkinsc...@googlegroups.com
Raphael CHAUMIER edited a comment on Bug JENKINS-38205
Hi [~guillermo_figueroa]

You got a java.lang.ClassNotFoundException: weblogic.deploy.api.spi.DeploymentOptions. Can you check this class is under the wlfullclient.jar ? Can you try with wlthint3client.jar ? can you try with weblogic.jar ?


wlfullclient.jar is deprecated in WLS 12 (see https://docs.oracle.com/middleware/1213/wls/SACLT/basics.htm#SACLT125)

I added this information in wiki which was outdated.

Don't append /path/to/wulfullclient.jar:/path/to/wlthint3client.jar.





Regards

gui.figueroac@gmail.com (JIRA)

unread,
Sep 14, 2016, 9:42:02 PM9/14/16
to jenkinsc...@googlegroups.com

Raphael, thanks for the quick response.

weblogic.deploy.api.spi.DeploymentOptions isn't under the wlfullclient.jar.

I tried with wlthint3client.jar (see weblogic-deployment-plugin-conf-3.png) but i got this error in WebLogic Deployment Log:
------------------------------------ TASK EXECUTION ------------------------------------------------
Error: Could not find or load main class weblogic.Deployer

I tried too with weblogic.jar (see weblogic-deployment-plugin-conf-4.png) but i got the same error in WebLogic Deployment Log:
------------------------------------ TASK EXECUTION ------------------------------------------------
Error: Could not find or load main class weblogic.Deployer

I put weblogic.jar, wlthint3client.jar, wlfullclient.jar in Jenkins home directory (you can see on images weblogic-deployment-plugin-conf-1.png, weblogic-deployment-plugin-conf-3.png, weblogic-deployment-plugin-conf-4.png) and my WebLogic is in another Machine, I don't have WebLogic on Jenkins Machine, could that be the problem?
I ask because the "Additional classpath" field in Jenkins/Manage Jenkins/System Configuration/WebLogic Deployment Plugin says "The path pointing to the weblogic.jar library used to the plugin. If empty, the plugin will try to find out a WebLogic installation on the machine.". In "Additional class path" field, can I reference the files weblogic.jar or wlthint3client.jar from Weblogic Machine directory (not from Jenkins Machine directory)?, the fields validation don't let it, because the file must exist on Jenkins server, but I have this doubt.

gui.figueroac@gmail.com (JIRA)

unread,
Sep 14, 2016, 9:42:02 PM9/14/16
to jenkinsc...@googlegroups.com
Guillermo Figueroa updated an issue
Change By: Guillermo Figueroa
Attachment: weblogic-deployment-plugin-conf-3.png
Attachment: weblogic-deployment-plugin-conf-4.png

gui.figueroac@gmail.com (JIRA)

unread,
Sep 14, 2016, 9:43:01 PM9/14/16
to jenkinsc...@googlegroups.com
Guillermo Figueroa edited a comment on Bug JENKINS-38205
Raphael, thanks for the quick response.

weblogic.deploy.api.spi.DeploymentOptions isn't under the wlfullclient.jar.

I tried with wlthint3client.jar (see weblogic-deployment-plugin-conf-3.png) but i I got this error in WebLogic Deployment Log:

------------------------------------  TASK EXECUTION ------------------------------------------------
Error: Could not find or load main class weblogic.Deployer

I tried too with weblogic.jar (see weblogic-deployment-plugin-conf-4.png) but i I got the same error in WebLogic Deployment Log:

------------------------------------  TASK EXECUTION ------------------------------------------------
Error: Could not find or load main class weblogic.Deployer

I put weblogic.jar, wlthint3client.jar, wlfullclient.jar in Jenkins home directory (you can see on images weblogic-deployment-plugin-conf-1.png, weblogic-deployment-plugin-conf-3.png, weblogic-deployment-plugin-conf-4.png) and my WebLogic is in another Machine, I don't have WebLogic on Jenkins Machine, could that be the problem?
I ask because the "Additional classpath" field in Jenkins/Manage Jenkins/System Configuration/WebLogic Deployment Plugin says "The path pointing to the weblogic.jar library used to the plugin. If empty, the plugin will try to find out a WebLogic installation on the machine.". In "Additional class path" field, can I reference the files weblogic.jar or wlthint3client.jar from Weblogic Machine directory (not from Jenkins Machine directory)?, the fields validation don't let it, because the file must exist on Jenkins server, but I have this doubt. !weblogic-deployment-plugin-conf-3.png|thumbnail!  !weblogic-deployment-plugin-conf-4.png|thumbnail!

rcr@orange.fr (JIRA)

unread,
Sep 15, 2016, 4:27:01 AM9/15/16
to jenkinsc...@googlegroups.com

Your weblogic doesn't need to be on the jenkins machine. This is possible but not necessary. If you don't set an additional classpath the plugin try to find out a weblogic installation on the same machine.

Do you have a master/slaves jenkins architecture ? Is your job run on the master or a slave ?

Concerning the field validation this is a bug which will be fixed in the next release.

Regards,

gui.figueroac@gmail.com (JIRA)

unread,
Sep 15, 2016, 8:14:02 AM9/15/16
to jenkinsc...@googlegroups.com

Ok, I get it.

I just have the default architecture, with 1 master and without slaves.

Regards.

rcr@orange.fr (JIRA)

unread,
Sep 15, 2016, 10:18:01 AM9/15/16
to jenkinsc...@googlegroups.com

Can you attach the job execution log of "Error: Could not find or load main class weblogic.Deployer"

What is your jdk version ? If not 1.6 can you try with 1.6 ?

gui.figueroac@gmail.com (JIRA)

unread,
Sep 15, 2016, 10:39:01 AM9/15/16
to jenkinsc...@googlegroups.com

This is the log:


[WeblogicDeploymentPlugin] - EXECUTING TASK ...

$ /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -Xms256M -Xmx256M -cp /var/jenkins_home/wls-deploy/weblogic.jar weblogic.Deployer -adminurl t3://10.211.55.3:12001 -user system -password system -deploy /var/jenkins_home/workspace/job-test-compile-build-deploy/dist/testcicd.war -remote -upload


java.lang.RuntimeException: task completed abnormally (exit code = 1)
at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.customize(DeploymentTaskServiceImpl.java:340)
at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java:173)
at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform(WeblogicDeploymentPlugin.java:304)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
at hudson.model.Build$BuildExecution.post2(Build.java:185)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
at hudson.model.Run.execute(Run.java:1766)
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.

I'm using jdk 1.8, I'll try with jdk 1.6.

gui.figueroac@gmail.com (JIRA)

unread,
Sep 15, 2016, 3:34:04 PM9/15/16
to jenkinsc...@googlegroups.com

Raphael,

Apparently the problem is related to the image of Jenkins for docker, because I tried a similar environment (Jenkins 2.7.2, plugin weblogic-deployer-plugin 3.5, WebLogic 12.2.1 and JDK 8), but jenkins (jenkins.war) deployed on WebLogic (Machine X), and deployment tasks were performed without error in the weblogic server (Machine Y).

This is the log:

Building in workspace /app/wlsadm12/.jenkins/workspace/job-deploy-weblogic-test
[WeblogicDeploymentPlugin] - Pay attention to JDK version

{selected version is 1.8.0_74}

compatibility with WebLogic Deployer API (see Oracle documentation).
[WeblogicDeploymentPlugin] - The JDK /opt/oracle/jdk1.8.0_74/jre will be used.
[WeblogicDeploymentPlugin] - Retrieving artifacts recorded [filtered resources on testcicd.war]...
[WeblogicDeploymentPlugin] - 2 files found under wls-deploy-plugin
[WeblogicDeploymentPlugin] - the following resource recorded /app/wlsadm12/.jenkins/wls-deploy-plugin/testcicd.war is eligible.
[WeblogicDeploymentPlugin] - the following resource ['plugin-configuration.xml'] doesn't match testcicd.war
[WeblogicDeploymentPlugin] - Deploying the artifact on the following target : (name=wls-alpha) (host=57.228.138.211) (port=12100)
[WeblogicDeploymentPlugin] - UNDEPLOYING ARTIFACT...
$ /opt/oracle/jdk1.8.0_74/jre/bin/java -Xms256M -Xmx256M -cp /opt/oracle/wls12.2.1/wlserver/server/lib/weblogic.jar weblogic.Deployer -debug -remote -verbose -noexit -name testcicd -targets Admin -adminurl t3://57.228.138.211:12100 -user system -password weblogic12 -undeploy
[WeblogicDeploymentPlugin] - ARTIFACT UNDEPLOYED SUCCESSFULLY.
[WeblogicDeploymentPlugin] - DEPLOYING ARTIFACT...
$ /opt/oracle/jdk1.8.0_74/jre/bin/java -Xms256M -Xmx256M -cp /opt/oracle/wls12.2.1/wlserver/server/lib/weblogic.jar weblogic.Deployer -debug -stage -remote -verbose -upload -name testcicd -source /app/wlsadm12/.jenkins/wls-deploy-plugin/testcicd.war -targets Admin -adminurl t3://57.228.138.211:12100 -user system -password weblogic12 -deploy
[WeblogicDeploymentPlugin] - ARTIFACT DEPLOYED SUCCESSFULLY.
[INFO] ------------------------------------------------------------------------
[INFO] DEPLOYMENT SUCCESS
[INFO] ------------------------------------------------------------------------
Finished: SUCCESS

rcr@orange.fr (JIRA)

unread,
Sep 16, 2016, 1:38:06 PM9/16/16
to jenkinsc...@googlegroups.com

Good news

Did you identify the problem about your current installation :

  • the jenkins version?
  • the java version?

If you run outside docker with the same jenkins version and the same configuration is it correct ?
You said you deploy jenkins.war on weblogic. If you just run jenkins as a java process. is it correct ?

Regards

me@nedostoupof.be (JIRA)

unread,
Jan 23, 2017, 11:19:01 AM1/23/17
to jenkinsc...@googlegroups.com

I guess it finally worked for Guillermo because he deployed jenkins.war on a Weblogic instance.
I'm facing the exact same issue while trying to run the plugin on a standalone Jenkins against a Weblogic 12.1.3, the error message is:

Error: Could not find or load main class weblogic.Deployer

I tried to execute the command in a terminal:

/usr/lib/jvm/java-1.7.0-oracle/bin/java -Xms256M -Xmx256M -cp /tmp/lib/wlthint3client.jar weblogic.Deployer -debug -stage -remote -verbose -upload -name wlserver -source /workspace/test/wl-test/target/wl-test.war -targets wlserver -adminurl t3://10.1.0.10:7001 -user myuser -password mypassword -deploy

And got the exact same error message Error: Could not find or load main class weblogic.Deployer

On Jenkins server: java -cp /tmp/lib/wlthint3client.jar weblogic.Deployer gives the error
On Jenkins server: java -cp /tmp/lib/weblogic.jar weblogic.Deployer gives the error

On WL server: java -cp /tmp/lib/wlthint3client.jar weblogic.Deployer gives the same error
On WL server: java -cp /tmp/lib/weblogic.jar weblogic.Deployer invoke the deployer correctly

I retried from the Jenkins server using weblogic.jar and still cannot instantiate weblogic.Deployer.
There must be some dependencies that needs to be installed on the Jenkins machine apart from the client jar.

I definitely don't want to have to install a full WL instance on my Jenkins server

me@nedostoupof.be (JIRA)

unread,
Jan 23, 2017, 12:28:02 PM1/23/17
to jenkinsc...@googlegroups.com

Ok despite the fact Weblogic Full Client is getting deprecated with 12c I decided to give it a try...

Following the Oracle guide https://docs.oracle.com/middleware/1213/wls/SACLT/jarbuilder.htm#SACLT239 I generated the wlfullclient.jar and configured the plugin to make use of it.

Deployment is now working, from Jenkins and command line, without installing anything else than the wlfullclient.jar on Jenkins machine.

Is this a real solution for 12c? I don't think so as the method is deprecated and will certainly be removed by Oracle at some point. In the meantime, it's a good workaround.

rcr@orange.fr (JIRA)

unread,
Jan 31, 2017, 6:19:01 AM1/31/17
to jenkinsc...@googlegroups.com

Thanks Gilles Nedostoupof for your feedback. I don't know how weblogic will change for the next release. If you have more information about this, let me know.

Using wlthint3client.jar and weblogic.jar doesn't work for weblogic version greater than 12c? What is the protocol you use with jenkins plugin to deploy ? http(s) ? t3(s) ?

Regards,

rcr@orange.fr (JIRA)

unread,
Jan 31, 2017, 6:19:01 AM1/31/17
to jenkinsc...@googlegroups.com

rcr@orange.fr (JIRA)

unread,
Jan 31, 2017, 6:22:03 AM1/31/17
to jenkinsc...@googlegroups.com
 
Re: Failed to deploy war on Weblogic: task completed abnormally (exit code = 1)

Hi Guillermo Figueroa

Pay attention of the WLS credentials when you copy jenkins plugin log. They appear in clear.

Regards,

Reply all
Reply to author
Forward
0 new messages