The moose likes Tomcat and the fly likes Server Restart To Add Beans? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "Server Restart To Add Beans?" Watch "Server Restart To Add Beans?" New topic
Author

Server Restart To Add Beans?

Kerry Wilson
Ranch Hand

Joined: Oct 29, 2003
Posts: 250
I have to restart my Tomcat server to get the Beans to work. Else, it causes a class not found error. Is there a setting for this somewhere. I have it setup to the default from the installation. Thanks in Advance.


http://www.goodercode.com
SCJP 1.4
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 11863
The alternative to restarting is to use the Management application. This is documented in your Tomcat installation.
If Tomcat had to check the date stamps on every class file every time a servlet or JSP was accessed, it would really slow things down.
Bill


Java Resources at www.wbrogden.com
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

There is also a known class reloading bug in TC 4.1.27. the hot fix
 
 
subject: Server Restart To Add Beans?
 
Threads others viewed
Tomcat Http and Https on the same port
opening chm file from jsp page
servlet changes doesn't take effect after rebuild project
Reloading if Beans or Normal classes.
jsp and jrun
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com