• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Sathit Chaiwiwatt
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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
 
Steven Kors
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • 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.
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • 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
 
Khurram Shahood(SCJP2)
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!