Wiki source code of Servlet Deployment Setup

Version 22.1 by David Avendasora on 2009/04/06 09:20

Hide last authors
David Avendasora 8.1 1 == Introduction ==
2
3 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/]].
4
5 == Prerequisites ==
6
7 1. Eclipse 3.4 & WOLips 5640 or later [[installed>>http://wiki.objectstyle.org/confluence/display/WOL/Installing+WOLips]].
8 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.
9 1. An existing WebObjects project.
10
11 == Step 1 - Project Properties ==
12
13 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.
David Avendasora 12.1 14 [[image:Picture 4.png]]
David Avendasora 14.1 15 1. Select "WOLips Deployment" from the left-hand side and check the "Servlet Deployment" checkbox and the "Autogenerate web.xml" checkbox.
David Avendasora 16.1 16 [[image:Picture 8.png]]
David Avendasora 18.1 17
18 == Step 2 - Install ==
19
20 1. Right-Click on your project and select "WOLips Ant Tools" and then "Instal"
21 [[image:Picture 9.png]]
David Avendasora 20.1 22 1. Look in the Finder at your /Library/WebObjects/Application/ directory and you should find 3 files for your project
23 [[image:Picture 10.png]]
24 11. YourApp.woa
25 11. YourApp directory - this is a Single Servlet Directory Deployment (SSDD) it contains all of the Frameworks on the build path embedded in it.
26 11. YourApp.war - this is your webapp archive. It contains all the same files as the SSDD, but zipped up.
David Avendasora 22.1 27
28 == Step 3 - Deploy ==
29
30 Copy the MyApp.war file to your servlet container's webapps directory.