- This topic has 3 replies, 1 voice, and was last updated 15 years, 6 months ago by Alan Hay.
-
AuthorPosts
-
Alan HayMemberI am having trouble seeing changes made to a web app deployed to Tomcat 5.5 using the hot deploy functionality.
While changes changes to classes are being reloaded okay, I cannot see any changes to JSP pages without reloading the webapp.
The changed files are synched in the webapps directory however the changes are not visible – even if I clear out the compiled servlets in the work directory.
I have another project deployed which works as expected. The only thing I can think off is that it is something to do with having a context.xml file located in WebRoot/META-INF, the project I am having problems with having this and the other not.
Any ideas anyone?
<?xml version='1.0' encoding='utf-8'?> <!-- CONTEXT FILE FOR TRIAL DEPLOYMENT --> <Context displayName="Local Test" debug="8" reloadable="true" antiResourceLocking="true" cookies="true" crossContext="false" docBase="C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/TestApp"> <Resource name="jdbc/abcl" auth="Container" type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/abc" username="x" password="y" maxActive="20" maxIdle="10" maxWait="-1" removeAbandoned="true" removeAbandonedTimeout="10" logAbandoned="true" /> <!-- <Manager pathname="" /> --> </Context>
Alan HayMemberOkay.
Found the answer here:
http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-10181.html
Having the antiResourceLocking attribute set to true was the issue.
Cheers.
Alan HayMemberOkay, I now have JSP files reloading but since I set antiResourceLocking=”false”, Tomcat is now doing a full reload whenever I change a class file.
15-May-2009 15:07:12 org.apache.catalina.core.StandardContext reload
INFO: Reloading this Context has startedIdeas?
Thanks.
Alan HayMemberOkay, set the reloadable attribute to false and everything now seems to be working as expected.
Alan
-
AuthorPosts