From: Chris T. <chr...@gm...> - 2012-03-01 08:09:30
|
Hello, I have committed rev 16004 which ports trunk fixes: 15956, 15959, 15963, 15964, 15973, for NPEs when running 2.0 under Tomcat 7 (on Mac OS/X - this does not seem to be a Windows specific issue.) The sm:chmod(xs:anyURI('/db'), 'rwxrwxr-x') does not seem to be needed as far as I can tell thus far. Regards, Chris On Mar 1, 2012, at 7:27 AM, Chris Tomlinson wrote: > Hello, > > Still no joy. Now I have run: > >> echo "sm:chmod(xs:anyURI('/db'), 'rwxrwxr-x')" | ./bin/client.sh -P SOMEPW -x > > > and in the exist.log see the following which looks plausible: > >> 2012-03-01 07:00:06,707 ["http-bio-51173"-exec-1] DEBUG (ConfigurationHelper.java [getExistHome]:55) - Got eXist home from broker: /usr/local/indium/2.0exist/tomcat/webapps/exist/WEB-INF >> 2012-03-01 07:00:06,707 ["http-bio-51173"-exec-1] INFO (Descriptor.java [<init>]:102) - Reading Descriptor from file /usr/local/indium/2.0exist/tomcat/webapps/exist/WEB-INF/descriptor.xml >> 2012-03-01 07:00:06,709 ["http-bio-51173"-exec-1] DEBUG (ConfigurationHelper.java [getExistHome]:55) - Got eXist home from broker: /usr/local/indium/2.0exist/tomcat/webapps/exist/WEB-INF >> 2012-03-01 07:00:06,709 ["http-bio-51173"-exec-1] DEBUG (ConfigurationHelper.java [getExistHome]:55) - Got eXist home from broker: /usr/local/indium/2.0exist/tomcat/webapps/exist/WEB-INF >> 2012-03-01 07:00:06,709 ["http-bio-51173"-exec-1] DEBUG (ConfigurationHelper.java [getExistHome]:55) - Got eXist home from broker: /usr/local/indium/2.0exist/tomcat/webapps/exist/WEB-INF >> 2012-03-01 07:00:06,709 ["http-bio-51173"-exec-1] DEBUG (ConfigurationHelper.java [getExistHome]:55) - Got eXist home from broker: /usr/local/indium/2.0exist/tomcat/webapps/exist/WEB-INF >> 2012-03-01 07:00:06,709 ["http-bio-51173"-exec-1] DEBUG (ConfigurationHelper.java [getExistHome]:55) - Got eXist home from broker: /usr/local/indium/2.0exist/tomcat/webapps/exist/WEB-INF >> 2012-03-01 07:00:06,709 ["http-bio-51173"-exec-1] DEBUG (ConfigurationHelper.java [getExistHome]:55) - Got eXist home from broker: /usr/local/indium/2.0exist/tomcat/webapps/exist/WEB-INF >> 2012-03-01 07:00:06,709 ["http-bio-51173"-exec-1] DEBUG (ConfigurationHelper.java [getExistHome]:55) - Got eXist home from broker: /usr/local/indium/2.0exist/tomcat/webapps/exist/WEB-INF >> 2012-03-01 07:00:06,709 ["http-bio-51173"-exec-1] DEBUG (ConfigurationHelper.java [getExistHome]:55) - Got eXist home from broker: /usr/local/indium/2.0exist/tomcat/webapps/exist/WEB-INF >> 2012-03-01 07:00:06,710 ["http-bio-51173"-exec-1] DEBUG (ConfigurationHelper.java [getExistHome]:55) - Got eXist home from broker: /usr/local/indium/2.0exist/tomcat/webapps/exist/WEB-INF >> 2012-03-01 07:00:06,710 ["http-bio-51173"-exec-1] DEBUG (ConfigurationHelper.java [getExistHome]:55) - Got eXist home from broker: /usr/local/indium/2.0exist/tomcat/webapps/exist/WEB-INF >> 2012-03-01 07:00:06,710 ["http-bio-51173"-exec-1] DEBUG (ConfigurationHelper.java [getExistHome]:55) - Got eXist home from broker: /usr/local/indium/2.0exist/tomcat/webapps/exist/WEB-INF >> 2012-03-01 07:00:06,710 ["http-bio-51173"-exec-1] DEBUG (ConfigurationHelper.java [getExistHome]:55) - Got eXist home from broker: /usr/local/indium/2.0exist/tomcat/webapps/exist/WEB-INF >> 2012-03-01 07:00:06,777 ["http-bio-51173"-exec-1] DEBUG (SecurityManagerImpl.java [authenticate]:419) - Authentication try for 'admin'. >> 2012-03-01 07:00:06,778 ["http-bio-51173"-exec-1] DEBUG (SecurityManagerImpl.java [authenticate]:456) - Authenticated by 'exist' as 'org.exist.security.internal.SubjectImpl@57398044'. >> 2012-03-01 07:00:06,960 ["http-bio-51173"-exec-1] DEBUG (XQuery.java [compile]:173) - Query diagnostics: >> sm:chmod(untyped-value-check[xs:anyURI, "/db" cast as xs:anyURI], "rwxrwxr-x") >> 2012-03-01 07:00:06,960 ["http-bio-51173"-exec-1] DEBUG (XQuery.java [compile]:179) - Compilation took 75 ms >> 2012-03-01 07:00:06,969 ["http-bio-51173"-exec-1] DEBUG (XQuery.java [execute]:249) - Execution took 8 ms >> 2012-03-01 07:00:06,973 ["http-bio-51173"-exec-1] DEBUG (HTTPUtils.java [addLastModifiedHeader]:61) - mostRecentDocumentTime: 0 >> 2012-03-01 07:00:06,973 ["http-bio-51173"-exec-1] DEBUG (HTTPUtils.java [addLastModifiedHeader]:61) - mostRecentDocumentTime: 0 >> 2012-03-01 07:00:06,973 ["http-bio-51173"-exec-1] INFO (RpcConnection.java [doQuery]:334) - query took 12ms. >> 2012-03-01 07:00:06,973 ["http-bio-51173"-exec-1] DEBUG (RpcConnection.java [queryP]:2662) - found 0 > > > However, when go to: > > http://localhost:51173/exist/admin/admin.xql > > I am still receiving: >> 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 >> > > So it looks like either: 1) the sm:chmod didn't really work; or 2) there's some other issue other than permissions on the root collection, '/db'. > > Regards, > Chris > > > > > > On Feb 29, 2012, at 8:09 PM, Hungerburg wrote: > >>> On 12-02-29 02:53 AM, Chris Tomlinson wrote: >>>> 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 ran this from the commandline client.sh in the eXist installation >> directory, IIRC. >> >> -- >> peter >> >> ------------------------------------------------------------------------------ >> Virtualization & Cloud Management Using Capacity Planning >> Cloud computing makes use of virtualization - but cloud computing >> also focuses on allowing computing to be delivered as a service. >> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >> _______________________________________________ >> Exist-open mailing list >> Exi...@li... >> https://lists.sourceforge.net/lists/listinfo/exist-open > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/_______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open |