This one again!
I've got a problem that I have tried to solve by looking thro' all the
archive's of this list. I have the following class path set for JServ,
Apache on Linux.
/usr/local/apache/libexec/ApacheJServ.jar /usr/local/jsdk/lib/jsdk.jar
/usr/local/jdk1.2.2/lib/tools.jar /usr/local/jserv/lib/gnujsp10.jar
/usr/local/jdbc/mysql_uncomp.jar /usr/local/jsdk/lib/servlet-2.0-plus.jar

I have the repository for the gnujsp zone set to:
/usr/local/java/jspclasses
where my beans are complied to.

I have the initArgs set:
scratchdir=/tmp, debug=true, pagebase=/www/dev/html,
compiler=/usr/local/jdk1.2.2/bin/javac -classpath
%classpath%:%scratchdir%:/usr/local/java/jspclasses -d %scratchdir% %source%

and if I try and load the jsp file I get the following error:
Exception while servicing request for /first.jsp:
java.lang.NoClassDefFoundError: mook/bean/jsp/test/LinkMaker
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at org.gjt.jsp.JspServlet$Page.load(JspServlet.java:929)
at org.gjt.jsp.JspServlet$Page.process(JspServlet.java:628)
at org.gjt.jsp.JspServlet.service(JspServlet.java:284)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)
at org.apache.jserv.JServConnection.run(JServConnection.java:188)
at java.lang.Thread.run(Thread.java:475)

If how ever I add the /usr/local/java/jspclasses path to wrapper.classpath
in the jserv.properties file, it runs fine. But of now, of course, any
modifications made to the beans in the jspclasses directory are not compiled
until the web server is restarted, with on a development machine with server
users is a pain (to say the least).
FYI if I remove the 'compiler' from the init args then the java file (of the
jsp page) can not compile, which proves my classes are there.
My questions therefore are:
What am I doing wrong?
Why isn't the repositories statement working? :-(
Is there a runtime class path directive for a particular zone? (other that
the repositories).

Thanks in advance

Matt Wilson

e: [EMAIL PROTECTED]
w: www.mook.co.uk

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to