您的位置:首页 > 运维架构 > Tomcat

[Java][Tomcat]在eclipse中运行tomcat报的一个错误

2013-10-29 14:55 309 查看
2008-11-9 16:27:59 org.apache.tomcat.util.digester.SetPropertiesRule begin

警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:BBS' did not find a matching property.

2008-11-9 16:27:59 org.apache.tomcat.util.digester.SetPropertiesRule begin

警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:BBSDemo' did not find a matching property.

2008-11-9 16:27:59 org.apache.catalina.core.AprLifecycleListener init

信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\MyEclipse 6.0\jre\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\StormII\Codec;C:\Program Files\StormII

2008-11-9 16:27:59 org.apache.coyote.http11.Http11Protocol init

...................



解决方法:

1.首先,确保你的服务是出于关闭的状态;

2.双击你 eclipse 下方 Servers 卡片里的服务器,比如我的是 Tomcat v6.0 Server at localhost,双击后将弹出一个关于此服务器配置信息的预览窗口;

3.在该窗口下方有个 Server Options 卡片,请将 Publish module contexts to separate XML files 前面的复选框勾上并保存;

4.重新启动你的服务,此时查看 eclipse 控制台信息,发现那刺眼的红色警告信息没有了,恭喜你,这说明问题解决了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