• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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
 
I am displeased. You are no longer allowed to read this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic