• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

eclipse tomcat context reloading on each jsp save :(

 
Ghufran Ul Haq
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ghufran Ul Haq
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have configured tomcat version 5.5.12 in my eclipse


Regards
 
Ghufran Ul Haq
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have applied Sysdeo Eclipse Tomcat plugin, and now my life is in peace
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic