Skip to main content
Jamf Nation, hosted by Jamf, is the largest Apple IT management community in the world. Dialog with your fellow IT professionals, gain insight about Apple device deployments, share best practices and bounce ideas off each other. Join the conversation.

Starting and Stopping Tomcat

Overview

This article explains how to start and stop Tomcat on the Jamf Pro host server by using any of the following methods:

  • Jamf Pro Server Tools
  • Jamf Pro Server Tools Command-Line Interface
  • Jamf Pro database utility
  • System service command-line

Requirements

Administrative access to the Jamf Pro host server

Procedures

Restart Tomcat Using Jamf Pro Server Tools

  1. Open Jamf Pro Server Tools.
  2. Click Tomcat Settings.
  3. Click Start Tomcat or Stop Tomcat.

Note: You must run Jamf Pro Server Tools as an administrator to make changes to this pane.

Restart Tomcat Using the Jamf Pro Server Tools Command-Line Interface

You can start, stop, and restart Jamf Pro's Tomcat server by executing the following commands from a terminal:

jamf-pro server start
jamf-pro server stop
jamf-pro server restart

Restart Tomcat Using the Jamf Pro Database Utility

This method can be used with Jamf Pro 8.4 or later. Keep in mind that it may take a few moments for Tomcat to restart.

On macOS:
1. Open the Jamf Pro database utility on the Jamf Pro host server.
2. Enter the user name and password for an administrator account to the server, and then click OK.
3. If the Jamf Pro database utility is unable to locate the MySQL binary, you are prompted to specify the path. Click Continue and specify the location of the binary.
4. From the menu bar, choose Utilities > Restart Tomcat.
5. Click Yes when prompted.

On Linux:
1. On the Jamf Pro host server, open the Jamf Pro database utility by executing:

sudo java -jar /usr/local/jss/bin/JSSDatabaseUtil.jar

2. If prompted, enter the password for your account and then press the Return key.
3. If the Jamf Pro database utility is unable to locate the MySQL binary, you are prompted to specify the path. Click Continue and specify the location of the binary.
4. From the menu bar, choose Utilities > Restart Tomcat.
5. Click Yes when prompted.

On Windows:
1. Open the Jamf Pro database utility on the Jamf Pro host server.
Note: If the User Account Control setting are enabled, you must be logged in as the built-in Administrator.
2. If the Jamf Pro database utility is unable to locate the MySQL binary, you are prompted to specify the path. Click Continue and specify the location of the binary.
3. From the menu bar, choose Utilities > Restart Tomcat.
4. Click Yes when prompted.

Restart Tomcat Using the System Service Command Line

This method can be used with Jamf Pro 9.93 or later. Change the version of Tomcat provided in the instructions to match the version running on the host server.

On macOS:
1. Open Terminal on the Jamf Pro host server.
2. To unload the Tomcat web application process:

sudo launchctl unload /Library/LaunchDaemons/com.jamfsoftware.tomcat.plist

3. To reload and launch the Tomcat web application process:

sudo launchctl load /Library/LaunchDaemons/com.jamfsoftware.tomcat.plist

On Linux:
If you installed Jamf Pro using the Jamf Pro Installer, execute the following command:

sudo /etc/init.d/jamf.tomcat8 restart

If you installed Jamf Pro manually, execute the following command:

service tomcat8 restart

On Windows:
Open Command Prompt and execute the following commands:

Net stop Tomcat8
Net start Tomcat8
Like Comment
Order by:
SOLVED Posted: by Account Deleted

Updated today to v9.21, edited timeout and tried to reload Tomcat following command-line instructions above on OS X 10.8.5, errored:

chicago:\~ tech$ sudo launchctl unload /Library/LaunchDaemons/com.jamfsoftware.t omcat.plist?? launchctl: Couldn't stat("/Library/LaunchDaemons/com.jamfsoftware.tomcat.plist??"): No such file or directory nothing found to unload

I used the JSS Utility applet instead, but is this method still supported in JSS v9.21?

