[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[Home]
Please help me with GNUJSP 1.0.1
Hi,
I'm trying to install GNUJSP on a RedHat 7.2 machine. I need this to get
NFuse too work. I have a little problem with it so I hope you can help
me.
I have installed:
Red Hat Linux 7.2
Apache Web Server Version 1.3.22
Apache Jserv, Version 1.1.2
Java Servlet Development Kit Version 2.0
Java Development Kit, Version 1.3.1_02
GNUJSP 1.0.1
I compiled it all and the webserver is working and Apache Jserv is also
working.
I unpacked your program in /usr/local/gnujsp-1.0.1. I have added the
following lines to jserv.properties:
------------------------------------------------------------------
wrapper.classpath=/usr/local/gnujsp-1.0.1/lib/servlet-2.0-plus.jar
wrapper.classpath=/usr/local/gnujsp-1.0.1/lib/gnujsp10.jar
------------------------------------------------------------------
after that I edited jserv.properties and create a new zone called jsp
and I set his path;
------------------------------------------------------------------
zone=root,jsp
jsp.properties=/usr/local/apache/conf/jserv/jsp.properties
------------------------------------------------------------------
I have copied the file zone.properties to jsp.properties and added the
following lines to the Repositories section:
------------------------------------------------------------------
repositories=/usr/local/gnujsp-1.0.1/lib/gnujsp10.jar
repositories=/usr/local/gnujsp-1.0.1/lib/servlet-2.0-plus.jar
repositories=/usr/local/gnujsp-1.0.1/lib/sax2.jar
repositories=/usr/local/gnujsp-1.0.1/lib/openxml-1.2-w3c.jar
repositories=/usr/local/gnujsp-1.0.1/lib/aelfred.jar
------------------------------------------------------------------
After that I added the following line in the Servlet Aliases section:
-------------------------------------------------------------------
servlet.gnujsp.code=org.gjt.jsp.JspServlet
------------------------------------------------------------------
In the Aliased Servlet Init Parameters section I add this line:
------------------------------------------------------------------
servlet.gnujsp.initArgs=checkclass=true,scratchdir=/usr/local/jserv/jspScratchDir,debug=true,compiler=/usr/local/jdk1.3.1_02/b
in/javac -classpath
%classpath%:%scratchdir%:/usr/local/gnujsp-1.0.1/lib/servlet-2.0-plus.jar:/usr/local/gnujsp-1.0.1/lib/gnujsp10.jar
-d %scratchdir% -deprecation %source%
------------------------------------------------------------------
Then I save and exit, now I create the following directory:
/usr/local/jserv/jspScratchDir with all rights.
Now I go back to /usr/local/apache/conf/jserv/jserv.conf and I add these
lines:
------------------------------------------------------------------
ApJServMount /jsp /jsp
ApJServAction .jsp /jsp/gnujsp
------------------------------------------------------------------
I save and exit and restart the webserver. I copy the file
/usr/local/gnujsp-1.0.1/examples/hello.jsp to /usr/local/apache/htdocs/
Now i go with my browser to it and I see: "500 Internal Server Error".
If I run check-gnujsp-conf --jservconf
/usr/local/apache/conf/jserv/jserv.conf is see the followinh output:
------------------------------------------------------------------
Gnujsp config checker
Version $Id: check-gnujsp-conf,v 1.4 2000/10/02 18:50:00 alph Exp $
Send bug fixes and suggestions to alph@gjt.org.
info: reading '/usr/local/apache/conf/jserv/jserv.conf'
info: found and mapping .jsp to '/jsp/gnujsp'
info: found zone mount name: 'jsp'
info: found jspname: 'gnujsp'
info: found /jsp mounted to zone 'jsp'
info: found jserv properties:
'/usr/local/apache/conf/jserv/jserv.properties'
info: ignoring jserv properties line and using:
'/usr/local/apache/conf/jserv/jserv.properties'
info: reading '/usr/local/apache/conf/jserv/jserv.properties'
info: found wrapper.classpath:
'/usr/local/apache/libexec/ApacheJServ.jar'
info: found wrapper.classpath: '/usr/local/JSDK2.0/lib/jsdk.jar'
info: found wrapper.classpath:
'/usr/local/gnujsp-1.0.1/lib/servlet-2.0-plus.jar'
info: found wrapper.classpath:
'/usr/local/gnujsp-1.0.1/lib/gnujsp10.jar '
info: found wrapper.bin: '/usr/local/jdk1.3.1_02/bin/java'
info: assuming jdk version: JDK 1.2 or above
info: found zones: 'root,jsp'
info: found zone property file:
'/usr/local/apache/conf/jserv/jsp.properties'
info: ignoring zone properties line and using:
'/usr/local/apache/conf/jserv/jsp.properties'
info: reading '/usr/local/apache/conf/jserv/jsp.properties'
info: found repository: /usr/local/apache/servlets
info: found repository: /usr/local/gnujsp-1.0.1/lib/gnujsp10.jar
info: found repository: /usr/local/gnujsp-1.0.1/lib/servlet-2.0-plus.jar
info: found repository: /usr/local/gnujsp-1.0.1/lib/sax2.jar
info: found repository: /usr/local/gnujsp-1.0.1/lib/openxml-1.2-w3c.jar
info: found repository: /usr/local/gnujsp-1.0.1/lib/aelfred.jar
info: found code for gnujsp: org.gjt.jsp.JspServlet
info: found gnujsp init arg:
checkclass=true,scratchdir=/usr/local/jserv/jspScratchDir,debug=true,compiler=/usr/local/jdk1.3.1
_02/bin/javac -classpath
%classpath%:%scratchdir%:/usr/local/gnujsp-1.0.1/lib/servlet-2.0-plus.jar:/usr/local/gnujsp-1.0.1/lib
/gnujsp10.jar -d %scratchdir% -deprecation %source%
info: found java compiler: /usr/local/jdk1.3.1_02/bin/javac
info: found java classpath as:
'%classpath%:%scratchdir%:/usr/local/gnujsp-1.0.1/lib/servlet-2.0-plus.jar:/usr/local/gnujsp-1.
0.1/lib/gnujsp10.jar'
note: check the classpath above! If parts are missing you
probably forget to put it in quotation marks because
the path contains spaces!
Summary: Please see for error messages above!
------------------------------------------------------------------
I do not know what classpath is.
The error message in mod_jserv.log is:
------------------------------------------------------------------
(ERROR) ajp12: Servlet Error: NoClassDefFoundError: org.gjt.jsp.JspServlet
------------------------------------------------------------------
I do not know how I solve this problem the ApacheJServ example is
working.
How can I set the correct Class defenition for it ?
Please help me
Thank you in advance.
--
Kind regards,
Richard Speelmans
Main IT