DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42460>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42460

           Summary: java.lang.NoClassDefFoundError: org/dom4j/Branch
           Product: Tomcat 5
           Version: 5.0.23
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P2
         Component: Unknown
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


There appears to be a class loader problem. I use the same jaxen and dom4j 
version 1.6.1 jar file in a standalone application and it works fine. I 
verified that the class, Branch, does exist in the jar file. However, using 
the same jaxen and dom4j jar fiels in either WEB-INF/lib or common/lib 
generates the following error when loading a servlet that uses the jaxen/dom4j 
libraries:

java.lang.NoClassDefFoundError: org/dom4j/Branch at 
org.jaxen.dom4j.DocumentNavigator.getChildAxisIterator
(DocumentNavigator.java:211) at org.jaxen.expr.iter.IterableChildAxis.iterator
(IterableChildAxis.java:82) at org.jaxen.expr.DefaultStep.axisIterator
(DefaultStep.java:139) at org.jaxen.expr.DefaultLocationPath.evaluate
(DefaultLocationPath.java:188) at org.jaxen.expr.DefaultXPathExpr.asList
(DefaultXPathExpr.java:107) at org.jaxen.BaseXPath.selectNodesForContext
(BaseXPath.java:716) at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:239) at 
org.dom4j.xpath.DefaultXPath.selectNodes(DefaultXPath.java:132) at 
org.dom4j.tree.AbstractNode.selectNodes(AbstractNode.java:166) at 
javarex.beans.servlet.BaseForm.getForm_field_properties_as_array
(BaseForm.java:945)
...

I also verified that the problem of not being able to load the class exists 
with earlier versions of dom4j and with earlier versions of Tomcat. Are there 
other libraries in Tomcat that have a different version of jaxen that 
conflicts with the one I supply with the servlet?

This issue has me at stand still.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to