Wiki source code of Servlet Builds
Version 13.1 by Andrew Lindesay on 2007/06/14 19:44
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | = What is Servlet? = | ||
| 2 | |||
| 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; | ||
| 4 | |||
| 5 | * [[Tomcat>>http://tomcat.apache.org/]] | ||
| 6 | * [[Jetty>>http://www.mortbay.org/]] | ||
| 7 | * [[WebSphere>>http://www.ibm.com/software/websphere]] | ||
| 8 | * [[WebLogic>>http://www.bea.com]] | ||
| 9 | |||
| 10 | There are some [[existing notes>>http://en.wikibooks.org/wiki/Programming:WebObjects/Web_Applications/Deployment/Tomcat_Deployment]] that I have written on building WebObjects applications as servlets and how to deploy this into [[Tomcat>>http://tomcat.apache.org/]]. | ||
| 11 | |||
| 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. | ||
| 13 | |||
| 14 | = License = | ||
| 15 | |||
| 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. | ||
| 17 | |||
| 18 | = SSDD = | ||
| 19 | |||
| 20 | 1. Load the ##build.xml## file up and locate the section called ##<!~-~- ssdd target ~-~->## - run through the instructions there. | ||
| 21 | 1. The ##web.xml## file is used to configure the servlet once it is running inside the servlet container. This is build from a template ##web.xml.template## as stated in the header <~-~- TODO | ||
| 22 | |||
| 23 | You may need to modify the ##web.xml## file for your specific deployment purposes. |