at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:2 88)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:41 3)
Caused by: java.lang.SecurityException: Servlet of class
org.apache.catalina.servlets.InvokerServlet is privileged and cannot be
loaded by this web application
at
org.apache.catalina.core.StandardWrapper.loadServlet(Standar dWrapper.java:1134)
at org.apache.catalina.core.StandardWrapper.load(StandardWrappe r.java:981)
at
org.apache.catalina.core.StandardContext.loadOnStartup(Stand ardContext.java:4042)
at org.apache.catalina.core.StandardContext.start(StandardConte xt.java:4348)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.j ava:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.jav a:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.j ava:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine .java:443)
at org.apache.catalina.core.StandardService.start(StandardServi ce.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer .java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566 )
Because the InvokerServlet represents a security hole, you will have to
include privileged="true" in the <context> element for any webapp that
tries to deploy it. You would add this to appropriate <context>
elements in the server.xml found under the Servers project in your
workspace.
If you uncommented the InvokerServlet in the web.xml found under the
Servers project, then it applies to all webapps. In this case, if one
of the projects added to the server isn't a default webapp (i.e. one
with context-root set to an empty string), then you will need to add a
<context> for the "ROOT" webapp that is provided by default, i.e.: