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

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 控制台信息,发现那刺眼的红色警告信息没有了,恭喜你,这说明问题解决了。

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值