Tomcat"

From Documentation
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{ZKInstallationGuidePageHeader}}
 
{{ZKInstallationGuidePageHeader}}
=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=
 
=Install Tomcat=
 
#Visit [http://tomcat.apache.org/ Tomcat Official Site]
 
#Visit [http://tomcat.apache.org/ Tomcat Official Site]
 
#Select the correct binary distribution for your environment and download
 
#Select the correct binary distribution for your environment and download
#: Here we use '''Apache-tomcat-6.0.29'''
+
#* For Windows, you might download and execute [http://apache.stu.edu.tw//tomcat/tomcat-6/v6.0.29/bin/apache-tomcat-6.0.29.exe 32-bit/64-bit Windows Service Installer], and then follow the instructions
 
#* Any download/install problem, please refer to http://tomcat.apache.org/tomcat-6.0-doc/index.html
 
#* Any download/install problem, please refer to http://tomcat.apache.org/tomcat-6.0-doc/index.html
 +
 
=Deploy=
 
=Deploy=
 
==Deploy your first application==
 
We created a simple ZK war file in previous chapter - [[ZK_Installation_Guide/Before_You_Start/Create_Your_First_ZK_Application|Create Your First ZK Application]]
 
 
*Now deploy it to you web container.
 
*# Copy '''myZK.war''' to $TOMCAT_HOME<ref>Default : C:\Program Files\Apache Software Foundation\Tomcat 6.0</ref>\webapps
 
*# Start/Restart the tomcat services
 
*#: ''(In some cases, you may need to restart your container if it is running.)''
 
*#Then, you can see the result by visiting <tt>http://localhost:8080/myZK/hello.zul</tt> (Tomcat services' default port is 8080)
 
 
[[Image:dgGettingStartedHello.zul.png]]
 
 
<blockquote>
 
----
 
<references/>
 
</blockquote>
 
  
 
==Deploy ZK demo application(optional)==
 
==Deploy ZK demo application(optional)==
Line 39: Line 14:
 
''This step is optional. You could skip it if you prefer to start creating your own application directly.''
 
''This step is optional. You could skip it if you prefer to start creating your own application directly.''
  
# Download lastest zkdemo at http://sourceforge.net/projects/zk1/files/ZK/ (e.g. zk-demo-5.0.4.zip)
+
# Download the lastest zkdemo at http://sourceforge.net/projects/zk1/files/ZK/ (e.g. zk-sandbox-6.0.0.zip)
# Unzip zk-demo-5.0.4.zip
+
# Unzip zk-sandbox-6.0.0.zip
# Copy '''zkdemo.war''' under the <u>zk-demo-5.0.4</u> directory to $TOMCAT_HOME/webapps.
+
# Copy '''zkdemo.war''' under the <u>zk-sandbox-6.0.0</u> directory to $TOMCAT_HOME/webapps.
 
# Start/ReStart the tomcat services (In some cases, you may need to restart your container if it is running.)
 
# Start/ReStart the tomcat services (In some cases, you may need to restart your container if it is running.)
 
# Visit http://localhost:8080/zkdemo, and then play around with the demo application
 
# Visit http://localhost:8080/zkdemo, and then play around with the demo application
Line 47: Line 22:
 
<blockquote>
 
<blockquote>
 
----
 
----
<references/>
 
</blockquote>
 
 
=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
 +
</blockquote>
 +
 +
==Deploy your application with IDE==
 +
 +
When developing an application, we usually use IDE to deploy it. For more information, please refer to the document of your IDE.
 +
 +
If you are new to Java IDE, you might take a look at [[ZK_Installation_Guide/Setting_up_IDE/Eclipse_with_ZK_Studio|Setting up Eclipse with ZK Studio]].
  
 
=Version History=
 
=Version History=
Last Update: {{REVISIONYEAR}}/{{REVISIONMONTH}}/{{REVISIONDAY}}
+
{{LastUpdated}}
 
{| border='1px' | width="100%"
 
{| border='1px' | width="100%"
 
! Version !! Date !! Content
 
! Version !! Date !! Content

Latest revision as of 01:58, 21 March 2012


Install Tomcat

  1. Visit Tomcat Official Site
  2. Select the correct binary distribution for your environment and download

Deploy

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 the lastest zkdemo at http://sourceforge.net/projects/zk1/files/ZK/ (e.g. zk-sandbox-6.0.0.zip)
  2. Unzip zk-sandbox-6.0.0.zip
  3. Copy zkdemo.war under the zk-sandbox-6.0.0 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

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

Deploy your application with IDE

When developing an application, we usually use IDE to deploy it. For more information, please refer to the document of your IDE.

If you are new to Java IDE, you might take a look at Setting up Eclipse with ZK Studio.

Version History

Last Update : 2012/03/21


Version Date Content
     



Last Update : 2012/03/21

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