This forum is now out of date, for our new forum Click Here
Install Tomcat as a windows service
Question Asked
Hi YF Support,

I have use to install Tomcat as a windows service but it shows a message as attached below when I start it from Service. Please help me this problem.

Thanks.
Attachments:
Must be logged in to view attachments

null

Thu May 9, 2013 12:29 PM

Comment
Hi ,

I believe what you're after is covered here:
Cannot Start the Yellowfin Windows service - Error Code 0

Please let us know if you still have issues with this.

Regards,
David

David

Fri May 10, 2013 10:59 AM

Comment
Hi,

I refer to your link but it still not working. I've install YF on Windows 64 bit. The Jakarta.log file shows:

[2013-05-09 19:30:29] [info] Commons Daemon procrun (1.0.7.0 64-bit) started
[2013-05-09 19:30:29] [info] Running 'Yellowfin' Service...
[2013-05-09 19:30:29] [info] Starting service...
[2013-05-09 19:30:29] [error] %1 is not a valid Win32 application.
[2013-05-09 19:30:29] [error] Failed creating java C:\Program Files (x86)\Java\jre7\bin\client\jvm.dll
[2013-05-09 19:30:29] [error] %1 is not a valid Win32 application.
[2013-05-09 19:30:29] [error] ServiceStart returned 1
[2013-05-09 19:30:29] [error] %1 is not a valid Win32 application.
[2013-05-09 19:30:29] [info] Run service finished.
[2013-05-09 19:30:29] [info] Commons Daemon procrun finished
[2013-05-09 19:30:59] [info] Commons Daemon procrun (1.0.7.0 64-bit) started
[2013-05-09 19:30:59] [info] Running 'Yellowfin' Service...
[2013-05-09 19:30:59] [info] Starting service...
[2013-05-09 19:30:59] [error] %1 is not a valid Win32 application.
[2013-05-09 19:30:59] [error] Failed creating java C:\Program Files (x86)\Java\jre7\bin\client\jvm.dll
[2013-05-09 19:30:59] [error] %1 is not a valid Win32 application.
[2013-05-09 19:30:59] [error] ServiceStart returned 1
[2013-05-09 19:30:59] [error] %1 is not a valid Win32 application.
[2013-05-09 19:30:59] [info] Run service finished.
[2013-05-09 19:30:59] [info] Commons Daemon procrun finished

Note: It is working if i install YellowFin on Windows 32 bit.

Thanks,

null

Fri May 10, 2013 5:04 PM

Comment
Hi,

It looks like your Java paths are still pointing to the 32-bit libraries (program files (x86) is actually for 32-bit applications).

You just need to make sure the Windows service is using the 64-bit Java libraries.
It may be as easy as switching from 'program files (x86)' to 'program files'.

Please let me know how you go.

Regards,
David

David

Mon May 13, 2013 10:19 AM

Comment
Hi YF Support,

Thanks for your support.

Thanks.

null

Mon May 13, 2013 5:38 PM

Comment
No problems, we have seen this a few times, and it's always the same issue ;).

Please let us know if you run into any other problems.

David

Tue May 14, 2013 8:45 AM