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

The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: c:\Program Files\Java\jdk1.5.0_06\bin;.;C:\WINDOWS\system32;C:\WINDOWS;D:/study tools/Java/jdk1.5.0_06/bin/../jre/bin/client

 

出现SetPropertiesRule警告的原因是因为Tomcat在server.xml的Context节点中不支持source属性:

解决方法是在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.

你可能感兴趣的:(警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source')