Wednesday, July 12, 2006

JBuilder and Embedded Tomcat

Embedded Tomcat
To enable use of the embedded Tomcat versions, a Web Module project must be created. This is accomplished
by following these steps:
1. Create a new Project in JBuilder X (select File ➪ New Project... from the pull-down menu
and accept the default settings).
2. Select the File pull-down menu, followed by New.
3. Select the Web node on the left, the Web Module icon on the right, and click OK.
4. Select Create Empty Web Module and click Next.
5. Enter webapp (or any desired value without spaces) in the Name and Directory fields, and
click Next.
6. Click Finish.
After completing these steps, the project must be configured to use the appropriate Tomcat server. This
can be achieved by the following steps:
1. Right-click the project icon in the Project window and select Properties from the context menu.
2. Select the Server node from the list on the left.
3. Select the desired Tomcat server from the Single server for all services in project
combo box.
To launch Tomcat, right-click on either a Servlet/JSP in the project and select Web Run or Web Debug.