java class using jaxb api failing in jira with : Provider com.sun.xml.bind.v2.ContextFactory not found

后端 未结 3 1042
北海茫月
北海茫月 2020-12-11 06:58

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

3条回答
  •  春和景丽
    2020-12-11 07:03

    The com.sun.xml.bind package is part of the JAXB RI (http://jaxb.dev.java.net/), so you probably have that on your classpath somewhere.

    Java6 has it's own version of JAXB included, in the com.sun.xml.internal.bind package, so you don't usually need the RI in Java6 .

    The RI can made made to work with Java6 , but it's uphill battle, and usually ends up with this sort of problem.

提交回复
热议问题