Hi Kailash, I had same problem and mailed tomcat group. I was told that this is due to the version of jdk. Please upgrade your j2sdk to 1.4.1.01 and it should sort your compilation problem.
Thanks Deepa -----Original Message----- From: Kailash Kalyani [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 22, 2002 11:32 AM To: [EMAIL PROTECTED] Subject: Error in autocompiling JSP files in 4.1.12 standalone Dear all, When running a jsp file for the first time, I get the following runtime error from Tomcat. I'm running Windows 98 with Java 1.4 SDK. (error report at bottom of message) My classpath and other relevant env settings in Windows 98 CATALINA_HOME=C:\jakarta-tomcat-4.1.12 JAVA_HOME=C:\j2sdk1.4.1_01 CLASSPATH=%JAVA_HOME%/jre/lib;%CATALINA_HOME%\common\lib;.;%CATALINA_HOME%\c om mon\lib\servlet.jar However when I compile the Jsp file, now converted to a .java file in the work directory, it compiles just fine and when I access the .jsp file after, there are no problems. Its just an irritating nag, but I wonder if there is a solution to it. I looked through the list questions and some of the Tomcat documentation for running and setting up Tomcat. I'd be happy if someone could guide me to a solution by pointing me to a page or suggesting a solution. Thanks, Kailash Error report. *********** org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r. java:120) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2 93 ) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:313) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:324) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4 74 ) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1 84 ) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application Fi lterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ai n.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va :260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eN ext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va :191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eN ext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .j ava:471) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eN ext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eN ext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. ja va:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eN ext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eN ext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :1 74) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eN ext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ct ion(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a: 533) at java.lang.Thread.run(Thread.java:536) ************ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> ________________________________________________________________________ This email has been scanned for all viruses by the MessageLabs SkyScan service. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.messagelabs.com ________________________________________________________________________ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>