Wiki source code of Servlet Builds

Version 24.1 by Andrew Lindesay on 2007/06/14 19:56

Hide last authors
Andrew Lindesay 8.1 1 = What is Servlet? =
2
Andrew Lindesay 24.1 3 Servlet is part of the J2EE standard and is basically a packaging and interfacing structure for putting applications into a server. It means (theoretically) that you can take your servlet that you have build and put it into a range of different J2EE "servlet containers" and the servlet will run. Here are some servlet containers that may or may not be suitable for your purposes;
Andrew Lindesay 8.1 4
Andrew Lindesay 24.1 5 * [[Tomcat>>url:http://tomcat.apache.org/||shape="rect"]]
6 * [[Jetty>>url:http://www.mortbay.org/||shape="rect"]]
7 * [[WebSphere>>url:http://www.ibm.com/software/websphere||shape="rect"]]
8 * [[WebLogic>>url:http://www.bea.com||shape="rect"]]
Andrew Lindesay 8.1 9
Andrew Lindesay 24.1 10 There are some [[existing notes>>url:http://en.wikibooks.org/wiki/Programming:WebObjects/Web_Applications/Deployment/Tomcat_Deployment||shape="rect"]] that I have written on building WebObjects applications as servlets and how to deploy this into [[Tomcat>>url:http://tomcat.apache.org/||shape="rect"]].
Andrew Lindesay 22.1 11
Andrew Lindesay 24.1 12 It is possible to assemble your WebObjects application into a servlet using the woproject ant tasks. Here we assume that you have setup your project with the eclipse tools and that you have the boiler-plate ant build file already.
Andrew Lindesay 22.1 13
14 = License =
15
Andrew Lindesay 24.1 16 WebObjects requires a license to run. Create a text file in the top level of your project and copy the license string into this file. It will have the format **X-XXX-XXX-XXX-XXX-XXX-XXX-XXX-XXX-XXX** wherein you obviously need to replace the X-s with letters and digits.
Andrew Lindesay 22.1 17
Andrew Lindesay 24.1 18 = Servlet Single Directory Deployment =
Andrew Lindesay 22.1 19
Andrew Lindesay 24.1 20 Servlet Single Directory Deployment is referred to as SSDD. The WebObjects 5.2 Release Notes touch on what this entails;
Andrew Lindesay 22.1 21
Andrew Lindesay 24.1 22 {{panel}}
23 WebObjects 5.1 added support for deploying WebObjects applications in J2EE servlet containers. However, this support still required the presence of the WebObjects deployment runtime on the J2EE server. The new Servlet Single Directory Deployment (SSDD) feature of WebObjects 5.2 removes this requirement. Now, you can deploy a WebObjects application into a single, self-contained directory in a supported J2EE servlet container. The self-contained directory contains the application's .woa and all the frameworks the application requires.
24 {{/panel}}
25
26 1. Load the {{code language="none"}}build.xml{{/code}} file up and locate the section called {{code language="none"}}<!-- ssdd target -->{{/code}} - run through the instructions there.
27 1. The {{code language="none"}}web.xml{{/code}} file is used to configure the servlet once it is running inside the servlet container. This is build from a template {{code language="none"}}web.xml.template{{/code}} as stated in the header <~-~- TODO??
28
29 You may need to modify the {{code language="none"}}web.xml{{/code}} file for your specific deployment purposes.