jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting" <jukka.zitt...@gmail.com>
Subject Re: ClassCastException with AndQueryNode error
Date Thu, 17 May 2007 08:14:51 GMT
Hi,

On 5/17/07, Phillip Rhodes <spamsucks@rhoderunner.com> wrote:
> I am trying to run a xpath "and" query which errors out with a
> java.lang.ClassCastException: org.apache.jackrabbit.core.query.AndQueryNode
>
> Here is my xpath query:
> /jcr:root/stitchesDemo//*[@CONTENT_TYPE = 'ImageContent'] and
> /jcr:root/stitchesDemo//*[jcr:contains(.,'test')]

What are you trying to search for? I guess you are looking for the
following query:

    /jcr:root/stichesDemo//*[@CONTENT_TYPE='ImageContent' and
jcr:contains(.,'test')]

BR,

Jukka Zitting

Mime
View raw message