Peter Santoro wrote:

> I would greatly appreciate some assistance with a gnujsp configuration
> problem I'm having.  I've read all the docs, but I seem to have missed
> something. I'm using Intel RedHat 5.2 updated with latest RPMs, apache
> 1.3.6, jserv 1.0b3, and gnujsp 0.9.9.  I can successfully run the sample
> jserv servlets and the jserv status servlet.
>
> When I access any of the example jsp files (for example:
> http://localhost/jsp/date.jsp), I get the following error in my apache
> error_log file:
>
> File does not exist: /usr/local/apache/htdocs/org.gjt.jsp.JSPServlet
>
> My CLASSPATH does appear to contain the full path to the gnujsp.jar
> file.
>
> My jserv.conf file contains the following related lines:
>
> ApJservMount /jsp /jspz
> ApJServAction  .jsp /org.gjt.jsp.JSPServlet
>
> My jserv.properties file contains the following related lines:
>
> wrapper.classpath=/usr/local/gnujsp-0.9.9/lib/gnujsp.jar
> zones=examplesz, jspz
> jspz.properties=/usr/local/gnujsp-0.9.9/examples/jspexamples.properties
>
> My jspexamples.properties file contains the following related lines:
>
> repositories=/usr/local/gnujsp-0.9.9/examples
> servlets.startup=org.gjt.jsp.JSPServlet
> servlet.gnujsp.code=org.gjt.jsp.JSPServlet
> servlet.org.gjt.jsp.JSPServlet.initArgs=repository=/tmp/jsp
> servlet.gnujsp.initArgs=repository=/tmp/jsp
>
> The error message seems to indicate that the JSPServlet cannot be
> found.  What am I doing wrong?
>
> Thank you in advance for your help!
>

There are several issues here:

(1) httpd.properties

I tend to use the same name for the mount point and the zone name, so I
don't have to remember which is which.  In my config, the "mount" line
would look like this:

    ApJServMount /jsp /jsp

The ApJServAction line should read (assuming the change above):

    ApJServAction .jsp /jsp/gnujsp

(2) jserv.properties

You can probably put the GNUJSP jar file in the wrapper.classpath setting
(which makes it part of the system class path for the servlet engine), but
I prefer to list it as a repository in the zone properties file (see
below).

The servlet zone would be named "jsp" instead of "jspz".

(3) jspexamples.properties

As mentioned above, add /usr/local/gnujsp-0.9.9/lib/gnujsp.jar to the
repositories list.

The servlet config line that says

    servlet.org.gjt.jsp.JSPServlet.initArgs=...

is irrelevant and can be removed.  The lines you want start with
"servlet.gnujsp.".

>
> Peter
>

Craig McClanahan




----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to