Test environment:
Eclipse for j2ee:1.2.1
tomcat:6.0.32
Problem Description:
After configuring runtime environment in Eclipse, to start Tomcat debugging a dynamic Web Project, jump out of a window and the error content is as follows:
' Starting Tomcat v6.0 Server at localhost ' has encountered a problem.
Server Tomcat v6.0 server at localhost failed to start.
Window verbose error message is: Server Tomcat v6.0 server at localhost failed to start.
The console window error message is as follows: Java.lang.reflect.InvocationTargetExceptionat SUN.REFLECT.NATIVEMETHODACCESSORIMPL.INVOKE0 ( Native Method) ..... caused by:java.lang.SecurityException:Servlet of class org.apache.catalina.servlets.InvokerServlet is privileged and Cannot be loaded by this Web application .....
Workaround:
1. Modify the Conf/context.xml file and add two new properties.
<context reloadable= "true" privileged= "true" >
<!--Default set of monitored resources--
<WatchedResource>WEB-INF/web.xml</WatchedResource>
</context>2. Restart Eclipse, this step is very important, be sure to do
Server Tomcat v6.0 server at localhost failed to start.