Wiki source code of Servlet Deployment Setup
Version 8.1 by David Avendasora on 2009/04/06 10:04
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{note title="Bug Warning"}} | ||
2 | There is a [bug|http://issues.objectstyle.org/jira/browse/WONDER-262] in Tomcat, WO or Project Wonder that causes problems if you have more than one webapp deployed in a single instance of Tomcat if they don't all have identical classpaths. | ||
3 | |||
4 | {{/note}} | ||
5 | |||
6 | == Introduction == | ||
7 | |||
8 | WO developers have been able to deploy their applications as a WAR bundle in a J2EE container since WO 5.1, and as an independent SSDD (Servlet Single Directory Deployment) bundles and WAR files since WO 5.2. This article guides you through the simple setup in WOLips to allow you to deploy you application to a servlet container such as [[Apache Tomcat>>http://tomcat.apache.org/]]. | ||
9 | |||
10 | == Prerequisites == | ||
11 | |||
12 | 1. Eclipse 3.4 & WOLips 5640 or later [[installed>>http://wiki.objectstyle.org/confluence/display/WOL/Installing+WOLips]]. | ||
13 | 1. Servlet Container of your choice installed. For this article I'll be setting it up using a completely stock install of Tomcat 6.0.18. | ||
14 | 1. An existing WebObjects project. | ||
15 | |||
16 | == Step 1 - Project Properties == | ||
17 | |||
18 | 1. Right-Click on your project in the WO Explorer tab of the WOLips perspective in Eclipse and select "Properties" or select "Properties" from the "Project" menu. | ||
19 | [[image:Picture 4.png]] | ||
20 | 1. Select "WOLips Deployment" from the left-hand side and check the "Servlet Deployment" checkbox and the "Autogenerate web.xml" checkbox. | ||
21 | [[image:Picture 8.png]] | ||
22 | |||
23 | == Step 2 - Install == | ||
24 | |||
25 | 1. Right-Click on your project and select "WOLips Ant Tools" and then "Instal" | ||
26 | [[image:Picture 9.png]] | ||
27 | 1. Look in the Finder at your /Library/WebObjects/Application/ directory and you should find 3 files for your project | ||
28 | [[image:Picture 10.png]] | ||
29 | 11. YourApp.woa | ||
30 | 11. YourApp directory - this is a Single Servlet Directory Deployment (SSDD) it contains all of the Frameworks on the build path embedded in it. | ||
31 | 11. YourApp.war - this is your webapp archive. It contains all the same files as the SSDD, but zipped up. | ||
32 | |||
33 | == Step 3 - Deploy == | ||
34 | |||
35 | Copy the MyApp.war file to your servlet container's webapps directory. |