You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Basel Shishani <bs...@yahoo.com> on 1999/02/18 14:28:57 UTC
mod_jserv/3916: in jserv process: -classpath option interacts with CLASSPATH env
>Number: 3916
>Category: mod_jserv
>Synopsis: in jserv process: -classpath option interacts with CLASSPATH env
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: jserv
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Thu Feb 18 05:30:00 PST 1999
>Last-Modified:
>Originator: bshishani@yahoo.com
>Organization:
apache
>Release: 1.3.3
>Environment:
Linux - 2.0.36 - i586 - RedHat5.2 - glibc-2.0.7-29 -
Apache 1.3.3 - jserv 1.0b2
>Description:
I usually use -classpath command line option rather than the CLASSPATH env when invoking java (jdk)
in order to override all defaults. to try to achive that with jserv, i set following options in
jserv.properties:
---------
wrapper.bin.parameters=-classpath /usr/java/jdk117_v1a/lib/classes.zip:/usr/java/jsdk/JSDK2.0/lib/jsdk.jar:/usr/local/jserv/lib/Apache-JServ.jar
wrapper.classpath --> no settings
---------
when checking process tree things seem ok:
~> ps axufwwwwww
root 177 0.0 1.9 1980 1236 ? S 22:28 0:00 httpd
nobody 185 0.0 1.9 1980 1200 ? S 22:28 0:00 \_ httpd
nobody 210 0.1 5.1 22532 3260 ? S 22:28 0:01 | \_ /usr/java/jdk117_v1a/bin/../bin/i586/green_threads/java -classpath /usr/java/jdk117_v1a/lib/classes.zip:/usr/java/jsdk/JSDK2.0/lib/jsdk.jar:/usr/local/jserv/lib/Apache-JServ.jar org/apache/jserv/JServ /usr/local/jserv/conf/jserv.properties
nobody 186 0.0 2.0 2076 1296 ? S 22:28 0:00 \_ httpd
nobody 187 0.0 2.0 2076 1296 ? S 22:28 0:00 \_ httpd
...
but when examining the jserv process
~> ps axufewwwwww 210
USER PID %CPU %MEM SIZE RSS TTY STAT START TIME COMMAND
nobody 210 0.1 5.1 22532 3260 ? S 22:28 0:01 /usr/java/jdk117_v1a/bin/../bin/i586/green_threads/java -classpath /usr/java/jdk117_v1a/lib/classes.zip:/usr/java/jsdk/JSDK2.0/lib/jsdk.jar:/usr/local/jserv/lib/Apache-JServ.jar org/apache/jserv/JServ /usr/local/jserv/conf/jserv.properties THREADS_TYPE=green_threads LD_LIBRARY_PATH=/usr/java/jdk117_v1a/bin/../lib/i586/green_threads: CLASSPATH=/usr/java/jdk117_v1a/lib/classes.zip:/usr/java/jsdk/JSDK2.0/lib/jsdk.jar:/usr/local/jserv/lib/Apache-JServ.jar ib/rt.jar:/usr/java/jdk117_v1a/bin/../lib/i18n.jar:/usr/java/jdk117_v1a/bin/../lib/classes.zip TERM=dumb HOSTTYPE=i386 PATH=/bin:/usr/bin:/usr/local/bin SHELL=/bin/sh JAVA_HOME=/usr/java/jdk117_v1a/bin/.. OSTYPE=Linux SHLVL=0
~~~~~~~~~~~~~~~~~
the -classpath buffer is overwriting the CLASSPATH buffer!
as far as I can tell, jserv runs normal and CLASSPATH is ignored.
>How-To-Repeat:
>Fix:
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <ap...@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED. This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request ]
[from a developer. ]
[Reply only with text; DO NOT SEND ATTACHMENTS! ]