JSDK is replaced with servlet-2.0-plus.jar in gnujsp1.0.

I added following lines in /usr/local/apache/conf/httpd.conf:
   Include /data/program/JServ/Configure/jserv.conf

and I changed my document root to /data/homepage

/data/program/JServ/Configure/jserv.conf:
   ApJServManual off
   ApJServProperties /data/program/JServ/Configure/jserv.properties
   ApJServLogFile /data/program/JServ/Configure/jserv.log
   ApJServDefaultProtocol ajpv11
   ApJServDefaultPort 8007
   ApJServSecretKey DISABLED
   ApJServMount /servlet /servlet
   ApJServMountCopy on
   ApJServAction .jsp /servlet/org.gjt.jsp.JspServlet
<Location /jserv/>
     SetHandler jserv-status

     order deny,allow
     allow from all
   </Location>

/data/program/JServ/Configure/jserv.properties:
   #i installed jdk1.2 in /usr/local/jdk1.2
   wrapper.bin=/usr/local/jdk1.2/bin/java
   wrapper.class=org.apache.jserv.JServ
   wrapper.classpath=/usr/local/jdk1.2/lib/tools.jar
   wrapper.classpath=/usr/local/gnujsp/gnujsp10.jar
   wrapper.classpath=/usr/local/gnujsp/servlet-2.0-plus.jar
   wrapper.classpath=/usr/local/jserv/lib/ApacheJServ.jar
   port=8007
   zones=servlet
   servlet.properties=/data/program/JServ/Configure/servlet.properties
   security.maxConnections=50
   security.allowedAddresses=127.0.0.1
   security.authentication=false
   security.challengeSize=5
   log=false
   log.file=jserv.log
   log.timestamp=true
   log.dateFormat=[dd/MM/yyyy HH:mm:ss:SSS zz]
   log.channel.servletLog=true
   log.channel.init=true
   log.channel.terminate=true
   log.channel.serviceRequest=true
   log.channel.authentication=true
   log.channel.requestData=true
   log.channel.responseHeaders=true
   log.channel.signal=true
   log.channel.exceptionTracing=true
   log.channel.servletManager=true

/data/program/JServ/Configure/servlet.properties:
   repositories=/data/program/JServ/Binary
   autoreload.classes=true
   init.timeout=10000
   destroy.timeout=10000
   session.timeout=1800000
   session.checkFrequency=30000
   singleThreadModelServlet.initialCapacity=5
   singleThreadModelServlet.incrementCapacity=5
   singleThreadModelServlet.maximumCapacity=10
   #chmod -R -f oug+rwx /tmp/JSP
   servlet.org.gjt.jsp.JspServlet.initArgs=scratchdir=/tmp/JSP

and i created a directory  named JSP in my document root /data/homepage,and here is an example(date.jsp):
   <HTML>
   <HEAD>
     <TITLE>JSP date page</TITLE>
        <%@ page import="java.util.Date" %>
   </HEAD>
   <BODY>

   <H1>JSP date page</H1>

   The current date is <%= new Date() %>.

   </BODY>
   </HTML>
 
 

Joseba Otero wrote:

Hi ZQ,

Thanks for the procedure, but the JSDK prefix isn't in it (and the JSDK version that you use, I assume that is the JSDK 2.0)
When I complete the procedure, are there jsp examples for test purposes?
How I can run all?

Thanks in advance,
Joseba

He ZhiQiang escribió:

I have installed JDK1.2.2+apache_1.3.9+apache_jserv_1.0+gnujsp1.0+PHP3.0.13+MySQL3.23.7,here is my install script:
#please first install MySQL and JDK
#----installation directories----
MYSQL_PREFIX=/usr/local/mysql
JDK_PREFIX=/usr/local/jdk1.2
JSERV_PREFIX=/usr/local/jserv
PHP_PREFIX=/usr/local/php3
APACHE_PREFIX=/usr/local/apache
GNUJSP_PREFIX=/usr/local/gnujsp

#----prepare to install jserv,php3,apache----
tar xvf apache_1.3.9.tar

cd apache_1.3.9
./configure --prefix=$APACHE_PREFIX
cd ..

