tags:

views:

105

answers:

3

Suppose I need to make a CDROM with a Tomcat server. How can I guarantee that all the jsp files have correctly been compiled before I build the CD image to be burnt ?

+1  A: 

Try using this link. It describes how to pre compile your JSP files in ANT or Maven.

amischiefr
+1  A: 

Tomcat uses Jasper for JSP management, there's some guidance in the documention on precompiling JSPs. Once the server has been started up once, you can copy the directories to the target disk.

Alternatively, Ant has a (deprecated) JSP compilation task.

Update: There's a blog that describes how to use Ant to compile your JSPs.

Rich Seller
A: 

This is what I did,

  1. Precompile all your JSPs.
  2. Run all your WARs unexploded.
  3. Test your server and make sure nothing is created in webapps and work directory.

I was amazed so many libraries we use assume that the WAR is exploded and try to read files in WEB-INF.

ZZ Coder