Server Tomcat v6.0 server at localhost failed to start.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.