I've not really any idea other than to suggest what happens with
commenting out the web.xml default in the conf version and having your
web app's have their own version (since web apps don't know of each
other)

-----Original Message-----
From: Rachel McConnell [mailto:[EMAIL PROTECTED] 
Sent: 25 March 2006 22:31
To: Tomcat Users List
Subject: configuring the default servlet

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]





<FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> 
-------------------------------------------------------
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
-------------------------------------------------------
</FONT> <FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLACK> 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
</FONT>


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

Reply via email to