A red warning is displayed after Tomcat is started.

Source: Internet
Author: User

After Tomcat is started, a red warning is displayed:

[Setpropertiesrule] {server/service/engine/host/context} setting property 'source' to 'org. Eclipse. JST. Jee. SERVER: webproject' did not find a matching property.

This is because in eclipse, when we deploy a web project through tomcat, Tomcat's configuration file server. XML will automatically generate a configuration information about the web project, similar to the following:

XML Code
View plaincopy to clipboardprint?
<Context docbase = "webpoject" Path = "/webproject" reloadable = "true" Source = "org. Eclipse. JST. Jee. SERVER: webproject"/>
<Context docbase = "webpoject" Path = "/webproject" reloadable = "true" Source = "org. Eclipse. JST. Jee. SERVER: webproject"/>
By default, the context element of server. XML does not support the attribute named source, so a warning is issued.

Solution: Disable tomcat, double-click the Tomcat server under eclipse, and find the server options option on the Tomcat server at localhost page, select the Options "Publish modual contexts to separat XML files", CTR + S, and start Tomcat

The following error occurs when Tomcat is started.

9:50:53 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: C: \ programwork \ Java \ jdk1.6.0 _ 31 \ bin; C: \ WINDOWS \ sun \ Java \ bin; c: \ windows \ system32; C: \ WINDOWS ;.; c: \ programwork \ Java \ jdk1.6.0 _ 31 \ bin: C: \ programwork \ Java \ jdk1.6.0 _ 31 \ JRE \ bin; C: \ windows \ system32 ;................ (x86) \ IDM computer solutions \ ultracompare \; C: \ programwork \ gwt_library \ app engine_home \ google_appengine \;.
9:50:53 org. Apache. Coyote. http11.http11protocol init
Information: initializing coyote HTTP/1.1 on http-8083
2012-5-14 9:50:53 org. Apache. Catalina. startup. Catalina Load
Information: initialization processed in 427 MS
9:50:54 org. Apache. Catalina. Core. standardservice start
Information: starting service Catalina
2012-5-14 9:50:54 org. Apache. Catalina. Core. standardengine start
Information: Starting Servlet Engine: Apache Tomcat/6.0.35
9:50:54 org. Apache. Coyote. http11.http11protocol start
Information: Starting coyote HTTP/1.1 on http-8083
9:50:54 org. Apache. JK. Common. channelsocket init
Information: JK: ajp13 listening on/0.0.0.0: 8029
9:50:54 org. Apache. JK. server. jkmain start
Description: JK running id = 0 time = 0/13 Config = NULL
9:50:54 org. Apache. Catalina. startup. Catalina start
Information: server startup in 191 MS
I found some information on the Internet:
This indicates that the APR is not found.
Brief solution: Go to the http://tomcat.heanet.ie/native/ to download the compiled tcnative-1.dll file, the latest 1.1.14, copy to JDK \ bin, and then start it to load the APR.

 

Error message:

Warning a docbase E:/tomcat/webapps/lovemu inside the host appbase has been specified, and will be ignored

When eclipse Galileo is upgraded to Indigo and the project is released to Tomcat, the following warning is prompted:
Warning a docbase D: \ apache-Tomcat-6.0.26 \ webapps \ projectname inside the host appbase has been specified, and will be ignored

This project cannot be accessed.
The returned result uses Galileo.
Check it online. It seems to be a folder with the same name in D: \ apache-Tomcat-6.0.26 \ work \ Catalina \ localhost. Delete the folder and try again. The problem persists.

It seems that two versions of eclipse have different actions to process the same tomcat configuration.
I tried to call several Tomcat server parameters. Sure enough, if you hook up the serve modules without publishing under server options, everything is normal.

 

Let's take a look at the experience of our predecessors.

A red warning is displayed after Tomcat is started.

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.