C:\Development\eclipse\workspace\TestTomcat1\work\org\apache\jsp\test_jsp.java
and backtrack the coding error to your jsp.
-Tim
Thomas Henkel wrote:
Hi!
I encounter the 'org.apache.jasper.JasperException: Unable to compile class for JSP
' error when trying to display a simple JSP.
The JSP is just the 'Hello World' thing to ensure my installation is working. So no beans to be imported etc.
All workarounds I read so far do not help.
I made sure that the JDK is used, not the JRE (setting PATH, CATALINA_HOME, JAVA_HOME and editing registry entries).
From the error message it is clear that something is compiled, so the classesand the compiler are found. But The generated source code of the corresponding servlet is wrong.
My configuration: Tomcat 2.1.24 Eclipse 2.1.0 Build id: 200303272130 Tomcat plugin Win XP Professional
The error message: -----------------------snip-------------------- 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] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] C:\Development\eclipse\workspace\TestTomcat1 \work\org\apache\jsp\test_jsp.java:60: 'catch' without 'try' [javac] } catch (Throwable t) { [javac] ^ [javac] C:\Development\eclipse\workspace\TestTomcat1 \work\org\apache\jsp\test_jsp.java:30: 'try' without 'catch' or 'finally' [javac] try { [javac] ^ [javac] C:\Development\eclipse\workspace\TestTomcat1 \work\org\apache\jsp\test_jsp.java:69: '}' expected [javac] } [javac] ^ [javac] 3 errors
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
