Neil Aggarwal wrote:
> Hello:
>
> I installed Redhat Linux 5.2 as a server-class installation.
>
> I then downloaded, built and installed Apache 1.3.6
> without a hitch.
>
> Next, I installed the Blackdown JDK 1.1.7
> and JSDK 2.0.
>
> I then downloaded Apache-JServ-1.0b3.tar.gz
> and de-archived it.
>
> I set these variables:
> JAVA_HOME=/usr/local/jdk117_v1a
> JSDK_HOME=/usr/local/JSDK2.0
> CLASSPATH=$JAVA_HOME/lib/classes.zip:$JSDK_HOME/lib/jsdk.jar
> PATH=$JAVA_HOME/bin:$JSDK_HOME/bin:$PATH
> export PATH JAVA_HOME JSDK_HOME CLASSPATH
>
> Then, I did this:
>
> cd /usr/local/Apache-JServ-1.0b3
> ./configure
> make
> make install
> cp /usr/local/Apache-JServ-1.0b3/src/c/*
> /usr/local/apache_1.3.6/src/modules/extra
> cd /usr/local/apache_1.3.6
> ./configure --prefix=/usr/local/apache
> --add-module=src/modules/extra/mod_jserv.c
> --enable-shared=jserv --enable-module=jserv
> make
> make install
>
> I then edit /usr/local/apache/conf/httpd.conf
> and appended the file /usr/local/Apache-JServ-1.0b3 to it.
>
> I then set:
> ApJservProperties /usr/local/Apache-JServ-1.0b3/conf/jserv.properties
>
> cd /usr/local/Apache-Jserv-1.0b3/conf
> I edited jserv.properties
> and modified the line:
> root.properties=/usr/local/Apache-Jserv-1.0b3/conf/zone.properties
>
> I copied zone.properties.in to zone.properties
> I edited zone.properties to add a line
> repositories=/usr/local/apache/servlets/TestServlet.class
>
> Then, I made a directory /usr/local/apache/servlets and placed my
> TestServlet.class there.
>
> I rebooted the machine and tried to access the servlet via
> http://neil86.august.net/servlet/TestServlet
> to no avail.
>
> I checked apache's error_log and saw a line:
> File does not exist: /usr/local/apache/htdocs/servlet/TestServlet.class
> This means that apache is not recognizing that I am trying to access a
> servlet and not a regular file from the http server.
My previous reply was showing an error in the repository. But I think you have
also to check httpd.conf to ensure that you have a servletmountpoint for
/servlet/
Jean-Luc
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]