Does this solves the problem? If I am wrong, correct me.
Did you try this?
Vijayendra <br /> <br />"The harder you train in peace, the lesser you bleed in war"
Joined: Mar 30, 2004
I tried that and it's worked for the first time when I changed the servlet and without restarting the tomcat....... but when second time I changed the servlet, it is not reflecting the changes done in the servlet.
I compiled the servlet after a small change. I didn' understand the reason.
hi first it depends on the version of tomcat you are using but this html page addreses all . http://www.coreservlets.com/Apache-Tomcat-Tutorial/ i would like to point you to specific subsection on this webpage.. just go thru section 2.3,2.4 and 2.6 and also section 5.1
in brief:: Edit install_dir/conf/server.xml and uncomment this line: <Context path="" docBase="ROOT" debug="0"/>. Not necessary in Tomcat 4.0.3 and earlier. In most versions of Tomcat 5, the element is missing the trailing slash and you need to add it
Edit install_dir/conf/server.xml and add the following just above the entry for the ROOT context from the previous step: <DefaultContext reloadable="true"/>
Go to install_dir/conf/web.xml (not .../server.xml) and uncomment the servlet and servlet-mapping elements that map the invoker servlet to /servlet/*. In Tomcat 4, you only need to uncomment the servlet-mapping element, and this is not necessary at all prior to Tomcat 4.1.12.
You configured Tomcat to reload your app properly, the proof is that it reloaded one time. You say it doesn't reload the second time. Try a third time, or try to "touch" you servlet file. It *may* reload the app. Usually it doesn't, once it's stuck you'll have to relaunch the whole of it. Apache software is no more the quality one is used to be. It's now very buggy, and bloated, and clunky. Probably as Apache inexperienced programmers believe to be the king of programmers, reinvente the wheel the wrong way, and refuse any critics because they re the bests. At least they should RTFM about Java classes (system libraries), and stop writing useless code. And they should stop make people have to use *their* crappy log4j logger.