I have several web applications running in the same instance of Tomcat
5.5 and I'd like to configure the default servlet differently for some
of them.  The default configuration is in the web.xml file in the
CATALINA_BASE/conf directory, and each webapp has its own web.xml file
in its WEB-INF/ directory.

I tried to override the default servlet configuration in one of the
webapps by simply copying the configuration from the main web.xml file
and changing the configuration to what I wanted, but the app would not
start up.  I got a parse error:

SEVERE: Parse error in application web.xml
java.lang.IllegalArgumentException: addChild:  Child name 'default' is
not unique

Which of course is an accurate message - I'm trying to override
'default' for a particular webapp.

Is this the correct way to approach the problem?  I could not find a
discussion of this in the Tomcat docs.  Is it even possible to have
different default servlet configurations on a webapp by webapp basis or
is there only one default servlet object for each Tomcat instance?

Thanks,
Rachel


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

Reply via email to