Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Building Working Set
Building Working Set [message #231179] Mon, 11 May 2009 12:46 Go to next message
breako  is currently offline breako
Messages: 57
Registered: July 2009
Member
Hi,
I am using ganymede with Tomcat 5.5.
I make changes to a single class which has no dependencies on any other
class.
I have build automatically disabled. I create a build working set, which
only contains this class.

I select to build the working set.

My tomcat server restarts and the new version class is in the classloader.

I would like for my tomcat server to not have to restart.

Any ideas?

Thanks.
Re: Building Working Set [message #231187 is a reply to message #231179] Mon, 11 May 2009 13:26 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1299
Registered: July 2009
Senior Member
breako wrote:
> Hi,
> I am using ganymede with Tomcat 5.5.
> I make changes to a single class which has no dependencies on any other
> class.
> I have build automatically disabled. I create a build working set,
> which only contains this class.
>
> I select to build the working set.
>
> My tomcat server restarts and the new version class is in the classloader.

I assume that the whole server doesn't restart, but that the context for
the webapp in question reloads.

>
> I would like for my tomcat server to not have to restart.
> Any ideas?

That depends on whether you want your class changes visible. If not,
then you can either turn off auto-reloading for that context, or turn
off auto-publishing for the server and manually publish to make changes
visible. The first approach would not affect JSP changes being quickly
visible. The second approach would require a manual publishing for JSP
changes as well as class changes to become visible.

After manually publishing class changes, the Servers view will say that
Tomcat needs to restart. However, if the automatic reload is
successful, you can keep going. Note that "reloading" can be quirky
depending on the changes you make and often leaks the old context's
classloader, which will eventually lead to OutOfMemoryErrors.

Cheers,
Larry

>
> Thanks.
>
>
Re: Building Working Set [message #231446 is a reply to message #231187] Sun, 17 May 2009 06:14 Go to previous messageGo to next message
breako  is currently offline breako
Messages: 57
Registered: July 2009
Member
That's interesting Larry. Thanks. How do I turn of auto-reloading for the
context?
Thanks.
Re: Building Working Set [message #231526 is a reply to message #231446] Mon, 18 May 2009 09:55 Go to previous message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1299
Registered: July 2009
Senior Member
breako wrote:
> That's interesting Larry. Thanks. How do I turn of auto-reloading for
> the context?
> Thanks.
>

Set the "reloadable" attribute to false in the <Context> element. You
can do this manually by modifying the server.xml directly. You can also
open the server editor and switch to the Modules tab (at the bottom of
the server editor window). Select the module (equivalent to the
context) and click Edit and uncheck "Auto reloading enabled".

Cheers,
Larry
Previous Topic:Importing war
Next Topic:Two WebContent folders in one dynamic web project
Goto Forum:
  


Current Time: Mon Jul 28 12:34:03 EDT 2014

Powered by FUDForum. Page generated in 0.03108 seconds