You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Mladen Turk (JIRA)" <ji...@apache.org> on 2010/02/25 22:04:28 UTC

[jira] Updated: (DAEMON-32) [daemon] jsvc crashes with -user root

     [ https://issues.apache.org/jira/browse/DAEMON-32?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mladen Turk updated DAEMON-32:
------------------------------

    Component/s: Jsvc

> [daemon] jsvc crashes with -user root
> -------------------------------------
>
>                 Key: DAEMON-32
>                 URL: https://issues.apache.org/jira/browse/DAEMON-32
>             Project: Commons Daemon
>          Issue Type: Bug
>          Components: Jsvc
>    Affects Versions: Nightly Builds
>         Environment: Operating System: Linux
> Platform: Other
>            Reporter: bernard
>         Attachments: daemon.sh, DaemonTest.java
>
>
> Configuration:
> Apache/2.0.40 (Red Hat Linux)
> mod_jk 1.2.8
> Tomcat 5.5.7
> Red Hat Linux 9
> j2sdk-1_4_2_07
> Expected behavior:
> jsvc should be able to run the Java daemon as user root
> Actual behavior:
> jsvc crashes:
> java.lang.ClassNotFoundException: DaemonTest
>         at java.net.URLClassLoader$1.run(Unknown Source)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at
> org.apache.commons.daemon.support.DaemonLoader.check(DaemonLoader.java:109)
> jsvc.exec error: An error was detected checking the DaemonTest daemon
> jsvc.exec error: Service exit with a return value of 2
> I don't know what causes this.
> In the attached script, I change the variable 
> DAEMON_USER=otheruser;
> to
> DAEMON_USER=root;
> and only then jsvc crashes wile with DAEMON_USER=otheruser; it runs.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.