I am getting a ClassDefNotFoundException within an ejb-application file. I think this is caused by issue JBAS-1970 (see the issue tracker).
The exception occurs when I make a call to a XPath command (SelectSingleNode). The dom4j and jaxen jars from dom4j are packaged in the ejb-jar file.
The application (ear-file) is running non-scoped (w/ classloader), so what happens is that the org.dom4j. classes from the top-classloader are used. This is dom4j-1.6jboss version from which the XPath classes are stripped accorging to JBAS-1970. (located in JBOSS_HOME/lib) and not the org.dom4j classes packaged within the application. The creation and reading of xml-documents is no problem.
So the question is: can I keep on running in a non-scoped application and use XPath queries from dom4j?
I solved this by accessing the xpath jaxen files directly. So instead of:
Node n1 = node.selectSingleNode(...);
XPath xpath = Dom4jXPath(...);
Node n1 = xpath.selectSingleNode(node);
So, I think this JBAS-1970 is not the best improvement...