title: Jenkins and Jira Integration
body: <p>Hi I will try to integrate jenkins and jira, but I will not use a jira plugin for jenkins I need to do this integration with groovy.</p>
  
  <p>But when I try to execute a groovy script in a myhost/jenkins/script or in a build step "Execute System Groovy Script" I get the same error:</p>
  
  <p>"FATAL: loader constraint violation: loader (instance of java/net/URLClassLoader) previously initiated loading for a different type with name "javax/xml/namespace/QName"
  java.lang.LinkageError: loader constraint violation: loader (instance of java/net/URLClassLoader) previously initiated loading for a different type with name "javax/xml/namespace/QName"</p>
  
  <p>My code is simple:</p>
  
  <pre><code>import com.atlassian.jira.rpc.soap.client.*
  def serviceLocator = new JiraSoapServiceServiceLocator()
  </code></pre>
  
  <p>The error is because there is more than one jar with the same class in the classpath of the JVM Jenkins? But how to know which jar? Can I change the classpath to remove this jar?</p>