How to precompile JSPs in JBoss 4/5 ?

Solution Verified - Updated -

Issue

  • How to precompile JSPs in JBoss 4/5?
  • Is there any command line utility available to precompile all the JSPs?
  • How to be able to pre-compile code so the java server pages do not have to be compiled at runtime?
  • How to enable jsps's precompilation on startup ?
  • Is this any best practices? Is this recommended to apply on webapp, on jvm or on JBoss container ?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 4.x
    • 5.x
  • Red Hat JBoss Enterprise Web Server (EWS)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.