axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <aaron.stro...@rsa.com>
Subject RE: JDOM XPath does not work with Axis
Date Tue, 22 May 2012 21:02:00 GMT
My application uses JDOM. I've asked the list hoping someone had the same problem and was more
successful than me finding a solution. I suspect that at the problem is related to the way
jaxen is loaded.

-----Original Message-----
From: Andreas Veithen [mailto:andreas.veithen@gmail.com] 
Sent: Tuesday, 22 May, 2012 15:41
To: java-user@axis.apache.org
Subject: Re: JDOM XPath does not work with Axis

Axis2 doesn't use JDOM, so it is not clear how your question is related to Axis2.

Andreas

On Tue, May 22, 2012 at 5:41 PM,  <aaron.stromas@rsa.com> wrote:
> Hi,
>
>
>
> I tried both JDOM and now JDOM2.
>
>
>
> For JDOM2,
>
> XPathFactory xpfac = XPathFactory.instance();
>
> XPathExpression xp = xpfac.compile("//foo/bar");
>
>
>
> The xp is null.
>
>
>
> For JDOM,
>
> XPath xp = XPath.newInstance("//foo/bar");
>
> The xp is null.
>
>
>
> Both work in the simple java application.
>
>
>
> I tried to putting the JDOM jar in webapps/axis2/WEB-INF/lib along 
> with Jaxen - doesn't do a thing.
>
> Any ideas?
>
>
>
> Best regards,
>
>
>
> -a

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



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


Mime
View raw message