Java Web: Configuring the common problems with Tomcat and its solutions

Source: Internet
Author: User
Tags java web apache tomcat

  Recently started Java EE Development, in the configuration of Tomcat in the process of some problems, I refer to some online tutorials, and according to their own mistakes in the special place to do some summary, share to the needs of the reader.

First of all, if you are just beginning to touch Java EE Development, do not know how to build a development environment, you can refer to the following article link: http://www.jizhuomi.com/software/357.html; the author is very fine, Some configuration methods, although not standard, but very simple and practical.

Below is the possible operation error, specific description:

(1)8080 and other ports are occupied and cannot be run;

WORKAROUND: If you install Tomcat using the. exe installation package and the system runs Tomcat by default, go to Task Manager to kill the process, rerun it, or install tomcat using a. zip document;

(2) a [Setpropertiesrule]{server/service/engine/host/context} Setting Property ' source ' to ' appears Org.eclipse.jst.jee.server:Demo ' did not ' find a matching property.

Workaround: The general solution on the Web is the configuration interface of the server, tick the options of the Publish module contexts to separate XML file option, but the method is only applicable to Tomcat6. under normal circumstances, this problem can be ignored in Tomact7, and the console will have a warning but will not affect the operation. if it does not work, then look at your webroot, that is, "Demo" above the use of Chinese? (I have witnessed the normal operation of the English after change.) )

(3) appears similar to the Apache Tomcat Native Library which allows optimal performance in production environments is not found The problem;

Workaround: The general solution on the Web is http://tomcat.heanet.ie/native/download the latest version of Tcnative-1.dll to the Tomcat installation directory \ Bin and restart Tomcat. But Tomcat's installation directory \ Bin already exists Tcnative-1.dll, and the directory of Tcnative-1.dll far newer than the version, do not blindly update. It is a good practice to add a Tomcat installation address like "D:\Program files\apache-tomcat-7.0.59\bin" to the environment variables of the system.  

  Reference Links:

[1] http://www.xuebuyuan.com/2095992.html.

[2] http://blog.chinaunix.net/uid-21227800-id-65928.html.

History of this article:

    • 2015-03-12 first draft completed.

Java Web: Configuring the common problems with Tomcat and its solutions

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.