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

Page recompilation & classpath question


Hello,

I am currently using Apache 1.3.9, JServ 1.0, GnuJSP 1.0.
I have classes stored in a MyClasses.jar file. I would like to see my
.jsp pages recompiled upon modification of this file, as they depend on
classes stored is this file.
Here is how I proceeded.
jserv.properties :
no reference to MyClasses.jar file in the wrapper.classpath
zone=jsp
jsp.properties=/path/to/jsp.properties
jsp.properties :
repositories=MyClasses.jar
autoreload.class=true
autoreload.file=true

In my JSPs I have a line like that :
<@% import "com.mypackage.etc.*"%>
This package is in MyClasses.jar file.

If I put MyClasses.jar file in the wrapper.classpath, everything works
fine. If I put it in the repositories=, an error is thrown during
compilation. No reference to this file appears on the compile line.

So, my conclusion is that this repositories= directive does not appears
to work as a real classpath for the jsp zone, as it is not added to the
classpath of the compilation line. Should it be ?

Of course, if I deploy the MyClass.jar file in the scratchdir (form.
repository directory) of the jsp, these classes will be seen by the
compiler, as the
repository directory seems to be added by default on the compilation
line. They
will be reloaded upon modification. But I do not see how the jsp files
could be recompiled upon modification of these class files. Has anybody
got any answer to this, or any trick to force recompilation ?

Thank you,
JP