Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » jsp's are re-compiled after every tomcat restart?
jsp's are re-compiled after every tomcat restart? [message #88894] Tue, 29 May 2007 18:31 Go to next message
Sasa Teofanovic is currently offline Sasa TeofanovicFriend
Messages: 12
Registered: July 2009
Junior Member
Hi Simon,

as you know :), I'm running Equinox with Tomcat 5.5, and i noticed that
whenever I start my Tomcat, the compiled jsp's in my Tomcat working
directory are always deleted on startup and compiled again, when they got
loaded.
Is there a way to configure my HttpService or HttpContext, that my cached
(compiled) jsp's become reusable (Tomcat default behaviour)??

thx,
teos
Re: jsp's are re-compiled after every tomcat restart? [message #88911 is a reply to message #88894] Tue, 29 May 2007 19:29 Go to previous messageGo to next message
Simon Kaegi is currently offline Simon KaegiFriend
Messages: 381
Registered: July 2009
Senior Member
Right now your compiled jsps are stored in a temp dir associated with the
HttpContext which as you've noticed is cleaned up alongside with the objects
lifecycle.
Part of this is to handle situations where we do want to recompile in
reaction to changed dependencies, however it's still worth thinking about
providing someway to parameterize behaviour -- maybe next release.

If this is causing you real grief then maybe consider pre-compiling your
jsps. This just works and is portable under any appserver when using the
servletbridge.

-Simon

"teos" <sasa.teofanovic@gmx.at> wrote in message
news:0f6cdfd67253e19da4080f7f5780d2e1$1@www.eclipse.org...
> Hi Simon,
>
> as you know :), I'm running Equinox with Tomcat 5.5, and i noticed that
> whenever I start my Tomcat, the compiled jsp's in my Tomcat working
> directory are always deleted on startup and compiled again, when they got
> loaded.
> Is there a way to configure my HttpService or HttpContext, that my cached
> (compiled) jsp's become reusable (Tomcat default behaviour)??
>
> thx,
> teos
>
>
Re: jsp's are re-compiled after every tomcat restart? [message #88926 is a reply to message #88911] Wed, 30 May 2007 13:08 Go to previous messageGo to next message
Sasa Teofanovic is currently offline Sasa TeofanovicFriend
Messages: 12
Registered: July 2009
Junior Member
Yeah, such an option would be nice in a future release :)
A last question to this topic - when I have compiled jsp's from a last
tomcat run in my work-dir and I restart tomcat with changed bundles
(dependencies), than there shouldn't be any references to the compiled
jsp's - in this case, I could update my eclipse directory (before tomcat
start) in the work-dir and the already compiled jsp's could be reused - is
that so, if they're not removed automatically by the framework launcher??

thx,
teos
Re: jsp's are re-compiled after every tomcat restart? [message #89133 is a reply to message #88926] Fri, 01 June 2007 01:54 Go to previous message
Simon Kaegi is currently offline Simon KaegiFriend
Messages: 381
Registered: July 2009
Senior Member
"teos" <sasa.teofanovic@gmx.at> wrote in message
news:8b28fa3c4b8d9f587da98d2d407efceb$1@www.eclipse.org...
> Yeah, such an option would be nice in a future release :) A last question
> to this topic - when I have compiled jsp's from a last tomcat run in my
> work-dir and I restart tomcat with changed bundles (dependencies), than
> there shouldn't be any references to the compiled jsp's - in this case, I
> could update my eclipse directory (before tomcat start) in the work-dir
> and the already compiled jsp's could be reused - is that so, if they're
> not removed automatically by the framework launcher??

Hmm... I think you're asking about the lifecycle of the work-dir. Keep in
mind that each HttpContext is associated with its own context.temp.dir.
The intent is that your compiled JSPs should be removed along with this temp
dir whenever the associate HttpContext is no longer referenced by a servlet
or resource registration. This might occur if your bundle's dependencies are
changed however the most common case would be if the framework is shutdown.
In addition to regular lifecycle cleanup, to ensure everything from a
previous run was cleaned up properly the HttpService initialization code
will also remove any old HttpContext temp dirs that remain.
>
> thx,
> teos
>
Previous Topic:Equinox HTTPServletBridge vs. Eclipse Platform Core Runtime
Next Topic:Configure Jetty from an external file
Goto Forum:
  


Current Time: Fri Apr 19 21:12:54 GMT 2024

Powered by FUDForum. Page generated in 0.02965 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top