Tomcat"
From Documentation
m (→Environment) |
m (→Deploy) |
||
Line 7: | Line 7: | ||
=Deploy= | =Deploy= | ||
− | ==Deploy your first application== | + | ==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.'' | ||
+ | |||
+ | # Download lastest zkdemo at http://sourceforge.net/projects/zk1/files/ZK/ (e.g. zk-demo-5.0.4.zip) | ||
+ | # Unzip zk-demo-5.0.4.zip | ||
+ | # Copy '''zkdemo.war''' under the <u>zk-demo-5.0.4</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.) | ||
+ | # Visit http://localhost:8080/zkdemo, and then play around with the demo application | ||
+ | |||
+ | ==Deploy your first application(optional)== | ||
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]] | 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]] | ||
Line 23: | Line 35: | ||
</blockquote> | </blockquote> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<blockquote> | <blockquote> |
Revision as of 10:30, 24 September 2010
Install Tomcat
- Visit Tomcat Official Site
- Select the correct binary distribution for your environment and download
- Here we use Apache-tomcat-6.0.29
- Any download/install problem, please refer to http://tomcat.apache.org/tomcat-6.0-doc/index.html
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.
- Download lastest zkdemo at http://sourceforge.net/projects/zk1/files/ZK/ (e.g. zk-demo-5.0.4.zip)
- Unzip zk-demo-5.0.4.zip
- Copy zkdemo.war under the zk-demo-5.0.4 directory to $TOMCAT_HOME/webapps.
- 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
Deploy your first application(optional)
We created a simple ZK war file in previous chapter - Create Your First ZK Application
- Now deploy it to you web container.
- Copy myZK.war to $TOMCAT_HOME[1]\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 http://localhost:8080/myZK/hello.zul (Tomcat services' default port is 8080)
- ↑ Default : C:\Program Files\Apache Software Foundation\Tomcat 6.0
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
Last Update: 2010/09/24
Version | Date | Content |
---|---|---|