Details
Description
I tried to install Commons Daemon on 64 bit Windows 2003 Server with JDK 1.6.0_29 64 bit.
During starting a service (Cassandra) I receive the error log below.
As a workaround I installed 32 bit JVM, and configured the \jre6\bin\client\jvm.dll as JVM with the prunmgr //ES//servicename
(Hint found at http://www.mkyong.com/tomcat/tomcat-error-prunsrvc-failed-creating-java-jvmdll/ )
Compatibility with 64 bit JVM should be established.
[2011-11-25 02:50:51] [debug] ( prunsrv.c:1519) Commons Daemon procrun log initialized [2011-11-25 02:50:51] [info] ( :0 ) Commons Daemon procrun (1.0.7.0 32-bit) started [2011-11-25 02:50:51] [info] ( :0 ) Running 'cassandra' Service... [2011-11-25 02:50:51] [debug] ( prunsrv.c:1259) Inside ServiceMain... [2011-11-25 02:50:51] [info] ( :0 ) Starting service... [2011-11-25 02:50:51] [debug] ( javajni.c:206 ) loading jvm 'D:\apps\jre6\bin\server\jvm.dll' [2011-11-25 02:50:52] [debug] ( javajni.c:251 ) Setting DLL search path to 'D:\apps\jre6\bin\server' [2011-11-25 02:50:52] [debug] ( javajni.c:251 ) Setting DLL search path to 'D:\apps\jre6\bin' [2011-11-25 02:50:52] [error] ( javajni.c:264 ) %1 is not a valid Win32 application. [2011-11-25 02:50:52] [error] ( prunsrv.c:1045) Failed creating java D:\apps\jre6\bin\server\jvm.dll [2011-11-25 02:50:52] [error] ( prunsrv.c:1045) %1 is not a valid Win32 application. [2011-11-25 02:50:52] [error] ( prunsrv.c:1402) ServiceStart returned 1 [2011-11-25 02:50:52] [error] ( prunsrv.c:1402) %1 is not a valid Win32 application. [2011-11-25 02:50:52] [info] ( :0 ) Run service finished. [2011-11-25 02:50:52] [info] ( :0 ) Commons Daemon procrun finished