-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
OS: OEL 6.8 64 bit
Jenkins version: 2.73.1
Weblogic plugin Version: 4.1
Java Version: 1.8
-
Powered by SuggestiMate
HI Support,
Unable to deploy ear file on weblogic.
Configured job following this url: https://wiki.jenkins.io/display/JENKINS/WebLogic+Deployer+Plugin#WebLogicDeployerPlugin-Authenticationmode.
I've taken screen shots of job and other configuration related settings.
Please look into this as early as possible.
[JENKINS-47088] Unable to deploy ear file using weblogic deployer plugin
It is not a Support site, it is bugtracker.
If you submit to "_unsorted" component, it may take long to get a response. I will assign to the proper component.
Hi nagesh
Can you tell me more about your problem ? Waht is the version of plugin you use ? the weblogic version ? Can you post the job execution log ?
Hi Raphael
I'm trying to deploy the build war/ear onto weblogic using weblogic plugin, but unable to achieve that.
Plugin version: 4.1
Weblogic version: 12.2.1.2.0
Job Execution Log:
if I use wlthint3client.jar
------------------------------------ ARTIFACT UNDEPLOYMENT ------------------------------------------------
Error: Could not find or load main class weblogic.Deployer
------------------------------------ ARTIFACT DEPLOYMENT ------------------------------------------------
Error: Could not find or load main class weblogic.Deployer
If I use weblogic.jar:
------------------------------------ ARTIFACT UNDEPLOYMENT ------------------------------------------------
Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/utils/Debug
at weblogic.Deployer.(Deployer.java:23)
Caused by: java.lang.ClassNotFoundException: weblogic.utils.Debug
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)
... 1 more
------------------------------------ ARTIFACT DEPLOYMENT ------------------------------------------------
Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/utils/Debug
at weblogic.Deployer.(Deployer.java:23)
Caused by: java.lang.ClassNotFoundException: weblogic.utils.Debug
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)
... 1 more
========================
Building in workspace /opt/software/jenkins/workspace/WLS-Plugin_test
[WeblogicDeploymentPlugin] - Loading JDK 'system' ...
[WeblogicDeploymentPlugin] - Checking if JDK 'system' exists on node () ...
[WeblogicDeploymentPlugin] - Pay attention to JDK version
compatibility with WebLogic Deployer API (see Oracle documentation).
[WeblogicDeploymentPlugin] - The JDK /software/bea/java/jdk1.8.0_112/jre will be used.
[WeblogicDeploymentPlugin] - Retrieving artifacts recorded [filtered resources on logenquiry-web-1.0-SNAPSHOT.war]...
[WeblogicDeploymentPlugin] - 3 files found under directory /opt/software/jenkins/workspace/eServe-Deploy
[WeblogicDeploymentPlugin] - the following resource recorded /opt/software/jenkins/workspace/eServe-Deploy/logenquiry-web-1.0-SNAPSHOT.war is eligible.
[WeblogicDeploymentPlugin] - the following resource ['/opt/software/jenkins/workspace/eServe-Deploy/wls-plugin.xml'] doesn't match logenquiry-web-1.0-SNAPSHOT.war
[WeblogicDeploymentPlugin] - the following resource ['/opt/software/jenkins/workspace/eServe-Deploy/eServe_EC.properties'] doesn't match logenquiry-web-1.0-SNAPSHOT.war
[WeblogicDeploymentPlugin] - Deploying the artifact on the following target : (name=managed1_eservewlst01) (host=weblogic.admin.server.host) (port=weblogic.admin.server.port)
[WeblogicDeploymentPlugin] - Undeploying artifact ...
[WeblogicDeploymentPlugin] - Artifact undeployed successfully.
[WeblogicDeploymentPlugin] - Deploying artifact ...
java.lang.RuntimeException: task completed abnormally (exit code = 1). Check your Weblogic Deployment logs.
at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.deploy(DeploymentTaskServiceImpl.java:248)
at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java:178)
at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform(WeblogicDeploymentPlugin.java:303)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:736)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:682)
at hudson.model.Build$BuildExecution.post2(Build.java:186)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:627)
at hudson.model.Run.execute(Run.java:1762)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:419)
ERROR: [WeblogicDeploymentPlugin] - Failed to deploy. Check your Weblogic deployment logs.
[INFO] ------------------------------------------------------------------------
[INFO] DEPLOYMENT FAILURE
[INFO] ------------------------------------------------------------------------
Build step 'Deploy the artifact to any WebLogic environments' changed build result to FAILURE
Finished: FAILURE
Hi,
Did you try to execute java command outside of jenkins (e.g /my/jdk/bin/java -cp /path/to/weblogic.jar weblogic.Deployer ....)? Is the jdk compatible wirth your weblogic.jar version ?
Hello...
I've tried that as well but same error.
As per documentation of weblogic I see weblogic 12.x is compatible with JDK8.
You suspect mostly it might be due to in-compatibility of jdk with weblogic?
Hi,
If the command '/my/jdk/bin/java -cp /path/to/weblogic.jar weblogic.Deployer ....' failed with a jdk8 I guess the issue comes from the jdk version. Did you try the same command with jdk7/6 and send me the output?
Tell me if you want a detailed command.
Another thing. What is the size of your weblogic.jar ?
Regards,
HI..
I've installed JAVA 8 only in support of latest Jenkins stable version as per documentation during installation. Please share detailed command or notes I'll give a try on other servers where I have Java6.
weblogic.jar size is 8K
wlthint3client.jar size is 7.2M
Hi nagesh
Sorry for my late response. A user of the plugin suggests :
-
-
-
- WORK AROUND for WebLogic 12.2.x ****
-
-
Just generate and use a wlfullclient-10.3.6.jar, with that I can deploy without any problem onto our WebLogic Server Version: 12.2.1.1.0.
You can try this.
Could someone please update if there is any problem with the configurations I made for this job?
It's been 2 days, I didn't any comment yet on this issue.