| Summary: | [rseserver] Java Call From auth.pl Dies With "Could not find the main class: org.eclipse.dstore.core.server.Server. Program will exit." | ||
|---|---|---|---|
| Product: | [Tools] Target Management | Reporter: | Ryan Ware <ryan.ware> |
| Component: | RSE | Assignee: | dsdp.tm.rse-inbox <tm.rse-inbox> |
| Status: | REOPENED --- | QA Contact: | Martin Oberhuber <mober.at+eclipse> |
| Severity: | major | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Ryan Ware
auth.pl is not meant to be called directly - it is internal, and needs to be called with proper parameters and environment (CLASSPATH) set. Only daemon.pl and server.pl are the end-user callable scripts. Oops, I did not read to the end :( The problem seems to be valid. Are you aware that daemon.pl must be run as root ? Just root-caused this. It's a permissions issue. The full, expanded system call from auth.pl comes out to be: su -p rrware -c '/usr/bin/java -Duser.home=/home/rrware -cp /root/rseserver:/root/rseserver/dstore_extra_server.jar:/root/rseserver/dstore_core.jar:/root/rseserver/dstore_miners.jar:/root/rseserver/clientserver.jar -DA_PLUGIN_PATH=/root/rseserver/ -DDSTORE_SPIRIT_ON=true org.eclipse.dstore.core.server.Server 10000-10010 120000 1274895413522' If you look at the passed in CLASSPATH, it points to the rseserver directory I had in /root. /root isn't accesible by anyone. When I moved the rseserver directory to /rseserver with global read and execute permissions, things work as expected. You can close this as not a bug. Thank you for the prompt response though! Should we update docs in any way? http://dsdp.eclipse.org/help/latest/topic/org.eclipse.rse.doc.user/tasks/tbeginlinux.html I would update the doc to say something like: rseserver scripts, jar's and other files must be readable by the local user ID's intended to access the dstore server. In the troubleshooting section, you may want to put information with the specific error I included here showing what the root cause is. |