I recently added db connection pooling to a working webapp, and have run into a problem I can't seem to solve with the deployment of this app in
Tomcat.
Tomcat 4.1.12
I added a new context to server.xml in order to define the dbcp.
With this context in place, the app's war file no longer unpacks, but instead Tomcat raises an exception that the document base does not exist.
Here's the top of the exception stack:
(with app names changed to protect the innocent)
My docBase ( in server.xml ) for this context is the directory name into which I'd like the war file to unpack - same directory it was unpacking into prior to adding the context.
If I change the docBase to be the war file itself, the app runs without unpacking. ( eg: docBase="myapp.war" ).
I do have unpackWARs set to "true", as it was before.
The trouble is, I'd like to be able to unpack and serve some of the static content out of the webapp's docBase from Apache httpd. Without unpacking, it's not possible.
I'm stumped.