Directory structure of the Web framework Tomcat 5.0

Source: Internet
Author: User
Tags contains tomcat tomcat server

Tomcat has 9 directories, respectively, Bin,common,conf,logs,server,shared,temp,webapps,work directory, now for each directory to introduce.

The Tomcat root is called <catalina_home> in Tomcat, and the article extracts the Tomcat under c:/.

1.<catalina_home>/bin: A script file that starts and shuts tomcat under various platforms. One of the files is Catalina.bat, open this windos configuration file, and add JDK paths to the non comment line, for example, after SET java_home=c:\j2sdk1.4.2_06 save, configure the Tomcat environment. Startup.bat is the file that starts Tomcat under Windows Shutdown.bat is the file that shuts down Tomcat.

2.<catalina_home>/common: A lib directory in the common directory that holds the jar that is accessible to Tomcat servers and all Web applications.

3.<catalina_home>/shared: A Lib directory in the shared directory that holds all the jars that can be accessed by the Web application but not tomcat?

4.<catalina_home>/server: In the Server/webapps directory, the two App-admin and manager applications that are hosted by Tomcat are used to manage the Tomcat-web service. In the Server/lib directory, the Web application that is required to store the Tomcat server does not have access to the seed jar.

5.<catalina_home>/work:tomcat a variety of JSP-generated servlet files in this directory.

6.<catalina_home>/temp: A temporary binder that is used by the Tomcat runtime to store temporary files.

7.<catalina_home>/logs: Log files for Tomcat

8.<catalina_home>/conf:tomcat's various profiles, most importantly Server.xml, configure the Tomcat component's XML file Server.xml which includes

I. Top-level class elements [top level Elements]: the top-level of the entire configuration file, including <Server> and <Service>;

Ii. connector class element [connectors]: communication interface between customer and service (container class element). Accept customer request, return response result;<connector>

Ii. container-class elements [containers]: processing customer requests and generating response results, including 3:<engine> <Host> <Context>

Iv. nested class elements [Nested Components]: Elements that can be added to the container, including:<logger> <Valve><Realm>

A <Server> contains one or more <service> a <Service> contains only one <Engine> and one or more <connector>, multiple < Connector> shares a <Engine>; a <Engine> contains multiple

Please note this for Tomcat 5.x, unlike Tomcat 4.x, it isn't recommended to place <Context> elements directly in th e server.xml file. Instead, put them in the Meta-inf/context.xml directory of your WAR file or the Conf directory as described above.

9.<catalina_home>/webapps:web Application of the publishing directory, the Java development of the Web site or war file into this directory can be accessed through the Tomcat server.

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: 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.