Tomcat service terminated unexpectedly ?

You will get this Event after SAN changes or moving tomcat from one Disk location to another on Windows.

The tomcat55 service terminated unexpectedly. It has done this x time(s).

Compare old directory with windiff and if you find follwing file missing then tomcat service will not start. also this files should have very specific permissions.

only the service account should have ownership permission and no ohter user should have any kind of permisions otherwise tomcat service will terminate itself during startup.

jmxremote.password & snmp.acl

you can setup permission again using the steps given below.

Login with the service account.

Below describes how to set the file permissions of the password
file on a Windows system using NTFS so that only the owner has read
and write permissions on this file. If the file system is FAT32,
the file system security is not supported and the password
file cannot be secured.

  1. Right-click on the jmxremote.password file and
    select the Properties option.Explorer
  2. Select the Security tab:File Properties

    Note: If you are on Windows XP and the computer is not part of
    a domain, then the Security tab may be missing.
    To reveal the Security tab, do the following:

    1. Open Windows Explorer, and choose Folder Options from the
      Tools menu.
    2. Select the View tab and scroll to the bottom of
      the Advanced Settings and clear the check box next to “Use
      Simple File Sharing.”
    3. Click OK to apply the change

    Folder Options

    When you restart Windows Explorer, the Security tab should now be
    visible.

  3. Select the Advanced button in the Security tab:Security
  4. Select the Owner tab to check if the file owner matches
    the user under which the VM is running:Advanced Security Setting
  5. Select the Permission tab to set the permissions:If there are permission entries inherited from a parent directory that
    allow users or groups other than the owner access to the file,
    then clear the “Inherit from parent the permission entries that apply to
    child objects” checkbox as shown in the following:

    Clear Inherit

    At this point it will prompt you to ask if the inherited permissions should
    be copied from the parent or removed. Press the Copy button:

    Copy Permission

    Then remove all permission entries that grant access to users or groups
    other than the file owner by clicking the user or group and press
    the Remove button for all users and groups except the file owner.
    Now there should be a single permission entry which grants
    Full Control to the owner.

    Complete

Press OK to apply the file security change. The password file is now secure and can only be accessed by the owner.

Advertisements

About itmiddleware
Working as Sr Software Engineer for reputed MNC Bank on Web and Middleware

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: