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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content