On Wed, Feb 15, 2012 at 1:05 PM, <fadila.mumba...@uniserv.com> wrote:

> 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.
>

 If you use .aar archive format then you have to place your 3rd party jars
inside the 'lib" directory not WEB-INF/lib.

e.g - yourServiceArchive.aar/lib/dom4j.jar. etc.

Also if you want you can enable Axis2 child first class loading [1].

[1] -
http://amilachinthaka.blogspot.com/2009/05/axis2-child-first-class-loading.html

Thanks !



>
> 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
>
>


-- 
Sagara Gunathunga

Blog      - http://ssagara.blogspot.com
Web      - http://people.apache.org/~sagara/
LinkedIn - http://www.linkedin.com/in/ssagara

Reply via email to