JSPs don't seem to work with Tomcat3.1 and JDK1.3. I get a
ClassNotFoundException. Adding tools.jar and rt.jar
to my classpath didn't help. Neither did copying and inflating
the jar files into the same directory as my jsp file. 

I tried compiling my jsp with the jspc command in the bin
and I got the following error:
Exception in thread "main" java.lang.NullPointerException
        at java.io.File.<init>(Unknown Source)
        at org.apache.jasper.JspC.parseFiles(JspC.java:438)
        at org.apache.jasper.JspC.main(JspC.java:601)

I tried compiling some of the tomcat jsp examples and I got the same 
error.


The tomcat log had the following error:
Starting endpoint port="8080"
handler="org.apache.tomcat.service.http.HttpConnectionHandler" 
Starting endpoint port="8007"
handler="org.apache.tomcat.service.connector.Ajp12ConnectionHandler" 
Context log: path="" Class Not Found in init
 java.lang.ClassNotFoundException: Login1.jsp
        at
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:450)
        at
org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(AdaptiveServletLoader.java:141)
        at org.apache.tomcat.core.ServletWrapper.initServlet(ServletWrapper.java:294)
        at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:445)
        at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597)
        at org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
        at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
        at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
        at java.lang.Thread.run(Unknown Source)

If anybody else experienced this problem and resolved it, I would like to know
how.

Thanks!
N

Reply via email to