[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[Home]
Error loading jsp servlet class
I just installed GnuJSP and I'm having problems getting the generated class
to load.
My environment is as follows:
Solaris 2.6
Apache 1.3.3
Apache JServ 1.0b1
JDK 1.2 Solaris VM (build Solaris_JDK_1.2_01_dev06_fcsV, native threads,
sunwjit)
GnuJSP 0.9.7
I've tracked the problem down to JSPServlet.loadServlet(). After loading
the servlet class a call is made to getField("__compilerVersionNr") and
then getInt(null) to extract the value. The value returned is always 0
even though the generated .java file contains the correct value (4). This
causes the test against the JSPCompiler.COMPILER_VERSION_NR to fail and
thus prints the "Could not load jsp servlet class ..." error.
No exceptions are being thrown, it just returns the wrong value. Any ideas
would be greatly appreciated. Thanks.
Marc Saegesser
--
The world has arrived at an age of cheap complex devices of great
reliability; and something is bound to come of it.
Vannevar Bush, 1945