I'm finding that Tomcat runs JSPs rather nicely (some of the examples are
still broken, though, I think). Instead of compiling directly, I just let
Tomcat compile 'em when they're first requested, but I had to add JAVA_HOME
to my environment (Win2000, IIS, in this case) so that Tomcat actually fired
up with a proper path to tools.jar in its classpath.
Dave Halsted
----- Original Message -----
From: Naga Nunna <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 09, 2000 7:28 PM
Subject: Problems with JSPs in Tomcat3.1
>
> 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.j
ava:450)
> at
>
org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(AdaptiveServletLoad
er.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(HttpC
onnectionHandler.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
>