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
2009-08-11 12:26:46
+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
2009-08-11 12:30:32
A:
This is what I did,
- Precompile all your JSPs.
- Run all your WARs unexploded.
- 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
2009-08-11 14:44:24