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

weblogic-plugin-deploy java.lang.NoSuchMethodError: hudson.EnvVars.get(

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • None
    • weblogic-plugin2.9.1,jenkins(1.4.7),jdk1.6,linux,ant1.8

      i think my configure.xml is correct

      <config xmlns="http://org.jenkinsci.plugins/WeblogicDeploymentPlugin"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://org.jenkinsci.plugins/WeblogicDeploymentPlugin plugin-configuration.xsd">
      <weblogic-targets>
      <weblogic-target>
      <name>AdminServer</name>
      <host>ip</host>
      <port>8080</port>
      <login>weblogic</login>
      <password>weblogic</password>
      <authMode>BY_LOGIN</authMode>
      </weblogic-target>
      </weblogic-targets>
      </config>

      the job's configure like photo
      when i excute the job,it builded failed,
      the console message following:

      15:15:41 [WeblogicDeploymentPlugin] - the following file recorded ICPlatform.war is eligible.
      15:15:41 [WeblogicDeploymentPlugin] - Deploying the artifact on the following target : (name=AdminServer) (host=10.100.31.65) (port=8080)
      15:15:41 java.lang.NoSuchMethodError: hudson.EnvVars.get(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
      15:15:41 at org.jenkinsci.plugins.deploy.weblogic.util.ParameterValueResolver.resolveEnvVar(ParameterValueResolver.java:33)
      15:15:41 at org.jenkinsci.plugins.deploy.weblogic.deployer.WebLogicDeployer.getWebLogicCommandLine(WebLogicDeployer.java:75)
      15:15:41 at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.undeploy(DeploymentTaskServiceImpl.java:281)
      15:15:41 at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java:181)
      15:15:41 at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform(WeblogicDeploymentPlugin.java:236)
      15:15:41 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      15:15:41 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717)
      15:15:41 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692)
      15:15:41 at hudson.model.Build$BuildExecution.post2(Build.java:183)
      15:15:41 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639)
      15:15:41 at hudson.model.Run.execute(Run.java:1513)
      15:15:41 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      15:15:41 at hudson.model.ResourceController.execute(ResourceController.java:88)
      15:15:41 at hudson.model.Executor.run(Executor.java:236)
      15:15:41 ERROR: [WeblogicDeploymentPlugin] - Failed to deploy.

            raphc Raphael CHAUMIER
            janice janice zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: