aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes eclipse tomcat context reloading on each jsp save :( Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "eclipse tomcat context reloading on each jsp save :( " Watch "eclipse tomcat context reloading on each jsp save :( " New topic
Author

eclipse tomcat context reloading on each jsp save :(

Ghufran Ul Haq
Greenhorn

Joined: Apr 10, 2007
Posts: 29
Hi

I have a dynamic web project configured in eclipse. I run it by right click on the project node in the 'project explorer' view and then click on Run As --> Run on Server.
While the tomcat is running, saving even a small change in the code of a jsp, the whole web project (context) reloads in the tomcat inside eclipse.
I think tomcat should not reload all context. It should just reload the edited jsp


I am using eclipse
eclipse 3.3-jee-europa-win32
Version: 3.3.0
Build id: I20070621-1340

Please suggest how i can save time for the web application development

Regards
Ghufran
Veeresh Hosur
Ranch Hand

Joined: Dec 18, 2007
Posts: 32
Once you modify any JSP.. go to that particular page and press refresh it works fine. But if you make any changes in the code you need to resatart the server.

Thanks
Veeresh
Ghufran Ul Haq
Greenhorn

Joined: Apr 10, 2007
Posts: 29
Hi

When the tomcat is running outside eclipse, and you save any change in jsp, you don't need to restart tomcat. When you change any java file and copy the corresponding .class file into a running tomcat (webapps/app-context/WEB-INF/classes/..), you need to restart the tomcat.

While in the development phase, restart of tomcat by the eclipse is understandable for the sake of change in .class file. But for the change in jsp, restart of tomcat by the eclipse is not understandable.

Can someone please tell me how i can tell eclipse that it should not restart tomcat (reload context) when i save changes in jsp or html files.

Regards

Ghufran
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16305
    
  21

There's a difference between restarting Tomcat and reloading a context. When you reload a context, only that one webapp is affected. When you restart Tomcat, all the webapps in that copy of Tomcat are affected.

As far as reloading the context, since a JSP turns into Java code, it's probably not safe to assume that there might never be side-effects, so Tomcat's taking the safe/pessimistic point of view. You might be able to fine-tune the process, but for that you'd need to consult the documentation for the particular version of Tomcat you're using. Stuff like that tends to change between versions.


Customer surveys are for companies who didn't pay proper attention to begin with.
Ghufran Ul Haq
Greenhorn

Joined: Apr 10, 2007
Posts: 29
Hi

I have configured tomcat version 5.5.12 in my eclipse


Regards
Ghufran Ul Haq
Greenhorn

Joined: Apr 10, 2007
Posts: 29
I have applied Sysdeo Eclipse Tomcat plugin, and now my life is in peace
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: eclipse tomcat context reloading on each jsp save :(