#----install jserv----
tar xvf Apache_JServ_1.0.tar

SavePWD=`pwd`

mkdir $JSERV_PREFIX
cp -R -f ApacheJServ-1.0/* $JSERV_PREFIX

cd $JSERV_PREFIX
./configure --prefix=$JSERV_PREFIX --enable-static --with-apache-src=$SavePWD/apache_1.3.9 --with-jsdk=$JSDK_PREFIX/lib/jsdk.jar --enable-compressed-jar --enable-apache-conf
make
make install

cd $SavePWD
rm -R -f ApacheJServ-1.0

#----install php3----
tar xvf php-3.0.13.tar

cd php-3.0.13
./configure --prefix=$PHP_PREFIX --with-mysql=$MYSQL_PREFIX --with-apache=../apache_1.3.9 --enable-track-vars --with-config-file-path=${PHP_PREFIX}
make
make install
mkdir ${PHP_PREFIX}
cp php3.ini-dist ${PHP_PREFIX}/php3.ini

cd ..
rm -R -f php-3.0.13

#----install apache----
cd apache_1.3.9
./configure --prefix=$APACHE_PREFIX --activate-module=src/modules/php3/libphp3.a --activate-module=src/modules/jserv/mod_jserv
make
make install

cd ..
rm -R -f apache_1.3.9

#----install gnujsp----
tar xvf gnujsp-1.0.0.tar

mkdir $GNUJSP_PREFIX
cp -f gnujsp-1.0.0/lib/gnujsp10.jar $GNUJSP_PREFIX
cp -f gnujsp-1.0.0/lib/servlet-2.0-plus.jar $GNUJSP_PREFIX

rm -R -f gnujsp-1.0.0

#----configure----
echo "---------------------------------------------------------------------------"
echo "please add following lines in httpd.conf:"
#echo "   Include <your jserv configure file>"
echo "   AddType application/x-httpd-php3 .php3 .php .phtml"
echo "   AddType application/x-httpd-php3-source .phps"
echo ""
echo "please add following lines in /etc/profile:"
echo "   CLASSPATH=""$""CLASSPATH:$JDK_PREFIX/lib/tools.jar:$GNUJSP_PREFIX/gnujsp10.jar:$GNUJSP_PREFIX/servlet-2.0-plus.jar:$JSERV_PREFIX/lib/ApacheJServ.jar"
echo "   PATH=""$""PATH:$APACHE_PREFIX/bin"
echo "   CPLUS_INCLUDE_PATH=""$""CPLUS_INCLUDE_PATH:$APACHE_PREFIX/include"
echo "   MANPATH=""$""MANPATH:$APACHE_PREFIX/man"
echo ""
echo "   export PATH CPLUS_INCLUDE_PATH MANPATH"
echo ""
echo "please add following lines in jserv configure file(jserv.conf):"
echo "   ApJServAction .jsp /servlet/org.gjt.jsp.JspServlet"
echo ""
echo "please add following lines in jserv properties file(jserv.properties):"
echo "   wrapper.bin=$JDK_PREFIX/bin/java"
echo ""
echo "   wrapper.classpath=$JDK_PREFIX/lib/tools.jar"
echo "   wrapper.classpath=$GNUJSP_PREFIX/gnujsp10.jar"
echo "   wrapper.classpath=$GNUJSP_PREFIX/servlet-2.0-plus.jar"
echo "   wrapper.classpath=$JSERV_PREFIX/lib/ApacheJServ.jar"
echo ""
echo "please add following lines in your zone properties file(<zone>.properties):"
echo "   respositories=<your jserv classes path>"
echo "   servlet.org.gjt.jsp.JspServlet.initArgs=scratchdir=<jsp path>"
echo ""
echo "please add following lines in /etc/rc.d/rc.local:"
echo "   $APACHE_PREFIX/bin/apachectl start"

Good Luck!
 

Larry Hoffman wrote:

I need to set up a web server.  I have already installed apache 1.3.9-8.  I
need to install the apache jserv now.  How would I go about doing this.

My operationg system is Linux.

Thanks
-Larry

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to