cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco as a windows service

micdy
Champ in-the-making
Champ in-the-making
Hello, i have install and configure alfresco and it work perfectly.
The version i use is the 3.2r2 on windows server 2003.

The only problem i have is that i want to run alfresco as a windows service and dont know how to do this.
i have try the command on this page  :  http://wiki.alfresco.com/wiki/Configuring_Alfresco_as_a_Windows_Service
cd c:\alfresco\tomcat\bin
service.bat install Alfresco
tomcat6 //US//Alfresco –JvmMs=128 –JvmMx=512 –JvmSs=96 ++JvmOptions "-XX:MaxPermSize=128m"

But it not work  Smiley Sad

did i miss something?
maybe there something else to setup, or maybe this command is not good and i need to do something completly different?
I really dont know where to look.

thank you for your help.
3 REPLIES 3

micdy
Champ in-the-making
Champ in-the-making
I find more info.
here the messagebox i get when i start the service  : "Windows could not start the Apache Tomcat Alfresco on Local computer. For more information, review the system Event Log. If this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code 0"

here the content of the log file : jakarta_service_20100129.log
[2010-01-29 14:38:05] [info] Procrun (2.0.4.0) started
[2010-01-29 14:38:05] [info] Running Service…
[2010-01-29 14:38:05] [info] Starting service…
[2010-01-29 14:38:05] [994  prunsrv.c] [error] Failed creating java
[2010-01-29 14:38:05] [1269 prunsrv.c] [error] ServiceStart returned 1
[2010-01-29 14:38:05] [info] Run service finished.
[2010-01-29 14:38:05] [info] Procrun finished.


I anderstand nothing of this,   what is the error code 0,   and why the log show "Failed creating java"?
How can i make this service run

Thank you for your time  Smiley Happy

micdy
Champ in-the-making
Champ in-the-making
Well, i have make more test.

the system where i was tryin to make it work was a windows 2003 64bit.  and each time i was trying to start the service i had the error code 0.
Now i have install Alfresco 3.2r2 on a windows xp 32bit system to make more tests, and it work perfectly.

maybe there is just a problem with the service on 64 bit system?
someone had any success with 64 bit system?
if so,  how?

thank again

sylvain78
Champ in-the-making
Champ in-the-making
To install Alfresco as a Windows Service on a 64 bits platform (using Java 64 bits), you cannot use the Tomcat6 and Tomcat6w (32 bits version) bundled with Alfresco.

You need to download the 64 bits version from the Apache SVN : http://svn.apache.org/repos/asf/tomcat/tc6.0.x/tags/TOMCAT_6_0_20/res/procrun/amd64/

I did it without any problem on a Windows Server 2008 64 bits.