The deployment procedures below are for using JBoss
4.x. The procedures for using different versions of JBoss
may vary.
In Manager, locate the existing Web application on the
Applications page.
- Check the box next to the Web application you want to deploy to
Tomcat and hit the 'Export' button.
- In the File Download dialog that appears, click the Save
button.
- In the 'Save as type:' section, choose All
Files.
- The default file name extension will be .zip. Change this
to .war and save it to the file system. Click the
'Close' button when Save is complete. (For example:
/usr/home/temp/myapp.war)
- Start JBoss. You can do this by executing
<JBoss_home>/bin/run.sh. You'll need to make sure you've set
a JAVA_HOME system variable that points to a Java 5 version of the
JDK before starting JBoss.
- Copy the .war file to <JBoss_home>/server/default/deploy.
This will "hot deploy" the Web application, which means it will
automatically deploy without having to restart JBoss.
Testing your
deployment
Open a browser and go to
http://yourserver:8080/your_webapp_name.
(For example:
http://localhost:8080/myapp )