java-service-wrapper

Wrapping Spring Boot application with Tanuki Service Wrapper

[亡魂溺海] 提交于 2019-12-05 10:19:20
How to wrap Spring Boot application as a linux daemon and to set it to read from application.properties. To start the jar with the parameters from the application.properties I am using this command: java -Dspring.config.location=/application.properties -jar MyJar.jar Where to set this in wrapper.conf? I have tried like this but the jar is not starting with the parameters from the application.properties. wrapper.java.command=java wrapper.java.command.loglevel=INFO wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperJarApp wrapper.java.classpath.1=../lib/wrapper.jar wrapper.java.classpath.2

Java appears hung

亡梦爱人 提交于 2019-12-04 06:40:45
I've been using the Java Service wrapper in a custom application for quite a while and it's been working fine. Since updating our application to a new version in the last few days the JVM started hanging and then wrapper prints this in the log: JVM appears hung: Timed out waiting for signal from JVM. It then automatically terminates the JVM and starts the app again. This happens after about 10 hours of running, which just makes it harder to debug. Of course I am going to look through the changes that we've made, but no major changes were made that I would suspect is causing this type of

make an interactive windows service

喜欢而已 提交于 2019-12-02 08:08:57
问题 I want my Java application to be an interactive windows service (a windows service that has GUI when the user is logged in). I searched for this and I see that the way to do it is to have 2 programs, 1st is a service, 2nd is a GUI program and make them communicate - the service will get commands from the GUI program. Just before I started to split my program, I noticed that in "Java Service Wrapper" there is a flag: wrapper.ntservice.interactive=TRUE Is this flag an automatic way to do the

Error while running Java service wrapper for JBoss AS 7

柔情痞子 提交于 2019-12-02 07:06:26
I'm trying to make Jboss Application Server 7.1.0 run as a service using the Java service wrapper, I already solved many problems but for each one I solve I get a new one. Currently I'm using this configuration: # Java Application #wrapper.java.command=java wrapper.java.command=%JAVA_HOME%/bin/java.exe # Java Main class. This class must implement the WrapperListener interface # or guarantee that the WrapperManager class is initialized. Helper # classes are provided to do this for you. See the Integration section # of the documentation for details. wrapper.java.mainclass=org.tanukisoftware

Java service is restarted 4 or 5 times

廉价感情. 提交于 2019-12-01 17:51:38
问题 I am running a Java service to poll data from database. In my class, I have a thread, which looks for data in db every 5 seconds... At particular time(say like 6 PM when out of business hours), i make my thread to sleep to some configured time delay. Problem: when I make my thread to sleep, it seems my Java service is restarted... Why am I getting 4, 5 JVM launched... Please help me to understand.... ERROR | wrapper | 2013/12/21 15:40:10 | JVM did not exit on request, termination requested.

Java service is restarted 4 or 5 times

女生的网名这么多〃 提交于 2019-12-01 17:15:14
I am running a Java service to poll data from database. In my class, I have a thread, which looks for data in db every 5 seconds... At particular time(say like 6 PM when out of business hours), i make my thread to sleep to some configured time delay. Problem: when I make my thread to sleep, it seems my Java service is restarted... Why am I getting 4, 5 JVM launched... Please help me to understand.... ERROR | wrapper | 2013/12/21 15:40:10 | JVM did not exit on request, termination requested. STATUS | wrapper | 2013/12/21 15:40:10 | JVM exited after being requested to terminate. STATUS | wrapper

JavaExe and Java application as windows system service interactive to desktop

◇◆丶佛笑我妖孽 提交于 2019-11-29 15:32:00
Request: This is a very common problem faced by Java devs in my locale. I am really stuck for many days on this. Searched and tried a lot, read the docs. read ALL the stackoverflow questions related to JavaExe. Please only reply if you have done similar thing before and have a comprehensive answer. I would be really grateful to the community! Senario: I am using JavaExe to run an application as system service in desktop interactive capability. To be exact I have an application that captures screenshots of desktops . I want it to run ( as admin ) on any user login so no one can stop it. I have

JavaExe and Java application as windows system service interactive to desktop

让人想犯罪 __ 提交于 2019-11-28 08:57:18
问题 Request: This is a very common problem faced by Java devs in my locale. I am really stuck for many days on this. Searched and tried a lot, read the docs. read ALL the stackoverflow questions related to JavaExe. Please only reply if you have done similar thing before and have a comprehensive answer. I would be really grateful to the community! Senario: I am using JavaExe to run an application as system service in desktop interactive capability. To be exact I have an application that captures