[MNT-15767] CLONE - Tomcat service doesn't start on some Windows environments Created: 29-Feb-16  Updated: 30-Sep-16  Resolved: 01-Mar-16

Status: Closed
Project: Service Packs and Hot Fixes
Component/s: Installer
Affects Version/s: 5.0.2
Fix Version/s: 5.0.2.14

Type: Hot Fix Request
Reporter: Adina Parpalita Assignee: Closed Bugs
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0 minutes
Time Spent: 1 hour, 30 minutes
Original Estimate: Not Specified
Environment:

Alfresco Enterprise 5.0.2.14
Windows 7 x86
Windows 2012 x64


Issue Links:
Blocks
blocks MNT-15752 CLONE - 5.0.2.14: Unable to connect t... Closed
Cloners
Bug Priority:
Category 1
Hot Fix Version: 5.0.2.14
Build Location: https://releases.alfresco.com/Enterprise-5.0/5.0.2/PATCH-5.0.2.14/build-00118/

 Description   

Steps to reproduce:

1. Install Alfresco OOTB on a Windows 7 / Windows Server machine
2. Launch Alfresco after installation

Expected result: Alfresco starts successfully

Actual result: Tomcat does not start.

Error in logs:

2016-02-29 10:52:31 Commons Daemon procrun stderr initialized
java.lang.NoClassDefFoundError: Main
Caused by: java.lang.ClassNotFoundException: Main
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
Exception in thread "main" 
[2016-02-29 12:38:48] [info]  [ 6512] Commons Daemon procrun (1.0.15.0 64-bit) started
[2016-02-29 12:38:48] [info]  [ 6512] Running 'alfrescoTomcatnum8' Service...
[2016-02-29 12:38:48] [info]  [ 2904] Starting service...
[2016-02-29 12:38:48] [error] [ 3892] FindClass Main failed
[2016-02-29 12:38:48] [error] [ 2904] Failed to start Java
[2016-02-29 12:38:48] [error] [ 2904] ServiceStart returned 4
[2016-02-29 12:38:48] [info]  [ 6512] Run service finished.
[2016-02-29 12:38:48] [info]  [ 6512] Commons Daemon procrun finished

Trying to start Tomcat from the command line:

C:\AlfrescoHF\tomcat\bin>tomcat7.exe
[2016-02-29 12:39:45] [warn]  [ 3664] The system cannot find the Registry key fo
r service 'tomcat7'
[2016-02-29 12:39:45] [error] [ 3664] Load configuration failed
[2016-02-29 12:39:45] [error] [ 3664] The system cannot find the file specified.
[2016-02-29 12:39:45] [error] [ 3664] Commons Daemon procrun failed with exit va
lue: 2 (Failed to load configuration)
[2016-02-29 12:39:45] [error] [ 3664] The system cannot find the file specified.

Error in Event Viewer:

The alfrescoTomcatnum8 service terminated with the following service-specific error: 
The system cannot open the file.

Notes:

  • seems to be the same as ACE-4709
  • Reproduced the problem on Windows 7 x86 and Windows Server 2012 x64
  • NOT reproducible on all VMs

Generated at Tue Aug 11 23:39:20 BST 2020 using Jira 7.13.15#713015-sha1:7c5ddd2c3e1709974ae9c48c17df8edd3919fe2c.