Show Table of Contents
2.4.5. Running Enterprise Web Server
To run JBoss Enterprise Web Server, run the following:
- Tomcat (6 or 7, see Section 2.4.5.1, “Running Tomcat”)
- HTTP server (Section 2.4.5.2, “Running HTTP”)
2.4.5.1. Running Tomcat
You can run Tomcat either in the background as a service (see Section 2.4.5.1.2, “Running Tomcat as a Service”) or in the foreground as a program (see Section 2.4.5.1.1, “Running Tomcat as a Program”).
Important
It is strongly recommended to run Tomcat with the startup.sh script (see the startup.sh entry in Section 2.4.5.1.1, “Running Tomcat as a Program”). Note that this is the only supported running method.
Before starting Tomcat, ensure that the following prerequisites are met:
- The tomcat user is created (see Procedure 2.7, “Creating tomcat User”).
- JAVA_HOME is set correctly (see Procedure 2.6, “Setting JAVA_HOME”).
2.4.5.1.1. Running Tomcat as a Program
To run Tomcat as a program, run one of the following scripts:
startup.shscriptRun the following command as the root user with the respective Tomcat version (6or7):# sh /opt/jboss-ews-2.1/tomcat<VERSION>/bin/startup.sh
The system reads the configuration file and changes to the user and group to the tomcat user account (that is, Tomcat is always run under the tomcat user). By default,tomcat-nativeis automatically added to theLD_LIBRARY_PATHand-Djava.library.pathduring Tomcat startup.catalina.shscriptRun the following command with the respective Tomcat version (6or7) :# sh /opt/jboss-ews-2.1/tomcat<VERSION>/bin/catalina.sh
- custom script, which calls
catalina.sh
2.4.5.1.2. Running Tomcat as a Service
To run Tomcat as a service, you can use the daemon script with jsvc provided in Tomcat 6 and 7.
For more information about Jsvc, see About Jsvc chapter of the HTTP Connectors and Load Balancing Guide .

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.