YOU CAN RENAME THE JAR FILE starting with aa, then this jar will be loaded first
Dipesh Garg -----Original Message----- From: fadila.mumba...@uniserv.com [mailto:fadila.mumba...@uniserv.com] Sent: Wednesday, February 15, 2012 1:06 PM To: axis-u...@ws.apache.org Subject: Axis2 and class loading Hi, we have Tomcat and axis2 (1.6) running. One of our web services needs jaxen.jar and dom4j.jar. The web service archive file contains these jar files within the service's WEB-INF/lib. Nevertheless by executing the method the web service throws the exeception org.dom4j.InvalidXPathException: Invalid XPath expression: 'myPath'. Caused by: org/dom4j/Element .. (The same method runninmg as a standalone application does function) The real problem is, the dom4j classes are not found. I've copied the dom4j.jar into axis2 WEB-INF/lib and it does function. Now my question: - do I have any possibility to control the axis2 classloader, so my required jar-file (dom4j) would be found (at the right time). - is it an axis2 issue at all, or is it the tomcat class loader? - is there any negative side-effect if I solve the problem by copying the dom4j into the axis2 WEB-INF/lib? Thank you, Fadila --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org For additional commands, e-mail: java-user-h...@axis.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org For additional commands, e-mail: java-user-h...@axis.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org For additional commands, e-mail: java-user-h...@axis.apache.org