Installing Applicare as a Windows Service

Community post

Shared by the Applicare community. It has not been re-checked against Applicare 10.0, so confirm the steps in your environment or contact Support.

Open the command prompt and run the following commands to install Applicare as a service.

(Note: Make sure that you use appropriate path to jvm.dll and tomcat6.exe according to your environment.)

set JVM_PATH=C:\Java\jre\bin\server\jvm.dll
set TOMCAT_EXE=C:\Applicare\server\bin\tomcat6.exe
CD C:\Applicare\server\bin
tomcat6 //IS//Tomcat6 --DisplayName="Applicare" --Install="%TOMCAT_EXE%"
--Jvm="%JVM_PATH%" --StartMode=jvm --StopMode=jvm
--StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start
--StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stop

Now you can run the following command to open the service manager:

tomcat6w.exe //ES//

Go to the Java tab on the service manager and set Java classpath to:

C:\Applicare\server\bin\bootstrap.jar

Add the following to JVM Options (make sure that each JVM parameter is specified on a separate line):

-Dserver.name=ApplicareAdmin
-Darcturus_home=C:\Applicare\
-Dsolr.solr.home=C:\Applicare\server\solr
-javaagent:C:\Applicare\applicare-tomcat-aspects.jar

Go to logging tab on service manager and set Log Path to:

C:\Applicare\logs

Redirect STDOUT to:

C:\Applicare\logs\service_out.log

Redirect STDERR to:

C:\Applicare\logs\service_err.log

Now you can try starting the service from the service manager or Windows services.

If using a 64/32 bit JVM, you may face an issue while starting the service. In this case, replace:

**C:\Applicare\server\bin\**tomcat.exe with the attached tomcat6.exe (64 bit)

****C:\Applicare\server\bin\tomcat6w.exe with the attached tomcat6w.exe (64 bit)

Now try starting the service again.

At any point you can uninstall the service using the following command:

tomcat6.exe //DS//

To put the service icon in the system tray run the following command:

tomcat6w.exe //MS//

tomcat6.exe tomcat6w.exe

Join the discussion

Comments, voting and following are kept by Zendesk and need a Help Center account. This button opens the original discussion there.

Opens Zendesk · needs internet and sign-in

Still stuck? Contact support