eclipse+tomcat配置中遇到的一个问题的解决方案(转载)

警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source'

默认分类 2009-10-27 11:49:36 阅读1144 评论1   字号: 订阅

在eclipse GANYMEDE中apache-tomcat-6.0.16加载工程后,启动服务器就会出现如下的红色警告信息,真是让人不爽:

2008-10-11 21:33:55 org.apache.tomcat.util.digester.SetPropertiesRule begin

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

2008-10-11 21:33:55 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:/study tools/Java/jdk1.5.0_06/bin;.;C:/WINDOWS/system32;C:/WINDOWS;D:/study tools/Java/jdk1.5.0_06/bin/../jre/bin/client;D:/study tools/Java/jdk1.5.0_06/bin/../jre/bin;D:/study tools/Borland/Delphi7/Bin;D:/study tools/Borland/Delphi7/Projects/Bpl/;D:/study tools/Java/jdk1.5.0_06/bin;C:/WINDOWS/system32;C:/WINDOWS;C:/WINDOWS/System32/Wbem;D:/study tools/MySQL/MySQL Server 5.0/bin;C:/Program Files/Microsoft SQL Server/80/Tools/BINN

在网上查找答案,有的说将Tomcat的版本换成6.0.14就可以了;还有的说在建立Dynamic Web Project时把"Dynamic Web Module"选项后面的版本号由2.5改成2.4也行。不过这些回答好像都不能真正地解决问题。

出现SetPropertiesRule警告的原因是因为Tomcat在server.xml的Context节点中不支持source属性:<Context docBase="…" path="/…" source="org.eclipse.jst.j2ee.server:…"/>

解决方法是在Servers视图里双击创建的server,然后在其server的配置界面中选中"Publish module contexts to separate XML files"选项。

不过"Publish module contexts to separate XML files"究竟是什么意思,有必要看下"Tomcat Publishing Options"。
Two new options which affect publishing are now available in the Server Options section of the Tomcat server editor. The Tomcat server must be 5.0.x or later for these options to be enabled. The Serve modules without publishing option does what it says. Web content will be served directly from the "WebContent" folder of the Dynamic Web Project. A customized context is used to make the project's dependencies available in the Web application's classloader. The Publish module contexts to separate XML files option will publish contexts using the preferred method of separate XML files under the "conf/Catalina/localhost" directory, rather than keeping them in the "server.xml" file. A couple of improvements for this option are noted in Bugs 180931 and 180936.

 

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/jinxinxin1314/archive/2009/08/11/4433134.aspx

你可能感兴趣的:(eclipse,tomcat,xml,server,Module,dependencies)