Webservices fails with error: "Failed creating java C:\Program Files\VMware\Infrastructure\jre\\bin\server\jvm.dllagement services" after installing vCenter Server
VMware VirtualCenter Management Webservices fail to start after installing vCenter Server.
The Tomcat service log (located at %Program Files%\VMware\Infrastructure\tomcat\logs) contains entries similar to:
[YYYY-MM-DD 20:05:25] [info] Procrun (2.0.4.0) started [YYYY-MM-DD 20:05:25] [info] Running Service... [YYYY-MM-DD 20:05:25] [info] Starting service... [YYYY-MM-DD 20:05:25] [174 javajni.c] [error] The specified module could not be found. [YYYY-MM-DD 20:05:25] [994 prunsrv.c] [error] Failed creating java C:\Program Files\VMware\Infrastructure\jre\\bin\server\jvm.dllagement services. [YYYY-MM-DD 20:05:25] [1269 prunsrv.c] [error] ServiceStart returned 1 [YYYY-MM-DD 20:05:25] [info] Run service finished. [YYYY-MM-DD 20:05:25] [info] Procrun finished.
[error] %1 is not a valid Win32 application. [error] Failed creating java C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll [error] %1 is not a valid Win32 application. [error] ServiceStart returned 1 [error] %1 is not a valid Win32 application
Environment
VMware vCenter Server 5.0.x
VMware vCenter Server 4.1.x
VMware vCenter Server 4.0.x
Cause
The issue occurs when the Java related files are not found in the installed path. The default path is %Program Files%\VMware\Infrastructure\jre\bin\server\.
Resolution
When Java is not installed
Reinitiate the Java installation in the default path, %Program Files%\VMware\Infrastructure\jre\bin\server\ .
In the text box for Java Virtual Machine, point to the location of the Java Runtime Environment (JRE) installed during the installation of vCenter Server.