Hello,

I have one of my dumb questions: How do I initially run sm:chmod(xs:anyURI("/db"), 'rwxrwxr-x') so I can get into eXist 2.0.x?

I checkout current rev (15955) of eXist 2.0 from SVN and rebuild successfully. Then run in apache-tomcat-7.0.11. I run the java admin client and set an admin password successfully. The when I try to visit:

http://localhost:51173/exist/admin/admin.xql

I receive:

HTTP Status 500 -


type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: An error occurred: null
	org.exist.http.urlrewrite.XQueryURLRewrite.service(XQueryURLRewrite.java:376)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

root cause

java.lang.NullPointerException
	java.io.File.<init>(File.java:262)
	org.apache.naming.resources.FileDirContext.doGetRealPath(FileDirContext.java:184)
	org.apache.naming.resources.BaseDirContext.getRealPath(BaseDirContext.java:412)
	org.apache.catalina.connector.Request.getRealPath(Request.java:1242)
	org.apache.catalina.connector.RequestFacade.getRealPath(RequestFacade.java:629)
	javax.servlet.ServletRequestWrapper.getRealPath(ServletRequestWrapper.java:297)
	javax.servlet.ServletRequestWrapper.getRealPath(ServletRequestWrapper.java:297)
	javax.servlet.ServletRequestWrapper.getRealPath(ServletRequestWrapper.java:297)
	org.exist.http.urlrewrite.XQueryURLRewrite$RequestWrapper.getPathTranslated(XQueryURLRewrite.java:1149)
	org.exist.http.servlets.XQueryServlet.process(XQueryServlet.java:243)
	org.exist.http.servlets.XQueryServlet.doGet(XQueryServlet.java:168)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
	org.exist.http.urlrewrite.Forward.doRewrite(Forward.java:47)
	org.exist.http.urlrewrite.XQueryURLRewrite.doRewrite(XQueryURLRewrite.java:552)
	org.exist.http.urlrewrite.XQueryURLRewrite.service(XQueryURLRewrite.java:336)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

note The full stack trace of the root cause is available in the Apache Tomcat/7.0.11 logs.


Apache Tomcat/7.0.11

It appears from previous threads that somehow I need to:

sm:chmod(xs:anyURI("/db"), 'rwxrwxr-x')

but I don't know how to do this. I can't do it from the java client command line as far as I can tell (I don't seem to be able to use "chmod" either). I can't do it from eXide since:

http://localhost:51173/exist/eXide/index.html

gives the same error as above.

I know there's a simple answer but I don't see it.

Thanks,
Chris