Product SiteDocumentation Site

2.2.7. Running

Once installed, you can run the Tomcat Servlet Container by executing the one of the startup scripts in the bin directory (on Linux or Windows), or by double-clicking the run.bat executable batch file in that same directory (on Windows only). However, we suggest always starting Tomcat using the terminal or Command Prompt because you are then able to read—and act upon—any startup messages, and possibly debug any problems that may arise. In the Linux terminal or Command Prompt, you will be able to tell that the container started successfully if the last line of output is similar to the following:
Using CATALINA_BASE:   /home/silas/temp/apps/mobicents/sip_servlets_server/mss-tomcat-0.7.2
Using CATALINA_HOME:   /home/silas/temp/apps/mobicents/sip_servlets_server/mss-tomcat-0.7.2
Using CATALINA_TMPDIR: /home/silas/temp/apps/mobicents/sip_servlets_server/mss-tomcat-0.7.2/temp
Using JRE_HOME:       /etc/java-config-2/current-system-vm
Detailed instructions are given below, arranged by platform.
Procedure 2.16. Running MSS for Tomcat on Linux
  1. Change your working directory to the SIP Servlets-customized Tomcat's topmost directory (the one in which you extracted the zip file's contents to):
    ~]$ cd "mss-tomcat-<version>"
    
  2. (Optional) Ensure that the bin/startup.sh start script is executable:
    mss-tomcat-<version>]$ chmod +x bin/startup.sh
    
  3. Finally, execute the startup.sh Bourne shell script:
    mss-tomcat-<version>]$ ./bin/startup.sh
    
Procedure 2.17. Running MSS for Tomcat on Windows
  1. There are several different ways to start the Tomcat Servlet Container on Windows. All of the following methods accomplish the same task.
    Using Windows Explorer, change your folder to the one in which you unzipped the downloaded zip file, and then to the bin subfolder.
  2. Although not the preferred way (see below), it is possible to start the Tomcat Servlet Container by double-clicking on the startup.bat executable batch file.
    • As mentioned above, the best way to start the Tomcat Servlet Container is by using the Command Prompt. Doing it this way will allow you to view all of the server startup details, which will enable you to easily determine whether any problems were encountered during the startup process. You can open the Command Prompt directly from the <topmost_directory>\bin folder in Windows Explorer, or you can open the Command Prompt via the Start menu and navigate to the correct folder:
      C:\Users\Me\My Downloads> cd "mss-tomcat-<version>"
      
    • Start the Tomcat Servlet Container by running the executable startup.bat batch file:
      C:\Users\Me\My Downloads\mss-tomcat-<version>>bin\startup.bat