get Tomcat 5 to compile at startup?

M

Mads Kristiansen

Hi!

Is it possible to make Tomcat 5 compile all *.jsp's on startup? - Or
do something similar that will make the server compile all pages at
once?

Right now it's compiling a page the first time you make the request
from a browser - and it takes forever to load the page. It's really a
pain.

Best regards
Mads (DK)
 
H

Heiner Kücker

Mads Kristiansen:
Hi!

Is it possible to make Tomcat 5 compile all *.jsp's on startup? - Or
do something similar that will make the server compile all pages at
once?

Right now it's compiling a page the first time you make the request
from a browser - and it takes forever to load the page. It's really a
pain.

Best regards
Mads (DK)

se topics below:

http://groups-beta.google.com/group...1&as_maxd=14&as_maxm=12&as_maxy=2004&safe=off

http://groups-beta.google.com/group..._doneTitle=Back+to+Search&&d#1061d116784d2244


Heiner Kuecker
Internet: http://www.heinerkuecker.de http://www.heiner-kuecker.de
JSP WorkFlow PageFlow Page Flow FlowControl Navigation: http://www.control-and-command.de
Java Expression Formula Parser: http://www.heinerkuecker.de/Expression.html
CnC Template Technology http://www.heinerkuecker.de/Expression.html#templ
 
M

Mads

Thanks for the quick reply, but what I'm looking for is some kind of
setting in Tomcat 5.

I work in a company with a dozen of (big) applications that we need to
run at a server very often and it is crucial that we compile all the
source code every time. As it is right now, IE hangs every time Tomcat
starts compiling a page. So it would be very handy if Tomcat just
started compiling the applications once we restarted the server or
deployed a new build.

Can someone please specify if Tomcat 5 has any settings that has that
kind of functionality?

Best regards
Mads (DK)
 
J

Juha Laiho

Mads said:
Thanks for the quick reply, but what I'm looking for is some kind of
setting in Tomcat 5.

AFAIK, no such thing exists -- but you can explicitly compile your
JSPs before deployment with the Jasper tool included in Tomcat
distribution. THere are even ready ant tasks to handle the
compilation.
 
A

Adam Maass

Juha Laiho said:
AFAIK, no such thing exists -- but you can explicitly compile your
JSPs before deployment with the Jasper tool included in Tomcat
distribution. THere are even ready ant tasks to handle the
compilation.

My employer has standardized on Tomcat as the web engine of choice. The
modified distribution we're supposed to use does exactly as you suggest --
compile all previously uncompiled JSPs on webapp startup. I don't know
exactly how it does what it does, but it does.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,689
Members
48,796
Latest member
Greg L.

Latest Threads

Top