This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Pre Compiling jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Pre Compiling jsp" Watch "Pre Compiling jsp" New topic

Pre Compiling jsp

Apna Apana

Joined: May 01, 2007
Posts: 20
Hi All,

Can some one tell me where to put the jsp precompilation build file(build.xml) in the Tomcat 7 structure.
I have a web application called myapp which is inside webapps folder and has bunch of jsp files, I want to precompile them using the following script.

Right now I have this build file called build.xml inside the build folder in myapp. So final structure is myapp has bunch of jsp files and a build folder with build.xml to precompile the jsps.
When I run the above build.xml using ant I get the following error.

I have debugged the jasper.jar code and identified that the build.xml is not finding the jsp files. Please correct me if I'm wrong .
So my question what is wrong with my build.xml and why is that jasper 2 task not finding the jsp files and how to tell the jasper2 task about the jsp files.

Thanks in Advance!!!
Please Help me
I am stuck and eagerly waiting for the reply.

I agree. Here's the link:
subject: Pre Compiling jsp
It's not a secret anymore!