tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From QM <>
Subject Re: context loaded twice
Date Fri, 19 Nov 2004 00:17:37 GMT
On Thu, Nov 18, 2004 at 03:02:08PM +0200, Asher Tarnopolski wrote:
: tomcat not only prints the report twice, it loads the webapp twice,
: because right after the second time i get a nasty exception:

To add on to the response you've already received from someone else:
Tomcat's deploying your webapp twice because you've (implicitly) asked
it to do so.  

In your server config's <Host/> tag, make note of the following
- autoDeploy: automatically deploy a webapp when it's updated

- deployOnStartup: deploy all webapps found in the appBase when
  Tomcat starts

So if you have an app that's explicitly defined by a <Context/> tag, but
the "docBase" and "path" attributes don't match, Tomcat figures you want
to deploy it again.

Short version: make sure autoDeploy and deployOnStartup are both false.



software  --
tech news --

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message