You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Rodrigo Ruiz <rr...@gridsystems.com> on 2003/12/10 11:39:14 UTC

jasper2 ant task does not report JSP error descriptions

Hi all,

I am trying to use the jasper2 task that comes with Tomcat. In 4.1.12 
version, when I had an error, it reported something similar to:

An error occurred at line: 15 in the jsp file: /NewUser.jsp

Generated servlet error:
    [javac] Compiling 1 source file

C:\project\genjsp\index_jsp.java:53: illegal start of expression
   }
   ^

But with 4.1.27, it changed and now it just reports:

  [jasper2] Compile failed; see the compiler error output for details.
  [jasper2]     at 
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:844)
  [jasper2]     at 
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
  ...

But no "compiler error output" is generated anywhere :_(

Can this be fixed? Maybe the taskdef example that comes in the javadoc 
comments of the class (org.apache.jasper.JspC) is not totally correct? 
Last time I checked the ant jspc task, it didn't compile the generated 
servlets, so it was unable to tell which JSP line contained the error.

Thanks in advance,
Rodrigo Ruiz


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org