----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
versions: Java 1.1.7 jserv 1.0
Is GNU JSP able to read (rand eload) com.blah.blah class files from the zone
directory?
We keep the .java library files that change often in the proper directory in
the zone. This will support development of those java files.
I have found that gnu jsp pages ignore the zone directory when compiling jsp
pages. If I trick gnu jsp to include the zone directory in the classpath,
gnu jsp chokes.
So how do I tell gnu jsp to reload .class files that are not originally jsp
scripts?
Details:
If I setup the gnu jsp set up like so:
#jsp settings
servlet.gnujsp.initArgs=checkclass=true,pagebase=,scratchdir=/usr/local/stro
nghold/zones/generic/,debug=true,co
mpiler=builtin-javac -classpath
%classpath%:%scratchdir%:/usr/local/jserv/lib/servlet-2.0-plus.jar:/usr/loca
l/j
serv/lib/gnujsp10.jar -d %scratchdir% -deprecation %source%
I noticed the %scratchdir% variable in the classpath gets ignored. Remember
scratchdir is the same as the zone dir.
Error compiling source file: file:/www/docs/intranet/generic/jsp/hello.jsp
See %scratchdir% ignored:
builtin-javac -classpath
/usr/local/jserv/lib/ApacheJServ.jar:/usr/local/jserv/lib/gnujsp10.jar:/usr/
local/jserv/lib/servlet-2.0-plus.jar:/usr/java/lib/jsdk.jar:/usr/local/jConn
ect/classes/:/usr/local/stronghold/classes/:/usr/local/lib/msijava/:/bin/../
java/bin/../classes:/bin/../java/bin/../lib/classes.jar:/bin/../java/bin/../
lib/rt.jar:/bin/../java/bin/../lib/i18n.jar:/bin/../java/bin/../lib/classes.
zip:/bin/../java/bin/../classes:/bin/../java/bin/../lib/classes.zip:/usr/loc
al/jserv/lib/servlet-2.0-plus.jar:/usr/local/jserv/lib/gnujsp10.jar -d
/usr/local/stronghold/zones/generic -deprecation
/usr/local/stronghold/zones/generic/jsp__jsp__hello_2ejsp.java
/usr/local/stronghold/zones/generic/jsp__jsp__hello_2ejsp.java:6: Package
com.medservelink.util not found in import.
import com.medservelink.util.*;
^
1 error
So if I copy and past the zonedir instead of that "%scratchdir%" in to the
classpath the program will compile. But blows when it tries to run. It
appears that jsps own version of the classloader ignores the zone directory
intentionally.
gnujsp/java.lang.ClassNotFoundException: com.medservelink.util.Hash
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.ClassNotFoundException.<init>(Compiled Code)
at org.gjt.jsp.JspClassLoader.loadClass(Compiled Code)
at java.lang.ClassLoader.loadClassInternal(Compiled Code)
at jsp__jsp__hello_2ejsp._jspService(Compiled Code)
at org.gjt.jsp.HttpJspPageImpl.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.gjt.jsp.JspServlet$Page.process(Compiled Code)
at org.gjt.jsp.JspServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.jserv.JServConnection.processRequest(Compiled Code)
at org.apache.jserv.JServConnection.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
If I instead move the in house development libraries into a directory
outside of the zone everything appears to work fine.
So how do I tell gnu jsp to reload .class files that are not originally jsp
scripts?
--
Chris Busch [EMAIL PROTECTED]
MedServe Link Inc.
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]