CSP-14869 - Unable to configure Confluence to run as a service

Product: Confluence

Environment

Operating System  
Affect Version/s 2.7
JVM  
Database SQL Server
Application Server  

Error Message

C:\confluence\confluence-2.7-std\bin>echo %java_home%
C:\Progra~1\Java\jdk1.6.0_04

C:\confluence\confluence-2.7-std\bin>service.bat install Confluence
Installing the service 'Confluence' ...
Using CATALINA_HOME: C:\confluence\confluence-2.7-std
Using CATALINA_BASE: C:\confluence\confluence-2.7-std
Using JAVA_HOME: C:\Progra~1\Java\jdk1.6.0_04
Using JVM: C:\Progra~1\Java\jdk1.6.0_04\jre\bin\server\jvm.dll
The service 'Confluence' has been installed.

C:\confluence\confluence-2.7-std\bin>tomcat5 //US//Confluence --Startup auto

C:\confluence\confluence-2.7-std\bin>net start Confluence
The Apache Tomcat Confluence service is starting.
The Apache Tomcat Confluence service could not be started.

A service specific error occurred: 0.

More help is available by typing NET HELPMSG 3547.

The Confluence logs show the following error:

[2008-10-30 15:13:15] [947 prunsrv.c] [error] Failed creating java C:\jdk1.6.0_10\jre\bin\server\jvm.dll
[2008-10-30 15:13:15] [1202 prunsrv.c] [error] ServiceStart returned 1
 

Symptom

Diagnostics/Test

Root Cause

Tomcat can't find msvcr71.dll. This appears to be a known Sun issue.

Solution

Place a copy of JDK_HOME\bin\msvcr71.dll to a system path directory ( <windows>/system32 directory ). If this doesn't work, place it in Tomcat's bin folder.

Labels

confluence confluence Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.