Solution to a problem encountered in eclipse + tomcat configuration

Source: Internet
Author: User
Warning [SetPropertiesRule] {Server/Service/Engine/Host/Context} Setting property 'source'

Default category: 11:49:36 read 1144 comments 1 font size: LargeMediumSmall subscription

After the apache-tomcat-6.0.16 project is loaded in eclipse GANYMEDE, the following red warning message appears on the startup server, which is really unpleasant:

21:33:55 org. apache. tomcat. util. digester. SetPropertiesRule begin

Warning: [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

Information: 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/System32/Wbem; D: /study tools/MySQL Server 5.0/bin; C:/Program Files/Microsoft SQL Server/80/Tools/BINN

Search for answers online. Some say you can change Tomcat version to 6.0.14; also, when creating a Dynamic Web Project, change the version number after the "Dynamic Web Module" option from 2.5 to 2.4. However, these answers do not seem to actually solve the problem.

The cause of the SetPropertiesRule warning is that Tomcat does not support the source attribute in the Context node of server. xml: <Context docBase = "... "Path = "/... "Source =" org. eclipse. jst. j2ee. server :... "/>

The solution is to double-click the created server in the servers view and select the "Publish module contexts to separate XML files" option on the server configuration page.

But what does "Publish module contexts to separate XML files" mean? Check "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.

This article from the CSDN blog, reproduced please indicate the source: http://blog.csdn.net/jinxinxin1314/archive/2009/08/11/4433134.aspx

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.