title: java class using jaxb api failing in jira with : Provider com.sun.xml.bind.v2.ContextFactory not found
body: <p>I am writing a plugin for Jira which involves parsing of XML documents. I am using JAXB to do so (XML to pojos and vice versa)
  So have a class which generates XML from pojos using JAXB. it looks like...</p>
  
  <pre><code>import javax.xml.bind.*;
  
  Class Parser {
    public void m1() {
      ...
      // code which uses classes in javax.xml.bind.*
    }
  
    public static void main(String args[]){
     Parser p=new Parser();
     p.m1();
  
    } 
  }
  </code></pre>
  
  <p>The mentioned packages will come with JDK distribution (rt.jar). so i haven't relayed on anything else to run the class.</p>
  
  <p>when i launch it from command line using 'java' it's working properly. but, when i package
  it as a jar and put it as plugin in Jira it's failing with the following error</p>
  
  <pre><code>javax.xml.bind.JAXBException: Provider com.sun.xml.bind.v2.ContextFactory not found
   - with linked exception:
  [java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory]
          at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:152)
          at javax.xml.bind.ContextFinder.find(ContextFinder.java:299)
          at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
          at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
  </code></pre>
  
  <p>This is on the same machine. only difference i could see is unlike launching from command line, when i deployed it in Jira, it's not calling the main() but m1() by instantiating.</p>
  
  <p>I am wondering what is happening ! it's on the same machine. i do not know how Jira launches the application (as i am launching from command line).</p>