Running the Universal Test Client on Apache Tomcat

If you want to test objects other than enterprise beans on the Universal Test Client running on Apache Tomcat, follow these instructions:
Note: The information in this topic does not apply to WebSphere® Application Server - Express.
  1. Use the Create Server wizard to create a Tomcat server.
  2. In the Servers view, double-click on the server that you created to open it.
  3. To add the J2EE JAR file containing the javax.ejb package:
    1. In the Launch Configuration wizard (in the main toolbar select Run > Run), under the Class path section, click Add External Jars. The Select JAR file window opens.
    2. In the File name field, type or browse to the path of j2ee.jar. For example, <directory>: \runtimes\base_v6\lib\j2ee.jar (where <directory> is the directory where this product is installed).
    3. Click Open. The J2EE JAR file is added to the Class path list.
    4. To save your changes and exit the launch configuration editor, click Apply > Close.
  4. To add an external Web module:
    1. In the Servers view, double-click the Tomcat server, the server editor opens.
    2. Select the Modules tab.
    3. Click Add External Web Module. The Add Web Module window opens.
    4. In the Document base field, type or browse to <directory>\plugins\com.ibm.ws.ast.st.utc\IBMUTC.ear\UTC.war, where in the <directory> is the installation directory of this product. For example, C:\Program Files\IBM\SDP70Shared\plugins\com.ibm.ws.ast.st.utc\IBMUTC.ear\UTC.war
    5. In the Path field, type /UTC.
    6. Ensure that the Auto Reloading check box is not selected. (This change is not necessary but will increase performance slightly).
    7. Click OK.
  5. Save your changes and close the editor.
  6. In the Servers view, start the Tomcat server.
  7. Open the Web browser and type the following URL: http://localhost:8080/UTC
Related concepts
Universal Test Client
Related tasks
Creating a Tomcat server
Adding the Apache Tomcat runtimes
Testing enterprise beans in the universal test client

Feedback