----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

im not sure if this is the answer you are looking for but you could
start it in manual mode (jserv) with a script like this and turning on
manual mode in jserv.conf

# more jserv
#!/bin/sh

properties=/export/home/jservplacer/etc/jserv.bigfoot.properties
log=/tmp/jserv.bigfoot.log

CLASSPATH=/export/home/JSDK2.0/lib/jsdk.jar
CLASSPATH=$CLASSPATH:/export/home/jservplacer/libexec/ApacheJServ.jar
CLASSPATH=$CLASSPATH:/export/home/jservplacer/servlets
CLASSPATH=$CLASSPATH:/export/home/gnujsp-0.9.10/lib/gnujsp.jar
CLASSPATH=$CLASSPATH:/usr/jdk1.2/lib/tools.jar
CLASSPATH=$CLASSPATH:/export/home/DbConnectionBroker1.0.11
CLASSPATH=etc....

export CLASSPATH

java -Xms128m -Xmx256m org.apache.jserv.JServ $properties $1 2>> $log


-ed

----- Original Message -----
From: Bill Woodward <[EMAIL PROTECTED]>
Date: Monday, October 9, 2000 2:11 pm
Subject: Passing environment variables to jserv

> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <" 
> target="l">http://java.apache.org/faq/>WHEN YOU POST, include all 
> relevant version numbers, log files,
> and configuration files.  Don't make us guess your problem!!!
> ----------------------------------------------------------------
> 
> Hello All,
> 
> I'm using Apache 1.3.12 on RedHat 6.2, with jserv 1.1.2 and java 
> 1.2.2. 
> I need to be able to access a system environment variable from 
> within a
> java servlet.  Since the getenv() method is deprecated in Java 2, I
> decided to pass it in as a property.  The problem is that I can't 
> figureout the magical incarnation to pass the *value* on the 
> variable, and not
> simply the *name*.
> 
> In my jserv.properties, I set the 'wrapper.bin.parameters' line to:
> 
> wrapper.bin.properties=-Ddazel.dazelns=$DAZELNS
> 
> but when I call getProperty() in the servlet, I get the value 
> "$DAZELNS"instead of what I expect (the value of $DAZELNS).  
> Obviously, it's not
> expanding the value of the environment variable.  So, any 
> suggestions? 
> I can use the deprecated getenv() method, but I'd prefer not to if
> possible.
> 
> I read the FAQ (at least, the old, working version of the FAQ), and 
> wasunable to find a solution.
> 
> Thanks,
> - Bill
> 
> P.S.  I've never seen the 'new, improved' FAQ working, so I just
> referred to the old FAQ, which does not seem to cover jserv 1.1
> specifically.
> 
> -- 
> <>< ><> <>< ><> <>< ><> <>< ><> <>< ><> <>< ><> <>< ><> <><
> Bill Woodward ([EMAIL PROTECTED] or [EMAIL PROTECTED])
> http://members.xoom.com/Bill_CCHKK
> 
> 
> --
> --------------------------------------------------------------
> Please read the FAQ! <" target="l">http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Search Archives: 
> <" target="l">http://www.mail-archive.com/java-apache-
> users%40list.working-dogs.com/>
> Problems?:           [EMAIL PROTECTED]
> 
> 



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search Archives: 
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to