• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Do have to restart Tomcat every time I recompile a bean?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is FAQ from jguru, the answer is
It depends on how the context of your application its configured (check the reload attribute in the Context tag
of tomcat configuration (normally conf/server.xml), and where that bean it's located.
If the bean it's located in the WEB-INF/classes or WEB-INF/lib of your application and the reload attribute
is set to true, no, you do not really need to restart. If the beans are in the common tomcat directory
($tomcat_home/lib or $tomcat_home/classes), yes you have to.

I already set reloadable="true" and save class in /Web-inf/classes, When I recompile and run jsp again, it use old class so I must restart tomcat
Any one help me ? I use tomcat 4.04
 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://moreservlets.com/Using-Tomcat-4.html
Try the above guide on setting up Tomcat.
Typically you will see your classes update in the Tomcat START dos window. It shows the time of the last compiled class and then the new updated time.
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
By defalut the context '/'(ROOT) is not enabled for reload.
You need to change this in 'conf/server.xml':

to this:


Rene
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
if u r using new version of tomcat then u dont need to start the tomcat.
tomcat 4(beta) or higher
 
reply
    Bookmark Topic Watch Topic
  • New Topic