jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "vikas bhatia" <vik...@gmail.com>
Subject unknown prefix error
Date Tue, 16 May 2006 17:25:33 GMT
I am trying to access a remote repository using rmi.

String statement = "/jcr:root//element(*, nt:file)[@myns:title=\"
DocTest.java\"]";

where myns is the registered namespace added to the document when it was
added to the repository.

on executing this query I get a

javax.jcr.query.InvalidQueryException: Unknown prefix: myns:title
    at org.apache.jackrabbit.rmi.server.ServerObject.getRepositoryException(
ServerObject.java:105)
    at org.apache.jackrabbit.rmi.server.ServerQueryManager.createQuery(
ServerQueryManager.java:66)


Any ideas what may be going wrong?


thanks.

vikas.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message