You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by Jason Harrop <jh...@bigpond.net.au> on 2001/01/13 10:13:31 UTC
ObjectValidationFailedException when using SlideRealm
Hi
I received the following error:
979373929766 - GET on object /files/
Sat, 13 Jan 2001 19:18:49 GMT+11:00 - default - WARNING - Invalid object
at /files : Revision descriptors uri is incorrect
org.apache.slide.common.ObjectValidationFailedException: Invalid object
at /files : Revision descriptors uri is incorrect
at
org.apache.slide.content.NodeRevisionDescriptors.validate(NodeRevisionDescriptors.java:390)
at
org.apache.slide.store.StandardStore.createRevisionDescriptors(StandardStore.java:775)
at org.apache.slide.content.ContentImpl.retrieve(ContentImpl.java:174)
at
org.apache.slide.webdav.method.GetMethod.executeRequest(GetMethod.java:185)
at org.apache.slide.webdav.method.WebdavMethod.run(WebdavMethod.java:318)
at org.apache.slide.webdav.WebdavServlet.service(WebdavServlet.java:278)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:251)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:196)
at org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:473)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:975)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2038)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:414)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:975)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:159)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:811)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:890)
at java.lang.Thread.run(Thread.java:484)
As per the log, this happened when I did a GET on /files/ using the
slide webapp. It turns out that the cause was that an unrelated webapp
of mine which Tomcat (4 milestone 5) was loading had a web.xml file
which contained the following:
<security-constraint>
<web-resource-collection>
<web-resource-name>Protected Area</web-resource-name>
<url-pattern>/jsp/security/protected/*</url-pattern>
<http-method>DELETE</http-method>
<http-method>GET</http-method>
<http-method>POST</http-method>
<http-method>PUT</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>tomcat</role-name>
<role-name>role1</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<realm-name>Example Form-Based Authentication Area</realm-name>
<form-login-config>
<form-login-page>/jsp/security/login/login.jsp</form-login-page>
<form-error-page>/jsp/security/login/error.jsp</form-error-page>
</form-login-config>
</login-config>
Once I deleted this from the unrelated webapp's web.xml file, the error
when using the slide webapp went away.
cheers,
Jason