[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[Home]
Re:(More) JSP files served as text despite ApJServAction
Well, I don't think it's a Classpath issue.
As an experiment, I set my system classpath such that it included all of
the stuff necessary for servelts and gnujsp. Then I modified the apache
jserv example servlet IsItWorking.java such that it imported org.gjt.jsp.*
and I added a static void main entrypoint.
Then, in both the main and service methods, I instantiated a JspServlet
object and called the toString() method.
I compiled it, then invoked it from the commandline and got output
org.gjt.jsp.JspServlet@9bb7aaa5
Then I accessed http://jeromio.com/servlets/IsIt and got the same output
(along with the rest of that servlets page which I left in).
Then I attempted to access http://jeromio.com/servlets/gnujsp and got the
following:
Exception while servicing request for /servlets/gnujsp:
java.lang.RuntimeException: GNUJSP: internal error, could not find
resourceImpl
at
org.gjt.jsp.JspServlet$Page.getResourceImpl(JspServlet.java:676)
at
org.gjt.jsp.JspServlet$Page.needToRecompile(JspServlet.java:755)
at org.gjt.jsp.JspServlet$Page.process(JspServlet.java:572)
at org.gjt.jsp.JspServlet.service(JspServlet.java:284)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
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:479)