commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mladen Turk (JIRA)" <j...@apache.org>
Subject [jira] Closed: (DAEMON-32) [daemon] jsvc crashes with -user root
Date Wed, 20 Oct 2010 05:39:25 GMT

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

Mladen Turk closed DAEMON-32.
-----------------------------

    Resolution: Fixed

Closing this issue because there was no activity for a long time
Please reopen the case if it still crashes wit 1.0.3 onward

> [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.


Mime
View raw message