Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-3413

Cannot use JDOM within Axis2 (java.lang.NoClassDefFoundError: org/jdom/Parent)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.3
    • Fix Version/s: 1.4
    • Component/s: deployment
    • Labels:
      None

      Description

      Axis2 is shipped with a vanilla jaxen-1.1.1.jar. If one will use JDOM inside his WebService Implementation, he will get a java.lang.NoClassDefFoundError: org/jdom/Parent Exception. Cause JDOM comes with a slightly modified version of jaxen jar. But the vanilla jar is earlier in the classpath so this version is taken.

      The solution is to remove the vanilla jaxen jar and put the ones shipped with jdom into his aar

      There was a question on the mailing list about this earlier

      http://www.nabble.com/I-have-fixed-the-some-bugs-in-axis2-and-attaching-updates-to9734382.html#a9735592

      The solution was described here:

      http://cvs.jdom.org/pipermail/jdom-interest/2005-May/014821.html

      Why is the jaxen.jar in the axis2/lib directory? who needs it?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              lischke Stefan Lischke
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: