Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.9.1
-
None
Description
Currently in webapp the JcrRemotingServlet has config like
<init-param> <param-name>protectedhandlers-config</param-name> <param-value>/WEB-INF/protectedHandlers.properties</param-value> <description>JcrRemotingServlet: Handlers for removing protected items.</description> </init-param>
This causes exception in loading like
01.12.2015 11:10:36.194 *ERROR* [main] org.apache.jackrabbit.server.remoting.davex.ProtectedRemoveManager /WEB-INF/protectedHandlers.properties java.lang.ClassNotFoundException: /WEB-INF/protectedHandlers.properties at java.lang.Class.forName0(Native Method) ~[na:1.7.0_55] at java.lang.Class.forName(Class.java:190) ~[na:1.7.0_55] at org.apache.jackrabbit.server.remoting.davex.ProtectedRemoveManager.createHandler(ProtectedRemoveManager.java:84) [jackrabbit-jcr-server-2.11.3-SNAPSHOT.jar:na] at org.apache.jackrabbit.server.remoting.davex.ProtectedRemoveManager.<init>(ProtectedRemoveManager.java:56) [jackrabbit-jcr-server-2.11.3-SNAPSHOT.jar:na] at org.apache.jackrabbit.server.remoting.davex.JcrRemotingServlet.init(JcrRemotingServlet.java:276) [jackrabbit-jcr-server-2.11.3-SNAPSHOT.jar:na] at javax.servlet.GenericServlet.init(GenericServlet.java:244) [javax.servlet-api-3.1.0.jar:3.1.0] at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:612) [jetty-servlet-9.2.8.v20150217.jar:9.2.8.v20150217] at org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:395) [jetty-servlet-9.2.8.v20150217.jar:9.2.8.v20150217] at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:871) [jetty-servlet-9.2.8.v20150217.jar:9.2.8.v20150217] at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:298) [jetty-servlet-9.2.8.v20150217.jar:9.2.8.v20150217] at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349) [jetty-webapp-9.2.8.v20150217.jar:9.2.8.v20150217] at org.eclipse.jetty.maven.plugin.JettyWebAppContext.startWebapp(JettyWebAppContext.java:296) [jetty-maven-plugin-9.2.8.v20150217.jar:9.2.8.v20150217]
This happens because ProtectedRemoveManager tries to load the config file directly by treating it as a file on filesystem. Instead it should be passed a input stream.
For now as the config has single handle one can just specify the class directly
Attachments
Attachments
Issue Links
- blocks
-
OAK-3701 Exception in JcrRemotingServlet at startup
- Closed