commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton" <>
Subject Re: How I solved "Cannot find daemon loader org/apache/commons/daemon/support/DaemonLoader"
Date Fri, 15 Dec 2006 07:54:12 GMT
You could add an entry yourself to the wiki for this:

Alternatively, create a patch for the faq.xml and create/attach it to
a Jira issue ticket:


On 12/14/06, Travis McLeskey <> wrote:
> Hi all,
> This is a message for the archive. It'd be great if it also made it
> into the project FAQ.
> Apparently lots of new users of commons-daemon encounter the "Cannot
> find daemon loader org/apache/commons/daemon/support/DaemonLoader"
> error message from jsvc:
> Mon-20051114/031029.html
> I understand their frustration...I'm new to commons-daemon, and I
> just spent more hours fighting the problem than I'll admit. Here was
> the problem (I'm using Linux...I don't know whether this description
> applies to other environments):
> Even if you invoke jsvc as root and don't use the "-user" option, by
> the time it tries to load the DaemonLoader class, it has reduced its
> permissions level. Specifically, it has invoked the "capset" system
> call to clear its CAP_DAC_READ_SEARCH flag (among other flags). I
> don't understand the interaction between the CAP_DAC_READ_SEARCH
> capacity and filesystem permissions, but I was able to make the error
> message go away by making my classpath paths and all parent
> directories readable (and executable, for dirs) by all.
> Travis

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message