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

测试环境:

Eclipse for J2EE: 1.2.1

Tomcat: 6.0.32

问题描述:

在eclipse中配置好runtime environment以后,想启动Tomcat调试一个Dynamic Web Project,跳出一个窗口报错内容如下:

‘Starting Tomcat v6.0 Server at localhost ‘ has encountered a problem.

窗口详细错误信息为:Server Tomcat v6.0 Server at localhost failed to start.

Console窗口错误信息如下:

java.lang.reflect.InvocationTargetException

at 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

。。。。。。。。。。

解决办法:

 

1. 修改conf/context.xml文件,新加两个属性.
<Context  reloadable="true" privileged="true"> 
    <!-- Default set of monitored resources -->
    <WatchedResource>WEB-INF/web.xml</WatchedResource>
</Context>

2. 重启Eclipse,此步非常重要,一定要做

时间: 2024-10-15 05:23:30

Server Tomcat v6.0 Server at localhost failed to start.的相关文章

Tomcat7改为6、Server Tomcat v6.0 Server at localhost failed to start.等错误

花了一上午的时间使用java开发了一个微信聊天机器人(我会将如何编写的过程分享给大家),号码为:qiubenlizi,大家有兴趣可以玩玩.当我将war包上传到SAE服务器的时候,运行出来的结果是这样 知道是服务器找不到文件,在本地上可是正常运行的,谷歌了一下, 说是SAE用的jdk1.6,而我用的事jdk1.7,tomcat也要相应的改成6,下面就讲一下如何转换 第一,将tomcat7里面的项目remove掉,并关闭: 第二,更改jdk1.6(首先你要有1.6的环境) 按照图示上,一步一步来 第

Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds...

仰天长啸 Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds... 当启动tomcat时候出现 Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the serve

启动Tomcat报(Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds)的问题

常见问题-Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds 一.概述:本人在部署ssh项目环境后,启动tomcat6.0中,eclipse弹出一个错误提示框,错误如上所示.经过上网调查,整理了一下解决方案. 二.解决方案: 1.直接修改ecplise的文件配置. 打开WorkSpace下文件为  .metadata\.plugins\org.eclipse.wst.server.core\se

(转)Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds

仰天长啸 Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds... 当启动tomcat时候出现 Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the serve

Eclipse中配置Tomcat碰到Server Tomcat v6.0 Server at localhost failed to start问题

控制台打印异常如下: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:54) Caused by: java.lang.ClassNotFoundException: org.apache.juli.logg

tomcat启动超时, Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds...

本文转自于:http://www.cnblogs.com/yjhrem/articles/2955207.html 原文地址:https://www.cnblogs.com/demon09/p/9735031.html

Server Tomcat v6.0 at localhost was unable to start within 45 seconds

在eclipse里启动tomcat的时候出现以下的错误: Server Tomcat v6.0 at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor.在servers view里,双击server,会打开该server的设置窗口,在右上部有Timeouts的设置部分,设置timeout

Could not publish server configuration for Tomcat v6.0 Server at localhost.

经常在使用tomcat服务器的时候 总会发生一些莫名其妙的错误. 就像下面这个错误: 在配置文件中存在多个/MyWeb的配置,导致不能发布服务. 错误信息: Could not publish server configuration for Tomcat v6.0 Server at localhost.Multiple Contexts have a path of "/MyWeb". 解决方案: 如果是使用的eclipse tomcat 插件,需要在你的工作空间 找到如下文件:

Android-67-Tomcat启动出错:Server Tomcat v7.0 Server at localhost failed to start.

 错误:Server Tomcat v7.0 Server at localhost failed to start.如图: 唉!!!!图片上传不上去,悲哀啊!!!只能先写着错误提示语吧~~- 解决办法: 1.In Eclipse, Open the"Server" tab. 2.Double click on the "Tomcat6" entry to see the configuration. 3.Then click on the "Open