You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by simon colston <si...@idealnet.co.jp> on 2004/07/01 02:59:15 UTC

Re: Errors in precompiled JSPs

Hello Woodchuck,

Thanks for the reply.

Woodchuck wrote:
> 
> <jspc srcdir="${webapp.build}" destdir="gensrc/src"
> uriroot="${webapp.build}"
> compiler="jasper41"
> includes="index.jsp,jsp/**/*.jsp"
> verbose="9"
> webxml="jspmaps">
> 
> <classpath>
> <pathelement path="${tomcat.home}/common/lib/jasper-compiler.jar"/>
> <pathelement path="${tomcat.home}/common/lib/servlet.jar"/>
> <pathelement path="${tomcat.home}/common/lib/jasper-runtime.jar"/>
> <pathelement path="${ant.home}/lib/ant.jar"/>
> </classpath>
> 
> </jspc>

I gave this a try and got:
   [jasperc] org.apache.jasper.JasperException: Unrecognized option: 
-v9.  Use -help for help.

I think this may be because I am using Tomcat 5 and the jasper compiler 
is different.  I tried "japser", "jasper41", "jasper5" and "jasper50" 
for the compiler option but it only recognised the first two, and they 
both gave me the -v9 exception (related to the verbosity attribute).

The manual page for the jspc task,

http://ant.apache.org/manual/OptionalTasks/jspc.html

seems very old and seems to have been written in March 2003.  It also 
has warnings everywhere that this should just be used for validation and 
not for pre-compiling.  It doesn't look like it has been updated for 
Tomcat 5 comptatibility.

> 
> why do you need to define your own pre-compile task may i ask?
> 

I read the manual ;-)
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html


Am I messing up somewhere here?  And is there anyway to get the jasper 
shipped with Tomcat 5 to display errors when used for pre-compiling?

Cheers,

simon


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