----------------------------------------------------------------
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!!!
----------------------------------------------------------------
Andreas Krause wrote:
>
> ----------------------------------------------------------------
> 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!!!
> ----------------------------------------------------------------
>
> Hi JServ Gurus,
> Hi Mark,
>
> as I see, that I was not the only one, who ran into these troubles, I would
> like to ask the specialists for a little favour:
>
> You (the guru's) always like to refer to the FAQ, but wouldn't it be nice to
> just drop a line about what the e.g. permissions have to look like?
>
> I am very disappointed about the way, newbies and people who ask (in your
> eyes maybe silly) questions, are treated.
> I feel it a little bit arrogant - but I also do understand the voluntary
> state of any of these projects. Few days ago I noticed, that someone asked a
> very brief question and was really let down.
>
> There's never a stupid question, just insufficient answers!
>
> If I am willing to give support, I try not to let anyone down making him
> feel a fool.
>
> I am running all kind of stuff on our servers, but I am having only one
> problem, the one Mark described below and I really did not find any answer.
> I tried the same with apache-1.3.6 and jserv1.0 but still the same.
>
> So I really hope, that one of you may simply point out, why Mark ( and me
> and maybe many others) are running in such a problem.
>
> We do not need a complete manual or any of this, but a hint like "check you
> permission" is really not enough.
>
> If this list is only for specialists, please let me know. Otherwise I love
> to see an answer to Mark's problem (and my own as well).
Ok, i will give it a try:
If you are getting these kind of exceptions try to start jserv manually
Set "ApJServManual on" in your jserv.properties file
su to the user who has the following rights:
. read /usr/local/apache/libexec/ApacheJServ.jar (or wherever your
ApacheJServ.jar is)
. execute the java executable
. read your servlets in /usr/local/apache/servlets (or wherever you
put it)
. write /usr/local/apache/logs/jserv.log
start jserv with:
CLASSPATH=/usr/local/apache/libexec/ApacheJserv.jar:/usr/local/java/jsdk/jsdk.jar
java -Djava.compiler=NONE -cp ${CLASSPATH} \
org.apache.jserv.JServ \
/usr/local/apache/conf/jserv/jserv.properties
if you need javax.mail in your servlet insert the line
CLASSPATH=${CLASSPATH}:/path/to/mail.jar:/path/to/activation.jar
Look at:
/usr/local/apache/logs/error_log and
/usr/local/apache/logs/jserv_log and
/usr/local/apache/logs/jserv.log and
the console.
If that works, check that the user who is running apache has the
rights mentioned above and that your jserv properties correspond
to the parameters above. This is the user (and group) you are
specifying in httpd.conf, not the user who is starting apache.
Or build your nice and nifty start script for jserv and put it into
/sbin/init.d/... .
Mine looks like:
-------------------------------------------------------------------------------------------------------
APP=/web/192.168.255.1/servlets
#JAVA="/usr/local/bin/java -Djava.compiler=none -Xms64M -Xmx64M"
JAVA="/usr/local/bin/java -Djava.compiler=javacomp -Xms64M -Xmx64M"
LIB=$APP/lib
CLASSPATH=/usr/local/apache/libexec/ApacheJServ.jar:$LIB/jsdk.jar:$LIB/mail.jar:$LIB/activation.jar
export PIDFILE=${APP}/../logs/jserv.pid
case "$1" in
start)
#
# start JServ
#
echo Starting jserv
if [ -e $PIDFILE ]; then
echo jserv is already running or unclean shutdown.
echo stop jserv with $0 stop or
echo remove ${PIDFILE} manually
exit 1 ;
fi
$JAVA \
-cp $CLASSPATH org.apache.jserv.JServ \
/$APP/../conf/jserv.properties 1>> $APP/../logs/webmacro.log
2>> $APP/../logs/webmacro.log &
echo $! > ${PIDFILE}
;;
stop)
#
# stop jserv
#
echo Stoping jserv
if [ ! -e ${PIDFILE} ]; then
echo jserv is not running or ${PIDFILE} disappeared
exit 1
fi
JSERV_PROCESS=`cat ${PIDFILE}`
kill $JSERV_PROCESS
rm ${PIDFILE}
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: $0 {start || stop || restart}"
exit 1
esac
--------------------------------------------------------------------------------------------------------
Of course you need to adjust path an file names
Please give feedback if this text helped or needs more details
Stefan
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]