Pramati Technologies

Configuring and Using Tomcat Deployer with Studio

Overview

This chapter is for developers familiar with Apache Tomcat Application server version 4.1, and would like to deploy their applications using Tomcat. Studio provides tight integration with Tomcat server. It automatically creates the deployment descriptors while the application is being developed, and keeps the application in a ready-to-deploy state. Studio provides support for deploying applications on local and remote server. The following functions can be performed inside Studio:

This chapter discusses how to develop EJB 1.1 and EJB 2.0 applications in Studio and deploy them on Tomcat.

Configuring Tomcat deployer

To configure Tomcat in Studio:

  1. Download Jakarta Tomcat software.
  2. Enable the ROOT context.
  3. Enable the invoker servlet.
  4. Tell Tomcat to reload servlets when they are modified.
  5. Setting the JAVA_HOME variable.
  6. Changing the DOS memory settings.
  7. Setting the CATALINA_HOME variable.
Creating Tomcat server instances

To create an instance for Tomcat 5.0 server, select Tools > Server Configuration from the main menu. In the Server Configuration dialog, click New. In the Add New Server dialog, enter the following information:

Press OK to create a server instance and display the Server Config panel. Configure Tomcat properties as:

Note: Studio connects to server through a JMX SOAP connector as the value can not be set as RMI connector

Click OK to add the instance. To delete an instance, select the required server from Server Name field dropdown and click Delete.

Starting & Stopping Tomcat server

After creating the server instance in Studio, close the Server Configuration panel, and select the instance from the Server Box in the Status Bar. Selecting the Tomcat server instance here makes it the current server, and all server specific operations for the active desk is performed on the current server.

The Tomcat server instance can be started and stopped in a similar way as any other server in Studio. Use Tools > Start Server to start the Server. To stop a server, use Tools > Stop Server from the main menu. The Server can also be started/stopped using the Signal Box.

Note: Remote server cannot be started or stopped from Studio.
Deploying applications on Tomcat

Local deployment

The option Deploy, available on a right click on the Desk Root is disabled when the selected server is Tomcat. In such cases, deploy the desk using any of the following options:

If you add a new module to the desk, the entire desk should be deployed again as an ear.

Adding datasources

Studio enables to add resources to Tomcat server from within Studio. Select Tools > Resources to open the Resource Tool and add required resources. For details, read `Defining Resources for Application'.

Log messages

For local Tomcat server, all log messages are displayed in the Tomcat tab in the output panel.

Limitations in Tomcat usage

If Studio can not connect to Tomcat server, check:


Pramati Technologies  © Copyright   TOCPREVNEXTINDEX