facebook

Tomcat and Hot Deploy

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #298451 Reply

    Alan Hay
    Member

    I 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>
    
    #298456 Reply

    Alan Hay
    Member

    Okay.

    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.

    #298459 Reply

    Alan Hay
    Member

    Okay, 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 started

    Ideas?

    Thanks.

    #298462 Reply

    Alan Hay
    Member

    Okay, set the reloadable attribute to false and everything now seems to be working as expected.

    Alan

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Tomcat and Hot Deploy

You must be logged in to post in the forum log in