Sudden change in Tomcat 7.0.6 behaviour
Hello list, I have been running my webapp on two tomcat servers located on two workstations versions 7.0.8 and 7.0.6. The workstations are in no way linked, I have merely been developing code and testing on both tomcat installations. After every coding session, I package my app into a WAR and keep it with me so I can undeploy the older version, then unpackage and continue working on the web app as I wish. This has been working fine until recently. Firstly I think it is important to state that I have included an xml file within both tomcat dist's under the following CATALINA_HOME/conf/Catalina/localhost/mywebbapp.xml with the following contents ?xml version=1.0 encoding=utf-8? Context docBase=/home/lewis/Downloads/mywebapp/mywebapp.war debug=0 crossContext=true Environment name=solr/home type=java.lang.String value=/home/lewis/Downloads/mywebbapp override=true/ /Context This is in direct accordance with the following http://wiki.apache.org/solr/SolrTomcat#Installing_Tomcat_6 At this stage I understand that the wiki entry relates to Tomcat 6.X, however up until now I have had no problems so I am sure that it 'work(s/ed)' fine. My problem is that today when I undeployed the webapp, then unpackaged my up-to-date WAR version, any code changes which I make don't seem to be being reloaded, E.g. when I reload the app, the old code is shown instead of any changes I have made prior to reloading. I have tried using firebug to see my code and yes it appears that no code changes seem to be being made even after I have reloaded the app with my changes. Has anyone experienced anything similar, or does anyone have any suggestions. Thank you Lewis Glasgow Caledonian University is a registered Scottish charity, number SC021474 Winner: Times Higher Education’s Widening Participation Initiative of the Year 2009 and Herald Society’s Education Initiative of the Year 2009. http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html Winner: Times Higher Education’s Outstanding Support for Early Career Researchers of the Year 2010, GCU as a lead with Universities Scotland partners. http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,en.html
Re: Sudden change in Tomcat 7.0.6 behaviour
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lewis, On 2/25/2011 2:35 PM, McGibbney, Lewis John wrote: Firstly I think it is important to state that I have included an xml file within both tomcat dist's under the following CATALINA_HOME/conf/Catalina/localhost/mywebbapp.xml with the following contents ?xml version=1.0 encoding=utf-8? Context docBase=/home/lewis/Downloads/mywebapp/mywebapp.war debug=0 crossContext=true Environment name=solr/home type=java.lang.String value=/home/lewis/Downloads/mywebbapp override=true/ /Context Okay. Exactly how do you undeploy/redeploy your webapp? My problem is that today when I undeployed the webapp, then unpackaged my up-to-date WAR version, any code changes which I make don't seem to be being reloaded, E.g. when I reload the app, the old code is shown instead of any changes I have made prior to reloading. When you say old code, do you mean that your web pages seem to be unchanged, or that Tomcat appears to run old, outdated versions of your compiled code? Quick tips: 1. Shut down Tomcat, delete all conf/Catalina/localhost/mywebbapp.xml-type things and make sure they are the files you really intend for them to be. 2. Delete Tomcat's work and temp directories 3. Re-start Tomcat That might help Tomcat clear it's throat. If the above helps, you might want to check time/datestamps on your files, and whether or not the time and date are set properly on your server. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1oDbEACgkQ9CaO5/Lv0PDmogCgjkWjSRaSt8pETcNf816PVy1j OywAmwdUNGK0lFD9GHwi+sqUDnXIKelJ =GeBG -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Sudden change in Tomcat 7.0.6 behaviour
2011/2/25 McGibbney, Lewis John lewis.mcgibb...@gcu.ac.uk: My problem is that today when I undeployed the webapp, then unpackaged my up-to-date WAR version, any code changes which I make don't seem to be being reloaded, Whether or not a JSP has to be recompiled depends solely on the timestamp of the class file and of the JSP file. Regardless of any changes to the JSP, if the JSP is older than the class it wouldn't be recompiled. To force recompilation, delete the files of the said application from the /work folder of Tomcat, as Chris already mentioned. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Sudden change in Tomcat 7.0.6 behaviour
From: McGibbney, Lewis John [mailto:lewis.mcgibb...@gcu.ac.uk] Subject: Sudden change in Tomcat 7.0.6 behaviour Context docBase=/home/lewis/Downloads/mywebapp/mywebapp.war debug=0 crossContext=true While fixing the procedural problems that Chris and Konstantin pointed out, also remove the debug attribute from your Context element - that hasn't been used in many years. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
RE: Sudden change in Tomcat 7.0.6 behaviour
This help is absolutely great everyone. Thank you very much. After implementing the suggestions I am up and running again. Thanks for now Lewis From: Caldarale, Charles R [chuck.caldar...@unisys.com] Sent: 25 February 2011 20:56 To: Tomcat Users List Subject: RE: Sudden change in Tomcat 7.0.6 behaviour From: McGibbney, Lewis John [mailto:lewis.mcgibb...@gcu.ac.uk] Subject: Sudden change in Tomcat 7.0.6 behaviour Context docBase=/home/lewis/Downloads/mywebapp/mywebapp.war debug=0 crossContext=true While fixing the procedural problems that Chris and Konstantin pointed out, also remove the debug attribute from your Context element - that hasn't been used in many years. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. Email has been scanned for viruses by Altman Technologies' email management service - www.altman.co.uk/emailsystems Glasgow Caledonian University is a registered Scottish charity, number SC021474 Winner: Times Higher Education’s Widening Participation Initiative of the Year 2009 and Herald Society’s Education Initiative of the Year 2009. http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html Winner: Times Higher Education’s Outstanding Support for Early Career Researchers of the Year 2010, GCU as a lead with Universities Scotland partners. http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,en.html