Cannot find daemon loader issue with Apache common daemon

23Mar07

We had to write a daemon in Java and opted for using common daemon from Apache. It worked fine on Ubuntu Linux. One day we shifted to Fedora Core 6 and then the daemon stopped working.
While debugging the issue with -debug option for jsvc which is used to start and stop the daemon we figured out that even after providing commons-daemon.jar in the -cp (classpath) option for jsvc, it was unable to find the daemon loader.
“23/01/2007 15:42:33 9252 jsvc.exec error: Cannot find daemon loader org/apache/commons/daemon/support/DaemonLoader”

So after debugging, we did the following: Checked that the owner is root for all files (jars) and then ran the daemon, it ran (WOW, man this is kind of unusual, we need to make jsvc better).

Advertisements


No Responses Yet to “Cannot find daemon loader issue with Apache common daemon”

  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: