cancel
Showing results for 
Search instead for 
Did you mean: 

Installing FSR as service in Windows

fsweb
Champ in-the-making
Champ in-the-making
We have Alfresco Enterprise 3.1.1 WCM on a RHEL 5 box and I'm trying to install the FSR 3.1 on a Windows 2008 box. It installs and runs fine, however when logging the user off it also kills the FSR. I know it runs inside a JVM and I think that's the problem. I've tried configuring the deploy_start.bat to run as a service, start on boot, etc. but to no avail. I checked the wiki and it says it can be installed as a service but doesn't give any info on how. Does anyone know how to do this??

Thanks for any help.
12 REPLIES 12

g_rathod
Star Contributor
Star Contributor
Above [snehal.shah's  steps] are the steps we performed for 32bit machine.
for 64-bit we required license to purchase.
and we tried on windows machine.


Thanks,

boneill
Star Contributor
Star Contributor
Has anyone managed to get this to work for FSR 32r.

boneill
Star Contributor
Star Contributor
Hi Guys,
Firstly thanks for original post.  It got me 90% of the way there.  Here is the updated version of instructions for 32r for anyone who needs it.

Solution Steps for Windows 32 bit - Alfresco 32r Standalone Deployment Receiver (New name for FSR)
========================================================
1. Download Java Wrapper from following URL.
a. http://wrapper.tanukisoftware.org/doc/e … wnload.jsp We downloaded Community Version for 32 bit windows.
2. Unzip the wrapper to some folder. i.e C:\wrapper
3. Get Alfresco Standalone Deployment Receiver Deployer for 3.2
4. Copy all Jar files from Standalone Deployment Receiver Deployer 3.2 to "wrapper\lib" folder.
5. Create a empty jar file and add your " deployment.properties" and the deployment folder with all of your deployment target xml files from Standalone Deployment Receiver. Copy this jar file to "wrapper\lib" folder. Name it as " deployment-config.jar".
6. Copy following files from Standalone Deployment Receiver Deployer 3.2 to "wrapper\bin" directory.
a. application-context.xml
b. shutdown-context.xml
7. Copy following files from "wrapper\src\bin" to "wrapper\bin" directory and remove ".in" from file name to make it batch file.
a. InstallApp-NT.bat.in (after rename it should be " InstallApp-NT.bat" )
b. UninstallApp-NT.bat.in (after rename it should be " UninstallApp-NT.bat" )
8. Open "wrapper/conf/wrapper.conf" file and make following changes.
a. change " wrapper.java.command" to "%JAVA_HOME%/bin/java"
b. change " wrapper.java.mainclass" to "org.tanukisoftware.wrapper.WrapperStartStopApp"
c. Add following classpath entries. Remove default entries for classpath.
i. wrapper.java.classpath.1=../lib/wrapper.jar
ii.wrapper.java.classpath.2=%JAVA_HOME%/lib/tools.jar
iii.wrapper.java.classpath.4=../lib/alfresco-deployment-3.2.0r.jar
iv.wrapper.java.classpath.5=../lib/alfresco-core-3.2.0r.jar
v.wrapper.java.classpath.6=../lib/alfresco-repository-3.2.0r.jar
vi.wrapper.java.classpath.7=../lib/commons-logging-1.1.jar
vii.wrapper.java.classpath.8=../lib/jug-lgpl-2.0.0.jar
viii.wrapper.java.classpath.9=../lib/log4j-1.2.15.jar
ix.wrapper.java.classpath.10=../lib/spring-2.0.8.jar
x.wrapper.java.classpath.11=../lib/deployment-config.jar
xi.#wrapper.java.classpath.10=../lib/deployment.properties
xii.#wrapper.java.classpath.11=../lib/shutdown-context.xml
xiii.#wrapper.java.classpath.12=../lib/application-context.xml
d. Add following additions to parameters.
i. wrapper.java.additional.2=-Dcatalina.base=..
ii. wrapper.java.additional.3=-Dcatalina.home=..
iii. wrapper.java.additional.4=-Djava.io.tmpdir=../temp
e. Add following Application Parameters
i. wrapper.app.parameter.1=org.alfresco.deployment.Main
ii. wrapper.app.parameter.2=1
iii. wrapper.app.parameter.3=application-context.xml
iv. wrapper.app.parameter.4=org.alfresco.deployment.Main
v. wrapper.app.parameter.5=TRUE
vi. wrapper.app.parameter.6=1
vii. wrapper.app.parameter.7=shutdown-context.xml
f. Change service name related changes as per below
i. # Name of the service
ii. wrapper.name=Alfresco Standalone Deployment Receiver
iii. # Display name of the service
iv. wrapper.displayname=Alfresco Standalone Deployment Receiver
v. # Description of the service
vi. wrapper.description=Alfresco Standalone Deployment Receiver
9. After all above changes, click on "wrapper\bin\InstallApp-NT.bat" file. You should be able to see service name "Alfresco Standalone Deployment Receiver". For the first time, you need to start the service manually.

Please follow the above steps. You can check service log under "wrapper\log\wrapper.log" file.

Regards