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=34076>.
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=34076

           Summary: overriding content.xml docBase with manager webapp
                    deploy function fails with java.util.zip.ZipException if
                    context.xml specifies war and manager specifies
                    directory
           Product: Tomcat 5
           Version: 5.0.28
          Platform: PC
               URL: http://localhost:8080/manager
        OS/Version: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Webapps:Manager
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


When using the manager webapp specifying to deploy a local directory with the
war parameter and specifying a context.xml that specifies a war file with the
docBase parameter, the manager fails with java.util.zip.ZipException.

Here is an example deployment URL
http://localhost:8080/manager/deploy?config=file://C:/Projects/tts/apps/tts-webapp/src/conf/tts-dev-local.xml&war=file://C:/Projects/tts/apps/tts-webapp/build/war

Error Message:
FAIL - Encountered exception java.io.IOException: java.util.zip.ZipException:
The system cannot find the file specified

where:
    the URL file://C:/Projects/tts/apps/tts-webapp/src/conf/tts-dev-local.xml
    points to a file containing this config (slightly abreviated):
    <Context displayName="My App Name" path="" docBase="tts.war" debug="99">
        ... some stuff ...
    </Context>

    the URL file://C:/Projects/tts/apps/tts-webapp/build/war points to my
    directory where I construct a war-format layout with my webapp

If I change the docBase in the context.xml to "tts.wart" it deploys:
OK - Deployed application from context file
file://C:/Projects/tts/apps/tts-webapp/src/conf/tts-dev-local.xml

It appears that the determination of whether we are deploying from a war file or
a directory is made when the context.xml is read and isn't overriden when the
"war" parameter to the manager's "deploy" action is specified.  Therefore, it's
either still using the value from the context.xml (and looking for it under
webapps) or it's trying to open the directory as a zip file or the directory
plus + ".war" or something.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

Reply via email to