Register Alfresco FSR as Windows Service running on 64 bit using YAJSW

(1) First download the latest stable build of YAJSW from here.
(2) Unzip yajsw-stable-11.0.zip in D:\apps\yajsw folder.
(3) Install Alfresco FSR into D:\apps\FSR folder. (Ex. D:\apps\FSR)
(4) Copy all *.jar files from D:\apps\FSR folder to D:\apps\yajsw\lib folder.
(5) Copy application-context.xml and shutdown-context.xml files from D:\apps\FSR to D:\apps\yajsw\bat folder.
(6) Now open coammand prompt. Goto D:\apps\FSR directory and run below command.

jar cf deployment-config.jar deployment.properties deployment/*

Above command will create “deployment-config.jar” jar file in D:\apps\FSR directory.
(7) Now Start FSR manually and check its PID in “Task Manager”. Note down the PID of Alfresco FSR.
(8) Now goto D:\apps\yajsw\bat folder and run below command.

genConfig.bat “PID of Alfresco FSR”

Ex: genConfig.bat 1492

(9) This will generate the wrapper.conf file under D:\apps\yajsw\conf folder. Now Open wrapper.conf file and set below path.
Note: please make changes of path as per your configuration.

wrapper.working.dir=D:\\apps\\FSR\\
wrapper.java.app.mainclass=org.alfresco.deployment.Main
wrapper.console.title=Alfresco Deployment Server
wrapper.ntservice.name=Alfresco Deployment Server
wrapper.ntservice.displayname=Alfresco Deployment Server
wrapper.ntservice.description=Alfresco Deployment Server
wrapper.java.command = C:\\Program Files\\Java\\jdk1.6.0_22\\bin\\java
wrapper.app.parameter.1 = application-context.xml
wrapper.java.additional.1=-server
wrapper.java.additional.2 = -Djava.ext.dirs=.;C:\\Program Files\\Java\\jdk1.6.0_22\\jre\\lib\\ext


(10) Execute Alfresco FSR as console application by calling and confirm that Alfresco FSR is running correctly.

D:\apps\yajsw\bat\runConsole.bat

(11) If everything is ok then install Alfresco FSR as Windows Service call using below command.

D:\apps\yajsw\bat\installService.bat

Done!!!

Google

No comments:

Post a Comment