DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27958>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27958

WAR files not autodeployed when changed

           Summary: WAR files not autodeployed when changed
           Product: Tomcat 5
           Version: 5.0.19
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Catalina
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


An applications WAR file is not redeployed automatically when the
war file is updated.

The problem is that HostConfig.checkContextLastModified() is seeing the
wrong value for what it thinks is the name of the WAR file. Instead of
seeing "myubc.war" it sees "ROOT" so the

  if (files[i].endsWith(".war")) {

test at line 843 always fails since files[0]="ROOT"


Here is the server.xml entries for the Context:

    <Engine name="myUBC" defaultHost="scandia">
      <Host name="scandia" appBase="webapps"
        unpackWARs="true" autoDeploy="true" workDir="work">
        <Context path="" docBase="/local/src/myUBC2/myubc.war" reloadable="false">


   George

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to