Questions tagged [prunsrv]

Prunsrv is a service application for running applications as services. It can convert any application to run as a service.

Prunsrv is a service application for running applications as services. It can convert any application to run as a service. Prunsrv is part of the Apache Commons Procrun application set.

16 questions
6
votes
3 answers

WildFly 10.1 Service is not starting

When starting the WildFly service it fails with the error message: The data area passed to a system call is too small. This is how I installed the service: I have copied C:\wildfly-10.1.0.Final\docs\contrib\scripts\service to…
NDB
  • 618
  • 1
  • 7
  • 16
5
votes
1 answer

Is it possible to start a Java Runtime Image with prunsrv using jvm mode?

Background: Since Java 9 it is possible to create custom runtime images (JRE+program) using jlink. It is possible to install Java programs as Windows service using prunsrv.exe (part of Apache Commons Daemon). prunsrv can be used in three start…
Gustave
  • 3,359
  • 4
  • 31
  • 64
4
votes
2 answers

Apache common daemons - procrun. Stop service hanging

Hi I installed my java service to run through apache common daemons prunsrv. I have problems stopping it. Sometimes when restarting the service from the windowse services console it hangs; the strange thing is that my service is correctly stopped as…
user2820147
  • 43
  • 1
  • 5
2
votes
0 answers

prunsrv installed service cannot start

I tried to install a java program using prunsrv. The environment is Windows 2008 R2 64 bit, the jar file was complied with Java 1.8 64 bit. The result service registry entry was also attached. The Java class source is similar to this: package…
user1941319
  • 375
  • 3
  • 19
2
votes
1 answer

How to close a prunsrv service propertly in spring?

I'm using apache prunsrv service to install a jar as a windows service. When the service is shut down, the application crashes. set PR_STARTMETHOD=main set PR_STOPMETHOD=exit My startup and shutdown class looks as follows: public class…
membersound
  • 81,582
  • 193
  • 585
  • 1,120
1
vote
1 answer

Can't set User to run the service

I'm using prunsrv to run a jar file as a windows service. I need to change the user that runs the service from LocalSystem to a machine user and i can't seem to make it work. This is the bash script i have to create the service: %PRUNSRV%…
djointster
  • 346
  • 3
  • 12
1
vote
1 answer

Does prunsrv.exe use multiple threads to run a Java application as a service?

Configured a jvm mode Java Windows service following this tutorial: (https://joerglenhard.wordpress.com/2012/05/29/build-windows-service-from-java-application-with-procrun/). I am printing log messages by thread ID to a file in the start and stop…
Talespin_Kit
  • 20,830
  • 29
  • 89
  • 135
0
votes
1 answer

Apache Commons Daemon (prunsrv) problems in JDK17

Good morning, Before JDK17 I had a working setup to use prunsrv in Windows to start a Java app as a service. Now I tried the same in JDK17 and I got errors. I could make some progress but now I am stuck with the latest error I got: The system cannot…
Viktor
  • 1,325
  • 2
  • 19
  • 41
0
votes
1 answer

org.jasypt.exceptions.EncryptionOperationNotPossibleException Jasypt and Hibernate running as windows service

A Hibernate application (no spring-boot) uses Jasypt-1.9.3 to decrypt database password from properties file. And it works just fine as a jar. However when the jar file is run as windows service using prunsrv.exe (a Commons Daemon Service Runner) it…
program_k
  • 31
  • 5
0
votes
0 answers

Procrun (prunsrv.exe) fails to find jvm.dll automatically with JDK 11

Using the latest Apache Commons Daemon 1.2.0 on a Windows machine with JDK 11, it fails to automatically find the jvm.dll file and throws the following error: ( javajni.c:227 ) [ 4588] Invalid RuntimeLib '' I need to open the properties of the…
Quade
  • 1
  • 2
0
votes
2 answers

FindClass failed with prunsrv & springboot?

I was trying to following the instructions here for running my Spring Boot web service as a windows service. If i point start to org.springframework.boot.loader.JarLauncher then my web service starts & works, but when I try to point to the…
Mr Smith
  • 3,318
  • 9
  • 47
  • 85
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

Apache Commons Daemon service breaks JRE (and other strange things)

We have developed a jar that gets wrapped as a Windows service using Procrun, the Apache Commons Daemon component for windows services. Everything works well on my own computer and on a few other development machines, but when we installed it in a…
Eduardo Z.
  • 633
  • 3
  • 10
  • 32
0
votes
2 answers

prunsvc can't run java executable as service on Windows 8.1

I have converted a java executable jar to a Windows executable using Launch4j. I have installed it and a jre to a Windows 8 box, in the c:\program files (x86)\mycomany directory, and executed the following as administrator in a bat file (in order…
user1475484
0
votes
1 answer

Start service from prunsrv and jdk8

I have simple jar which includes the class MainClass with static start and stop methods. When I use JDK6 and Prunsrv my service starts and stops successfully. When I switch to JDK I get this error when I start the service: …
DArt
  • 45
  • 6
1
2