[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] [Home]

Re: Moving GNU JSP into a zone


I always put everything in jserv.properties, have had no luck otherwise.
(Although I haven't spent much time debuggging).
Any JServ pros know what's wrong?

Wes

On Tue, 19 Oct 1999, Noel J. Bergman wrote:

> I am running into an odd error.  Configuration errors, of course, being the
> most common type we have here.
> 
> If I have the following:
> 
> jserv.properties:
> # base classes
> wrapper.classpath=c:/java11/lib/classes.zip
> # jsdk 2.0 classes
> wrapper.classpath=d:/Httpd/jserv/servclasses.zip
> # Apache JServ
> wrapper.classpath=d:/Httpd/jserv/ApacheJServ.jar
> # JSP 1.0 interfaces
> wrapper.classpath=d:/Httpd/jserv/jsp10pr.jar
> # GNU JSP
> wrapper.classpath=d:/Httpd/jserv/gnujsp10.jar
> # Root for other classes
> wrapper.classpath=d:/Httpd/jserv
> 
> zone.properties:
> servlet.gnujsp.initArgs=scratchdir=/OS2Httpd/servlets/_jsp,jserv=true,showEx
> ceptions=true
> 
> GNU JSP 1.0 works fine.  However, if I change it so that GNU JSP is in a
> zone:
> 
> jserv.properties:
> untouched, except that gnujsp10.jar is commented out
> 
> zone.properties:
> repositories=d:/Httpd/jserv/gnujsp10.jar
> servlet.gnujsp.initArgs=scratchdir=/Httpd/servlets/_jsp,jserv=true,showExcep
> tions=true,compiler=builtin-javac -classpath
> %classpath%;%scratchdir%;d:/Httpd/jserv/gnujsp10.jar -d
> %scratchdir% -deprecation %source%
> 
> I receive:
> 
> Exception while servicing request for /gnujsp/sqlexplore.jsp:
> 
> java.lang.ClassNotFoundException: javax.servlet.RequestDispatcher
> 	at java.lang.Throwable.(Throwable.java:74)
> 	at java.lang.Exception.(Exception.java:38)
> 	at java.lang.ClassNotFoundException.(ClassNotFoundException.java:48)
> 	at org.apache.java.lang.AdaptiveClassLoader.loadClass(Compiled Code)
> 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:297)
> 	at org.gjt.jsp.JspServlet.getJspServletConfig(JspServlet.java:377)
> 	...
> 
> The error occurs when calling getServletContext() in
> JspServlet.getJspServletConfig().
> 
> The ONLY changes are moving the GNUJSP JAR from jserv.properties to
> zone.properties, and adding the compiler option in order to put the jar in
> the compile path.
> 
>     ---  Noel
>