Like
SOLVED Posted: by Conklin

JSS v9.3 uses Tomcat version 7.
On windows: Net stop Tomcat7, etc.

Like
SOLVED Posted: by SeanA

When Tomcat is stopped and started on the server(s), what log files are updated to reflect that activity?

Like
SOLVED Posted: by SeanA

duplicate post

Like
SOLVED Posted: by spalmer

It would be really nice if this document talked about exactly what services and functions are affected/interrupted by restarting Tomcat. Obviously access to the web interface is affected, but does this also affect imaging/installing packages via policy/making changes via Casper Admin/etc. Along the same lines if a restart during the day absolutely required how much of an impact will it be. Will people currently working in the JSS web interface lose any unsaved changes? Will packages in the middle of copying for a policy get interrupted? Will policies currently running fail to execute? Etc.

This would go a long way towards helping decide when a restart should occur as to minimally impact services on a production server. And this is not only for our own internal needs because this will also help us plan when to work with JAMF Support on troubleshooting issues and bugs. I have had several recent cases where I am on a call with JAMF support making changes and we get to a point where we need to restart Tomcat and I can't during the middle of the day because this is a production server.

In the early days of using Casper there were only a few hundred Macs and 10 to 30 policies. Now we have about 1500 Macs and 750 policies so I am really paranoid about restarting Tomcat.

Like
SOLVED Posted: by Jakov

Does anyone know the command for starting the JSS via systemd on boot in Debian 8?
Today I upgraded from debian 7 to 8 and the above stated (init.d) command: '/etc/init.d/jamf.tomcat7 start' does work, but I have to do it manually.
I'd like to start the jss automatically when I reboot my server.

Like
SOLVED Posted: by Matt_Sim
On Windows Server 2088:

The future is now!

Like
SOLVED Posted: by jason.bracy
This method can be used with the JSS v9.84 or later.

Isn't 9.81 the latest?

Like
JAMFBadge
SOLVED Posted: by lisa.yohnk

@jason.bracy ~ Good catch! Fixed.

Like
SOLVED Posted: by jamesreynolds

@SeanA, I know this is a rather late reply, but the log (on OS X) is /Library/JSS/Tomcat/logs/catalina.<date>.log

Like
SOLVED Posted: by swhps

Where is the JSS Setup Utility on a Windows Server?

Like
SOLVED Posted: by dvasquez

Nice doc.

@swhps

you can probably find what you need to setup here:

http://resources.jamfsoftware.com/documents/products/documentation/Casper-Suite-9.0-JSS-Installation-Guide-for-Windows.pdf

Thanks.

Like
SOLVED Posted: by Taylor.Armstrong

Echoing swhps.... instructions should include the path to the JSS Setup Utility on Windows. It doesn't appear to be installed on my server anymore....

Like
SOLVED Posted: by rhoward

Just an FYI, this should be changed to tomcat8 if you have 9.93.

Like
SOLVED Posted: by mschroder

And on RHEL7 et al. you will need to run 'systemctl restart tomcat8' (or tomcat7 for JSS below 9.93).

Like
SOLVED Posted: by vmalapati

@spalmer ... I dont see any reply for the question. Can some one from the team reply for this case when we have to plan for the Tomcat restart and what might be the consequences ?

Thanks in advance

Like
SOLVED Posted: by zetaomegagon

@Jakov and #AnyOneElse

Systemd automatically converts init files in /etc/init.d/ to working systemd unit file upon system initialization (on Fedora there is a README in /etc/init.d/)

To restart the tomcat service do:

Do this to find out the service name ( 'jamf.tomcat8.service' on Fedora Server)

# systemctl list-units | grep tomcat

With the service name (you can omit the '.service' part), {start | stop | restart} the service

# systemctl restart jamf.tomcat8
Like
SOLVED Posted: by SimonFront

In the section about restarting Tomcat I assume this line:

On Windows: 1. Open the JSS Setup Utility on the JSS host server.

Should be:

On Windows: 1. Open the JSS Database Utility on the JSS host server.
Like