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)

So I supposed, there is some class loading problem, and tried following:

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?

I would prefer the first solution: each webservice aar-file contains all
reqeuired jar-files and those are found first.

Kind regrads,

Fadila




---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org

Reply via email to