Questions tagged [procrun]

Procrun is a set of applications that allow Windows users to wrap (mostly) Java applications (e.g. Tomcat) as a Windows service.

Procrun is a set of applications that allow Windows users to wrap (mostly) Java applications (e.g. Tomcat) as a Windows service.

The service can be set to automatically start when the machine boots and will continue to run with no user logged onto the machine.

Procrun comprises 2 applications:

  1. Prunmgr is a GUI application for monitoring and configuring procrun services.
  2. Prunsrv is a service application for running applications as services. It can convert any application (not just Java applications) to run as a service.

For more information, visit Apache Commons site here Daemon:Procrun

102 questions
2
votes
1 answer

Adding multiple values to an environment in registry and retrieving in Java application

I am using procrun to run a java application as a service. I used following to set path: set PATH="dir1;dir2;%PATH%" procrun.exe //US//%SERVICE_NAME% ++Environment PATH=%PATH% which updates environment value in registry as: But, in my Java…
tryingToLearn
  • 10,691
  • 12
  • 80
  • 114
2
votes
2 answers

How to start an executable jar from spring-boot with procrun windows service executor?

I created a runnable jar using spring-boot-maven-plugin. The jar can be run using jar -jar %FILENAME%. But I'd like to install it as a windows service using procrun. Problem: when I then start the app, I get the following output: [2016-12-05…
membersound
  • 81,582
  • 193
  • 585
  • 1,120
2
votes
1 answer

Using procrun to start a service as "Network Service"

I'm trying to start a service as "Network Service" user on Windows, using procrun with the ServiceUser argument: prunsrv //IS//%SERVICE_NAME% --DisplayName=%DISPLAY_NAME% --Classpath=%CD%\%JAR_NAME%.jar;%CD% --Jvm=auto --Startup=auto…
Nate Reed
  • 6,761
  • 12
  • 53
  • 67
2
votes
1 answer

procrun in --StartMode=Jvm running main that throws exception does not terminate

Trying out Apache procrun I see a behaviour that I do not understand. It boils down to the main method of the Java program throwing an exception. This is not logged anywhere and the Windows service does not stop. To investigate further I changed the…
Harald
  • 4,575
  • 5
  • 33
  • 72
2
votes
1 answer

How to get Apache Windows service daemons (procrun prunsrv) to use a java library path so Microsoft SQL Integrated Security Authentication can work

I have a Java application that needs to run as a Windows service. The application needs to connect to Microsoft SQL server using Integrated Security. This means that Java needs to have the location of the driver dll in the java library…
Luke Machowski
  • 3,983
  • 2
  • 31
  • 28
2
votes
1 answer

run jetty 9 as service using procrun

I am facing issues to run jetty as service using procrun on the target machine I have only jre 1.7 .0_67, I can't install JDK and I don't have JAVA_HOME on the machine here is my script: @echo off set SERVICE_NAME="Batch_Server" set…
Michael Biniashvili
  • 500
  • 1
  • 12
  • 24
2
votes
1 answer

apache daemon procrun- java app as windows service- failing to start in 64-bit windows 7

my java application is successfully running in 32-bit Windows 7 as a Windows service. Recently I migrated to 64-bit. I executed my procrun script and installed my service as I did previously for 32-bit os. It is displaying in services but failing in…
2
votes
2 answers

Apache Derby as a Windows Service

I need to run an Apache Derby Server as a service so Derby starts together with the machine it is installed on. Now I tried three solutions -based on my research- to create such a service but none of them are either feasible or generate errors. Use…
Scyla
  • 199
  • 3
  • 14
2
votes
4 answers

How do I setup a standalone java application to run as a service using procrun?

I'm trying to setup a standalone java service using commons-daemon (procrun) Does anyone know where to get procrun and how to get it up and running? Are there any alternatives? (I would use Java Service Wrapper but I can't use GPL Licensed code)
ScArcher2
  • 85,501
  • 44
  • 121
  • 160
1
vote
0 answers

Run ActiveMQ as a 64-bit service on Windows Server 2008

We were using Tanuki java service wrapper to run ActiveMQ previously. After migrating to a 64-bit server running Windows Server 2008 R2, we're not able to install ActiveMQ as a service unless we pay for the Standard or Professional version of java…
user619804
  • 2,286
  • 12
  • 46
  • 71
1
vote
1 answer

procrun stopservices method is not getting excuted properly

I have a weird problem. I am using Apache services to configure my windows services. As per Procrun, my batch files should have configured for start and stop services. my problem is when i start my application the start service is executed. but…
AKV
  • 183
  • 4
  • 24
1
vote
1 answer

Springboot jar as window service

I am trying to run springboot jar as window service and i was able to do using below script. It generates two process prunsrv.exe and java.exe. But on stopping the service it only stops prunsrv.exe(using //SS//Myservice) but i can see java.exe…
Darth
  • 23
  • 3
1
vote
0 answers

Tomcat procrun installer does not work with spaces in path for catalina_home

I'm installing tomcat from the .zip and using the service.bat file. I noticed that it does not set things right if the catalina_base or catalina_home paths have spaces in them. I call service.bat with the following: set CATALINA_HOME=C:\Program…
Tacitus86
  • 1,314
  • 2
  • 14
  • 36
1
vote
1 answer

Apache Tomcat 10.0 Silent Installation

Does anyone know how to install Apache Tomcat 10 silently on the commandline? I have tried /S and it just doesn't work. It seems like nothing is running and I get no error, it just goes directly to another command prompt. Without any arguments the…
Tacitus86
  • 1,314
  • 2
  • 14
  • 36
1
vote
1 answer

TOMCAT: quote < ' > in CATALINA_HOME environment variable causing load error?

I'm trying to install tomcat as a service using service.bat in the following path : C:\Program Files\text with' quote\Tomcat but I keep getting the following error : java.io.FileNotFoundException: C:\Program Files\text with…
bjalexmdd
  • 186
  • 1
  • 11