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
0
votes
0 answers

How to add jar files to a service in procun?

I am using Java as windows service. I used procrun method. Normally my service is working. I have API and I want use this API in my Java code , when service is working my API should work. I added .jar files in my Java project then got error like…
user9305947
0
votes
1 answer

Prunsrv exe killed via task manager but child process remains

I have a Java application run as a Windows service using procrun (specifically prunsrv). The service is defined as an exe StartMode so a batch file (run-my-app.bat) is run as the StartImage. Why I am not using jvm or java mode is a different story,…
Jacobs2000
  • 856
  • 2
  • 15
  • 25
0
votes
0 answers

procrun server crashes after few seconds

I have a web application, using Spring-Boot. There is now a need for this application to use a custom dll (in house build dll file). There is nothing wrong with this dll, as we use it on our other applications, and have no problems with it. To load…
Harriet
  • 1,633
  • 5
  • 22
  • 36
0
votes
1 answer

Spring boot & Apache procrun

I am trying to start Spring boot application as Windows service. I use Apache procrun for it. My folder structure is: |-C:\BillWeb | |-- BW3 | |- BillWeb-0.0.1-SNAPSHOT.jar | | | public | |- here place…
Leo
  • 1,029
  • 4
  • 19
  • 40
0
votes
1 answer

karaf (4.0.8) with commons-daemon

We are using Karaf(4.0.8) for first time , we are almost completed all the stuff but stuck at service mode. We dont want to use service wrapper (which is tanuki license ). We want to use Commons-daemon. I am trying to run Karaf with commons-dameon.…
Slok
  • 576
  • 1
  • 12
  • 27
0
votes
0 answers

How to install windows service as current user

The code below is used in Java to create Windows service. When I run the batch file with jar its installing service as system. Can anyone please help how to install the service as current user? user = "xyz" Is Windows login password…
Pradeep
  • 33
  • 1
  • 2
  • 8
0
votes
1 answer

Is there a way to set a local JAVA_HOME in Apache procrun on Windows?

I'm running Apache procrun on a machine with two JDKs and multiple Java processes running. I need to use the JDK that JAVA_HOME is not using. My question is: Is there a way to set a local JAVA_HOME in Apache procrun on Windows?
hawkeye
  • 34,745
  • 30
  • 150
  • 304
0
votes
2 answers

Wix service not listed in the local services

I used procrun to create a windows service and tried to install it using WIX. I have placed all the required registry keys at the relevant places. But the service is still not listed in the local services. Below is my code.
AnOldSoul
  • 4,017
  • 12
  • 57
  • 118
0
votes
1 answer

Wix installer registry keys not getting created in Wow64 node

I have a 64 bit machine in which I need to install a Windows service. This service was created using Apache procrun, therefore I need to create certain registry keys. These should go into the wow64 node as I expect them to, but they get created in…
AnOldSoul
  • 4,017
  • 12
  • 57
  • 118
0
votes
1 answer

Why is the thread in the "start" method been put to wait in the below context?

I was going through an Apache Procrun tutorial and came across the following implementation for the start and stop methods of the service. public static void start(String[] args) { startThread(); synchronized (loggerThread) { try { …
AnOldSoul
  • 4,017
  • 12
  • 57
  • 118
0
votes
1 answer

procrun "cannot find registry key for service 'prunsrv'"

I'm trying to run my application (which is in a fat jar) as a service on windows using procrun. Specifically my dev system is Server 2012. I have created a batch file like all the examples I have seen, but when I try to run it (or even just run…
Kevin Milner
  • 821
  • 2
  • 14
  • 30
0
votes
1 answer

JBoss EAP 6.2 running as Window Service with prunsrv - Can't stop service

I'm trying to get JBoss EAP 6.2 running as a window service on Windows Server (64bit). I've define the service with prunsrv as follows: prunsrv install "JBoss EAP" --DisplayName="JBoss EAP" --LogLevel=DEBUG…
DaveR
  • 1,295
  • 1
  • 13
  • 35
0
votes
1 answer

How to start a java application as a windows service with procrun?

I'm starting a java application as a windows service using apache procrun. It works in general, but when I inspect my service it tells me it is not running, even as it is! installed service: set PR_JVM=auto set PR_CLASSPATH=... set…
membersound
  • 81,582
  • 193
  • 585
  • 1,120
0
votes
2 answers

Installing jboss-as-7.1.1.Final as a Windows Service using Apache Commons Daemon (prunsrv.exe)

How can I configure JBoss 7 (specifically jboss-as-7.1.1.Final) as a windows service using Apache Commons Daemon (prunsrv.exe)? Specifically, I don't know the correct JBoss options for either prunsrv.exe, or for the prunmgr.exe GUI. If you have…
Scott
  • 169
  • 1
  • 3
  • 14
0
votes
1 answer

windows procrun - OrientDB install

I've been triying to install orientDB service from their documentation page: http://www.orientechnologies.com/docs/last/orientdb.wiki/Windows-Service.html I've manage to create the service the with Instrucctions that are inside. This is the log the…
Quarks
  • 57
  • 6