Questions tagged [prunsrv]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
739 views

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 ...
Viktor's user avatar
  • 1,345
0 votes
1 answer
228 views

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 ...
program_k's user avatar
2 votes
0 answers
365 views

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 ...
user1941319's user avatar
1 vote
0 answers
1k views

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 ...
Quade's user avatar
  • 11
5 votes
1 answer
468 views

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 ...
Gustave's user avatar
  • 3,409
0 votes
2 answers
1k views

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 ...
Mr Smith's user avatar
  • 3,356
-1 votes
1 answer
1k views

Apache Commons Daemon specify classpath

I try to deploy a program as windows service with apache commons daemon. i have everything set up fine beside the classpath. Classpath=C:\test\test-service\lib\* specifies where the service itself ...
XtremeBaumer's user avatar
  • 6,305
1 vote
1 answer
1k views

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 ...
djointster's user avatar
0 votes
1 answer
162 views

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-...
Slok's user avatar
  • 586
6 votes
3 answers
10k views

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\...
NDB's user avatar
  • 618
1 vote
1 answer
5k views

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 ...
Talespin_Kit's user avatar
0 votes
0 answers
404 views

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 ...
Eduardo Z.'s user avatar
4 votes
2 answers
4k views

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 ...
user2820147's user avatar
0 votes
2 answers
739 views

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 ...
user avatar
2 votes
1 answer
419 views

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 ...
membersound's user avatar
  • 82.6k
0 votes
1 answer
496 views

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 ...
DArt's user avatar
  • 45