I'm not aware of the SPI contribution, I've just been working with what is available within the 1.1 Jackrabbit release. I haven't taken a look, but would the SPI contribution work with MS clients as well (VB, VBA, .NET)?
Based on what you provided back, I did make some changes that seemed to have shown progress. *SearchMethod smethod = new SearchMethod(mypath,query, javax.jcr.query.Query.XPATH); And on the query itself removed the day.com namespace: String schreibquery="<D:searchrequest xmlns:D=\"DAV:\">" + "<xpath>//element(*,rep:root)</xpath>" + "</D:searchrequest>"; String modquery="<D:searchrequest xmlns:D=\"DAV:\">" + "<xpath>//sv:[EMAIL PROTECTED]:name='jcr:root']</xpath>" + "</D:searchrequest>"; The new error is: *"Number of location steps must be > 0" -D > -----Original Message----- > From: Angela Schreiber [mailto:[EMAIL PROTECTED] > Sent: Friday, December 01, 2006 4:31 AM > To: [email protected] > Subject: Re: Webdav SearchMethod and xpath query > > hi darren > > there exists a example in the SPI contribution, that uses the > search-functionality exposed by the SearchResourceImpl in > o.a.j.webdav.jcr.SearchResourceImpl.java (thus the jcr > remoting server implementation). and this one works for SQL > and XPath queries. > > do you have your own implementation of the SearchResource? > and: are you sure, your implementation understands that > > {http://www.day.com/jcr/webdav/1.0}xpath > > must be converted to the javax.jcr.query.Query.XPATH > constant, in order to be able to build a valid Query object? > > regards > angela >
