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

Unable to launch weblogic Deployer plugin after installation

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Labels:
    • Environment:
      Jenkins version :Jenkins ver. 1.549
      Deployer weblogic plugin : 3.2
    • Similar Issues:

      Description

      I have installed Deployer Weblogic plugin 3.2 for Deploying ear/war to weblogic server.
      After installation when I access it from Post build options, I am facing the below issue.
      Can anyone please suggest what will be the solution for this.

      Apr 17, 2015 5:37:22 AM hudson.widgets.RenderOnDemandClosure$1 generateResponse
      WARNING: Failed to evaluate the template closure
      org.apache.commons.jelly.JellyTagException: jar:file:/snmanc/.jenkins/plugins/weblogic-deployer-plugin/WEB-INF/lib/classes.jar!/org/jenkinsci/plugins/deploy/weblogic/WeblogicDeploymentPlugin/config.jelly:17:138: <j:invokeStatic> Could not load class: org.jenkinsci.plugins.deploy.weblogic.jdk.JdkToolService. Reason: java.lang.NoSuchMethodException: org.jenkinsci.plugins.deploy.weblogic.jdk.JdkToolService.getJDKHomeByName(java.lang.Object)
      at org.apache.commons.jelly.tags.core.InvokeStaticTag.createLoadClassFailedException(InvokeStaticTag.java:177)
      at org.apache.commons.jelly.tags.core.InvokeStaticTag.doTag(InvokeStaticTag.java:139)
      at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
      at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
      at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
      at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:81)
      at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:147)
      at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
      at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99)
      at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
      at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
      at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
      at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161)
      at org.apache.commons.jelly.tags.core.OtherwiseTag.doTag(OtherwiseTag.java:41)
      at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
      at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
      at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161)
      at org.apache.commons.jelly.tags.core.ChooseTag.doTag(ChooseTag.java:38)
      at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
      at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
      at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120)
      at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99)
      at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:63)
      at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:53)
      at hudson.widgets.RenderOnDemandClosure$1.generateResponse(RenderOnDemandClosure.java:99)
      at org.kohsuke.stapler.HttpResponseRenderer$Default.handleHttpResponse(HttpResponseRenderer.java:110)
      at org.kohsuke.stapler.HttpResponseRenderer$Default.generateResponse(HttpResponseRenderer.java:64)
      at org.kohsuke.stapler.Function.renderResponse(Function.java:113)
      at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:98)
      at org.kohsuke.stapler.MetaClass$JavaScriptProxyMethodDispatcher.doDispatch(MetaClass.java:465)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
      at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:390)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:795)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:631)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:186)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:64)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
      Caused by: java.lang.NoSuchMethodException: org.jenkinsci.plugins.deploy.weblogic.jdk.JdkToolService.getJDKHomeByName(java.lang.Object)
      at java.lang.Class.getMethod(Class.java:1607)
      at org.apache.commons.jelly.tags.core.InvokeStaticTag.doTag(InvokeStaticTag.java:124)
      ... 83 more

        Attachments

          Activity

          Hide
          raphc Raphael CHAUMIER added a comment - - edited

          Hi,

          Did you select a jdk or add a jdk in the global configuration before creating your job?

          Show
          raphc Raphael CHAUMIER added a comment - - edited Hi, Did you select a jdk or add a jdk in the global configuration before creating your job?
          Hide
          raghuveer_karumuri Raghuveer Karumuri added a comment -

          Hi ,

          Yes I have added jdk in global configuration as

          JAVA6 - /apps/opt/jdk160_39_64/

          Show
          raghuveer_karumuri Raghuveer Karumuri added a comment - Hi , Yes I have added jdk in global configuration as JAVA6 - /apps/opt/jdk160_39_64/
          Hide
          raghuveer_karumuri Raghuveer Karumuri added a comment -

          Also.. it is asking Configuration File
          what should I give for this

          Show
          raghuveer_karumuri Raghuveer Karumuri added a comment - Also.. it is asking Configuration File what should I give for this
          Hide
          raghuveer_karumuri Raghuveer Karumuri added a comment - - edited

          Getting below issue while loading the configuration file..

          Apr 21, 2015 10:37:01 AM org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin$WeblogicDeploymentPluginDescriptor loadWeblogicEnvironments
          SEVERE: xs:schema
          com.thoughtworks.xstream.mapper.CannotResolveClassException: xs:schema
          at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:56)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:55)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:79)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.java:74)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at hudson.util.XStream2$CompatibilityMapper.realClass(XStream2.java:256)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at hudson.util.xstream.MapperDelegate.realClass(MapperDelegate.java:43)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:49)
          at com.thoughtworks.xstream.core.util.HierarchicalStreams.readClassType(HierarchicalStreams.java:29)
          at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:133)
          at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
          at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1061)
          at hudson.util.XStream2.unmarshal(XStream2.java:109)
          at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1045)
          at com.thoughtworks.xstream.XStream.fromXML(XStream.java:925)
          at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin$WeblogicDeploymentPluginDescriptor.loadWeblogicEnvironments(WeblogicDeploymentPlugin.java:558)
          at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin$WeblogicDeploymentPluginDescriptor.configure(WeblogicDeploymentPlugin.java:527)
          at jenkins.model.Jenkins.configureDescriptor(Jenkins.java:2832)
          at jenkins.model.Jenkins.doConfigSubmit(Jenkins.java:2795)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
          at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
          at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
          at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:120)
          at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
          at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
          at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
          at org.kohsuke.stapler.Stapler.invoke(Stapler.java:631)
          at org.kohsuke.stapler.Stapler.service(Stapler.java:225)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
          at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
          at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
          at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
          at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
          at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
          at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96)
          at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88)
          at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
          at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
          at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
          at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
          at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
          at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
          at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
          at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
          at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
          at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
          at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
          at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
          at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
          at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
          at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174)
          at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
          at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:64)
          at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
          at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
          at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
          at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
          at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
          at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
          at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
          at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46)
          at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
          at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
          at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
          at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
          at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
          at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
          at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
          at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
          at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
          at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
          at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
          at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
          <Apr 21, 2015 10:37:01 AM GMT+00:00> <Error> <ServletContext-/jenkins> <BEA-000000> <Error while serving http://sbhomda11.vzbi.com:8951/jenkins/configSubmit
          java.lang.reflect.InvocationTargetException
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
          Truncated. see log file for complete stacktrace
          Caused By: java.lang.RuntimeException: Unable to load file
          at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin$WeblogicDeploymentPluginDescriptor.loadWeblogicEnvironments(WeblogicDeploymentPlugin.java:566)
          at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin$WeblogicDeploymentPluginDescriptor.configure(WeblogicDeploymentPlugin.java:527)
          at jenkins.model.Jenkins.configureDescriptor(Jenkins.java:2832)
          at jenkins.model.Jenkins.doConfigSubmit(Jenkins.java:2795)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          Truncated. see log file for complete stacktrace
          Caused By: com.thoughtworks.xstream.mapper.CannotResolveClassException: xs:schema
          at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:56)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:55)
          at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)
          at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88)
          Truncated. see log file for complete stacktrace

          path : /snmanc/.jenkins/plugins/weblogic-deployer-plugin/config/plugin-configuration.xsd

          content :
          <?xml version="1.0" encoding="UTF-8"?>
          <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
          elementFormDefault="unqualified" xmlns="http://org.jenkinsci.plugins/WeblogicDeploymentPlugin"
          targetNamespace="http://org.jenkinsci.plugins/WeblogicDeploymentPlugin">

          <xs:element name="config">
          <xs:complexType>
          <xs:sequence>
          <xs:element name="weblogic-targets" minOccurs="0" maxOccurs="1" type="type_weblogic-targets"/>
          </xs:sequence>
          </xs:complexType>
          </xs:element>

          <xs:complexType name="type_weblogic-targets">
          <xs:sequence>
          <xs:element name="weblogic-target" minOccurs="0" maxOccurs="unbounded" type="type_target"/>
          </xs:sequence>
          </xs:complexType>

          <xs:complexType name="type_target">
          <xs:all>
          <xs:element name="name" type="xs:string" minOccurs="1" maxOccurs="1"/>
          <xs:element name="host" type="xs:string" minOccurs="1" maxOccurs="1"/>
          <xs:element name="port" type="xs:int" minOccurs="1" maxOccurs="1"/>
          <xs:element name="login" type="xs:string" minOccurs="1" maxOccurs="1"/>
          <xs:element name="password" type="xs:string" minOccurs="0" maxOccurs="1"/>
          <xs:element name="userconfigfile" type="xs:string" minOccurs="0" maxOccurs="1"/>
          <xs:element name="userkeyfile" type="xs:string" minOccurs="0" maxOccurs="1"/>
          <xs:element name="authMode" type="authMode" minOccurs="0" maxOccurs="1" />
          <xs:element name="ftpHost" type="xs:string" minOccurs="0" maxOccurs="1"/>
          <xs:element name="ftpUser" type="xs:string" minOccurs="0" maxOccurs="1"/>
          <xs:element name="ftpPassowrd" type="xs:string" minOccurs="0" maxOccurs="1"/>
          <xs:element name="remoteDir" type="xs:string" minOccurs="0" maxOccurs="1"/>
          </xs:all>
          </xs:complexType>

          <xs:simpleType name="authMode">
          <xs:restriction base="xs:string">
          <xs:enumeration value="BY_LOGIN"/>
          <xs:enumeration value="BY_KEY"/>
          </xs:restriction>
          </xs:simpleType>

          </xs:schema>

          Show
          raghuveer_karumuri Raghuveer Karumuri added a comment - - edited Getting below issue while loading the configuration file.. Apr 21, 2015 10:37:01 AM org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin$WeblogicDeploymentPluginDescriptor loadWeblogicEnvironments SEVERE: xs:schema com.thoughtworks.xstream.mapper.CannotResolveClassException: xs:schema at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:56) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:55) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:79) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.java:74) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at hudson.util.XStream2$CompatibilityMapper.realClass(XStream2.java:256) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at hudson.util.xstream.MapperDelegate.realClass(MapperDelegate.java:43) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:49) at com.thoughtworks.xstream.core.util.HierarchicalStreams.readClassType(HierarchicalStreams.java:29) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:133) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1061) at hudson.util.XStream2.unmarshal(XStream2.java:109) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1045) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:925) at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin$WeblogicDeploymentPluginDescriptor.loadWeblogicEnvironments(WeblogicDeploymentPlugin.java:558) at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin$WeblogicDeploymentPluginDescriptor.configure(WeblogicDeploymentPlugin.java:527) at jenkins.model.Jenkins.configureDescriptor(Jenkins.java:2832) at jenkins.model.Jenkins.doConfigSubmit(Jenkins.java:2795) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:120) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:631) at org.kohsuke.stapler.Stapler.service(Stapler.java:225) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:64) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256) at weblogic.work.ExecuteThread.run(ExecuteThread.java:221) <Apr 21, 2015 10:37:01 AM GMT+00:00> <Error> <ServletContext-/jenkins> <BEA-000000> <Error while serving http://sbhomda11.vzbi.com:8951/jenkins/configSubmit java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298) Truncated. see log file for complete stacktrace Caused By: java.lang.RuntimeException: Unable to load file at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin$WeblogicDeploymentPluginDescriptor.loadWeblogicEnvironments(WeblogicDeploymentPlugin.java:566) at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin$WeblogicDeploymentPluginDescriptor.configure(WeblogicDeploymentPlugin.java:527) at jenkins.model.Jenkins.configureDescriptor(Jenkins.java:2832) at jenkins.model.Jenkins.doConfigSubmit(Jenkins.java:2795) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) Truncated. see log file for complete stacktrace Caused By: com.thoughtworks.xstream.mapper.CannotResolveClassException: xs:schema at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:56) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:55) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88) Truncated. see log file for complete stacktrace path : /snmanc/.jenkins/plugins/weblogic-deployer-plugin/config/plugin-configuration.xsd content : <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified" xmlns="http://org.jenkinsci.plugins/WeblogicDeploymentPlugin" targetNamespace="http://org.jenkinsci.plugins/WeblogicDeploymentPlugin"> <xs:element name="config"> <xs:complexType> <xs:sequence> <xs:element name="weblogic-targets" minOccurs="0" maxOccurs="1" type="type_weblogic-targets"/> </xs:sequence> </xs:complexType> </xs:element> <xs:complexType name="type_weblogic-targets"> <xs:sequence> <xs:element name="weblogic-target" minOccurs="0" maxOccurs="unbounded" type="type_target"/> </xs:sequence> </xs:complexType> <xs:complexType name="type_target"> <xs:all> <xs:element name="name" type="xs:string" minOccurs="1" maxOccurs="1"/> <xs:element name="host" type="xs:string" minOccurs="1" maxOccurs="1"/> <xs:element name="port" type="xs:int" minOccurs="1" maxOccurs="1"/> <xs:element name="login" type="xs:string" minOccurs="1" maxOccurs="1"/> <xs:element name="password" type="xs:string" minOccurs="0" maxOccurs="1"/> <xs:element name="userconfigfile" type="xs:string" minOccurs="0" maxOccurs="1"/> <xs:element name="userkeyfile" type="xs:string" minOccurs="0" maxOccurs="1"/> <xs:element name="authMode" type="authMode" minOccurs="0" maxOccurs="1" /> <xs:element name="ftpHost" type="xs:string" minOccurs="0" maxOccurs="1"/> <xs:element name="ftpUser" type="xs:string" minOccurs="0" maxOccurs="1"/> <xs:element name="ftpPassowrd" type="xs:string" minOccurs="0" maxOccurs="1"/> <xs:element name="remoteDir" type="xs:string" minOccurs="0" maxOccurs="1"/> </xs:all> </xs:complexType> <xs:simpleType name="authMode"> <xs:restriction base="xs:string"> <xs:enumeration value="BY_LOGIN"/> <xs:enumeration value="BY_KEY"/> </xs:restriction> </xs:simpleType> </xs:schema>
          Hide
          raphc Raphael CHAUMIER added a comment -

          Hi,

          The file provided above is the schema used to describe the configuration file structure.

          An example of configuration file is done by the wiki :

          <pre>
          <?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://org.jenkinsci.plugins/WeblogicDeploymentPlugin plugin-configuration.xsd">
          <weblogic-targets>
          <weblogic-target>
          <name>my_managed_server1</name>
          <host>weblogic.admin.server.host</host>
          <port>weblogic.admin.server.port</port>
          <login>weblogic.admin.server.login</login>
          <password>weblogic.admin.server.password</password>
          <authMode>BY_KEY</authMode>
          <userconfigfile>P:\Documents\perso\dev\wls-deploy-plugin\wls_userConfig.properties</userconfigfile>
          <userkeyfile>P:\Documents\perso\dev\wls-deploy-plugin\wls_userConfig.key</userkeyfile>
          </weblogic-target>

          .....
          </pre>

          You can refer to the documentation : https://wiki.jenkins-ci.org/display/JENKINS/WebLogic+Deployer+Plugin

          Show
          raphc Raphael CHAUMIER added a comment - Hi, The file provided above is the schema used to describe the configuration file structure. An example of configuration file is done by the wiki : <pre> <?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://org.jenkinsci.plugins/WeblogicDeploymentPlugin plugin-configuration.xsd"> <weblogic-targets> <weblogic-target> <name>my_managed_server1</name> <host> weblogic.admin.server.host </host> <port> weblogic.admin.server.port </port> <login> weblogic.admin.server.login </login> <password> weblogic.admin.server.password </password> <authMode>BY_KEY</authMode> <userconfigfile>P:\Documents\perso\dev\wls-deploy-plugin\wls_userConfig.properties</userconfigfile> <userkeyfile>P:\Documents\perso\dev\wls-deploy-plugin\wls_userConfig.key</userkeyfile> </weblogic-target> ..... </pre> You can refer to the documentation : https://wiki.jenkins-ci.org/display/JENKINS/WebLogic+Deployer+Plugin
          Hide
          raphc Raphael CHAUMIER added a comment -

          Having no news for a while I guess you fixed this issue. I'm closing the ticket

          Show
          raphc Raphael CHAUMIER added a comment - Having no news for a while I guess you fixed this issue. I'm closing the ticket

            People

            • Assignee:
              raphc Raphael CHAUMIER
              Reporter:
              raghuveer_karumuri Raghuveer Karumuri
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: