In 4.0b7, I can't get war files to expand at startup in time for a context in
the server.xml directory to not complain.

I'm trying to put a war file in the webapps directory and define a context that
references the expanded version of the war but Tomcat 4.0b7 complains at startup
that the document base directory doesn't exist. The documentation implies that
this should work and it worked fine in Tomcat 3.2.3.

What do I need to do to make this work in Tomcat 4.0b7?

My Host entry has unpackWARs = "true"

 <Host name="localhost" debug="0" appBase="webapps" unpackWARs="true">
...
</Host>

The war file is: /webapps/foo.war

The server.xml context entry is:

<Context path="/foo" docBase="foo" debug="0"
                 reloadable="true">
                 ...
        </Context>



The error message I get at startup is:

java.lang.IllegalArgumentException: Document base ..\webapps\foo does not exist
or is not a readable directory

Reply via email to