Tomcat"

From Documentation
Line 51: Line 51:
 
=Notice=
 
=Notice=
 
Deploy war file to Tomcat is very easy but there're something you need to know
 
Deploy war file to Tomcat is very easy but there're something you need to know
*Tomcat will unzip the war file to <u>filename/</u> directory automatically
+
*Tomcat will unzip the war file to <u>filename\</u> directory automatically
*You can ''NOT'' modify the content of <u>filename/</u> directory unless you remove the war file, or your modification will not work.
+
*You can ''NOT'' modify the content of <u>filename\</u> directory unless you remove the war file, or your modification will not work.
 
*For more information about Tomcat's deployer, please refer to http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html
 
*For more information about Tomcat's deployer, please refer to http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html
  

Revision as of 09:46, 21 September 2010


Environment

  • OS
    Windows XP SP3
  • Java
    JDK 6 updated 21 x86
  • Web container
    Apache-tomcat-6.0.29.exe
  • Browser
    Internet Explorer 6

Install Tomcat

  1. Visit Tomcat Official Site
  2. Select the correct binary distribution for your environment and download
    Here we use Apache-tomcat-6.0.29

Deploy

Deploy your first application

We created a simple ZK war file in previous chapter - Create Your First ZK Application

  • Now deploy it to you web container.
    1. Copy myZK.war to $TOMCAT_HOME[1]\webapps
    2. Start/ReStart the tomcat services (In some cases, you may need to restart your container if it is running.)
    3. Then, you can see the result by visiting http://localhost:8080/myZK/hello.zul[2].

DgGettingStartedHello.zul.png


  1. Default : C:\Program Files\Apache Software Foundation\Tomcat 6.0
  2. Tomcat services' default port is 8080

Deploy ZK demo application(optional)

The simplest way to test drive ZK existed application is to download and install the ZK demo application.

This step is optional. You could skip it if you prefer to start creating your own application directly.

  1. Download lastest zkdemo at http://sourceforge.net/projects/zk1/files/ZK/ (e.g. zk-demo-5.0.4.zip)
  2. Unzip zk-demo-5.0.4.zip
  3. Copy zkdemo.war under the zk-demo-5.0.4 directory to $TOMCAT_HOME/webapps.
  4. Start/ReStart the tomcat services (In some cases, you may need to restart your container if it is running.)
  5. Visit http://localhost:8080/zkdemo, and then play around with the demo application

Notice

Deploy war file to Tomcat is very easy but there're something you need to know

  • Tomcat will unzip the war file to filename\ directory automatically
  • You can NOT modify the content of filename\ directory unless you remove the war file, or your modification will not work.
  • For more information about Tomcat's deployer, please refer to http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html

Version History

Version Date Content
5.0.4 9/21/2010 Updated



Last Update : 2010/09/21

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.