sigh. im on the point of giving this up.
when i set it up as you have i still get
the same behaviour (i had to change the alias
to gnujsp though, otherwise it didnt accept
the repository argument.
when i address http://myserver/test.jsp
i get in the browser:
<% for (int i = 0; i < 100; i++) { %> <%= i %> <% } %>
which is pure html
when i address http://myserver/servlets/test.jsp
i get
--
500 JSP compile-time error
The JSP page you requested could not be served because the following
error(s) occured:
File /servlets/test.jsp could not be found
--
which i suspect is a message from the jsp servlet, because it
is different than the message i get when i put in files that
really dont exists.
when i address http://myserver/servlets/Hello
i get the correct output from the Hello servlet
here is what i have configured (that i think is relevant
to jsp):
in jserv.conf (included from httpd.conf)
ApJServMount /servlets /servlets
ApJServAction .jsp /servlets/gnujsp
in jserv.properties:
wrapper.classpath=/usr/local/JSDK20/lib/gnujsp.jar
wrapper.classpath=/usr/local/java/snorre/servlets
zones=servlets
servlets.properties=/usr/local/java/snorre/snorre.properties
in snorre.properties:
repositories=/usr/local/java/snorre/servlets,/usr/local/JSDK20/lib/gnujsp.ja
r
servlet.gnujsp.code=org.gjt.jsp.JSPServlet
servlet.gnujsp.initArgs=repository=/usr/local/java/snorre/servlets
is there something i am missing here? why arent i getting
any errors if something is wrong?
the linux02/jserv/ page gives me all the right information.
everything looks like a dandy.
thanks for any help.
snorre (soon to give up :))
> I finally figured it out. Note, I am running Win32.
>
> I set it up as:
>
> #ApJservAction .jsp /servlet_directory/jsp_alias, e.g.,
>
> #ApJservAction .jsp /servlets/jsp
>
> Then I setup a servlet alias in the zone file, e.g.,
>
> servlet.jsp.code=org.gjt.jsp.JSPServlet
>
> It requires a parameter setup to specify the directory to
> store its files.
> I simply pointed it to servlets directory, where JSP creates a _jsp
> subdirectory for compiled files. E.g.,
>
> servlet.gnujsp.initArgs=repository=WWW_Root\servlets
>
>
> Of course, gnuJSP is in my CLASSPATH and in the zone repository.
>
> Some of these steps may be an overkill, but hey it works!
>
> -- Edas
>
>
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]