Windows Service HOW-TO (Talk)

cancel
Showing results for 
Search instead for 
Did you mean: 

Windows Service HOW-TO (Talk)

willabson
Member II
0 0 1,200

The Alfresco.bat file sets the path for Netbios32 it should be explained here.

There is a bug in the file C:\Alfresco\tomcat\bin\service.bat, it does not set the PermGen options correctly.
Open the file and edit line 123 as follows:



'%EXECUTABLE%' //US//%SERVICE_NAME% ++JvmOptions '-XX:MaxPermSize=128m;-Djava.io.tmpdir=%CATALINA_BASE%\temp;-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager;-Djava.util.logging.config.file=%CATALINA_BASE%\conf\logging.properties' --JvmMs 128 --JvmMx 512 --JvmSs=96

--Jpv 16:41, 22 October 2009 (BST)




I was getting this error when attempting to start the tomcat service. 

[2008-04-15 17:20:12] [947  prunsrv.c] [error] Failed creating java C:\Program Files\Java\jdk1.6.0_05\jre\bin\server\jvm.dll
[2008-04-15 17:20:12] [1202 prunsrv.c] [error] ServiceStart returned 1
[2008-04-15 17:22:29] [174  javajni.c] [error] The specified module could not be found.

The fix for me was located here:

http://forum.java.sun.com/thread.jspa?threadID=5121172

I copied the msvcr71.dll file to my c:\windows\system32 directory, and the service started correctly.

About the Author
This is my old account. You can find me now at my new profile: https://community.alfresco.com/people/wabson