Questions tagged [jsvc]

Jsvc is a set of libraries and applications for making Java applications run on UNIX more easily.

Jsvc is a set of libraries and applications for making Java applications run on UNIX more easily.

http://commons.apache.org/proper/commons-daemon/jsvc.html

65 questions
0
votes
1 answer

Java GetResourceAsStream NullPointerException

I have a jar I usually run as daemon using jsvc launcher in my .sh script. Now I created a new entry point that needs to check some things and return an output on the console, so in the same .sh script I made a switch based on the parameters to run…
Andrea
  • 336
  • 2
  • 9
  • 32
0
votes
1 answer

JSVC Cannot Register Native Methods

I'm trying to create a service that will run in Ubuntu Linux written in Java. My executable Jar file is a big fat Jar file that has all the dependencies packaged inside with it. I get the following error when I try to run it using JSVC. Java VM…
mj_
  • 6,297
  • 7
  • 40
  • 80
0
votes
1 answer

JSVC to start as daemon - Enable JMX?

i'm using JSVC to start my java program as a daemon which should run 24/7. However, i used to enable JMX to monitor my application until i decided to convert it to a daemon. My init.d Script is like this #!/bin/sh # Setup…
Stefan
  • 2,028
  • 2
  • 36
  • 53
0
votes
0 answers

get jsvc to listen to ipv4

I am setting up email archiving and it requires jsvc. I have set this up but running the following command shows it is not listening to ipv4. How can i change this? netstat -pan --tcp | grep jsvc tcp 0 0 :::8888 :::* …
shorif2000
  • 2,582
  • 12
  • 65
  • 137
-2
votes
1 answer

What is the simplest way to listen for incoming http traffic in Java/make a REST API?

I have a Java JSVC application in which I would like to expose a web/REST API from. What is the simplest way to do so? Every time I try to find a simple tutorial it wants me to install at least a framework and a web server (jersey, tomcat, Java EE,…
1 2 3 4
5