Matt RaibleMatt Raible is a Web Developer and Java Champion. Connect with him on LinkedIn.

The Angular Mini-Book The Angular Mini-Book is a guide to getting started with Angular. You'll learn how to develop a bare-bones application, test it, and deploy it. Then you'll move on to adding Bootstrap, Angular Material, continuous integration, and authentication.

Spring Boot is a popular framework for building REST APIs. You'll learn how to integrate Angular with Spring Boot and use security best practices like HTTPS and a content security policy.

For book updates, follow @angular_book on Twitter.

The JHipster Mini-Book The JHipster Mini-Book is a guide to getting started with hip technologies today: Angular, Bootstrap, and Spring Boot. All of these frameworks are wrapped up in an easy-to-use project called JHipster.

This book shows you how to build an app with JHipster, and guides you through the plethora of tools, techniques and options you can use. Furthermore, it explains the UI and API building blocks so you understand the underpinnings of your great application.

For book updates, follow @jhipster-book on Twitter.

10+ YEARS


Over 10 years ago, I wrote my first blog post. Since then, I've authored books, had kids, traveled the world, found Trish and blogged about it all.

Precompile your JSPs for Tomcat 4.x

Filip Hanik has provided a nice Ant script for pre-compiling JSPs. Its designed to be run after you've deployed your application to Tomcat. On my current project, it took 1 minute 30 seconds to compile all our JSPs - making it a candidate for new QA and Production deployments only. I'll be adding this to AppFuse's next release and verifying it actually works before I release. I know the compile works, but I want to make sure that my .java and .class files aren't rebuilt the first time I hit a JSP (I've seen this before). Also, you might want to checkout my issues if you run into problems.

Update: I've verified that this really does work - Sweet!

Posted in Java at Oct 09 2003, 03:41:47 PM MDT 3 Comments
Comments:

This only pre-compiles for tomcat, right? i.e. can't pre-compile and expect it to run on resin?

Posted by Matthew Payne on October 10, 2003 at 01:45 PM MDT #

The ant script is tomcat specific - I'm sure you could modify it to work with Resin though.

Posted by Matt Raible on October 10, 2003 at 02:42 PM MDT #

Hmmm, I'm not sure whether to go with problem A or B. A) I'm running from a war in my build area, and AFAIK the war file is never unpacked in userland. So how could I use this script? B) The reason I'm running from a war in my build area (and having to restart Tomcat constantly) is because it's the only practical way I've found to support a separate .xml file specifying datasources, logging, etc., in the webapps directory. Either the JNDI information was lost or Tomcat somehow cached old classes or there was some other problem that made quick "compile & test" cycles last an hour or longer. Am I missing something obvious?

Posted by Bear Giles on October 10, 2003 at 08:25 PM MDT #

Post a Comment:
  • HTML Syntax: Allowed