tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: Where to put Listener & Realm instead of server.xml?
Date Mon, 23 Aug 2004 17:19:21 GMT

If you're using Tomcat 5.x, you can put these in the context.xml file
(in the META-INF directory of your application / WAR).  They don't go in
web.xml, as they're not portable, but rather they are Tomcat-specific.
If you're using Tomcat 4.x, consider this another reason to upgrade ;)

Note however that Realm implementations need to be visible to the common
classloader.  So if the "..." in your message is a custom Realm
implementation, you're SOL as far as self-containment goes.

Yoav Shapira
Millennium Research Informatics

>-----Original Message-----
>From: Wendy Smoak []
>Sent: Monday, August 23, 2004 12:23 PM
>To: Tomcat Users List
>Subject: Where to put Listener & Realm instead of server.xml?
>We're going to try out a third-party report generation tool, and the
>installation instructions involve replacing server.xml.  They assume
>will be the only webapp running, which is not the case here.
>Can I put their changes somewhere else?
>They need:
>    <Listener className="..." descriptors="..." debug="0"/>
>and also
>    <Realm className="..." debug="99" />
>I don't really want to edit my server.xml, since I don't need to for
any of
>my own webapps.  But I'm not sure if these tags can go in web.xml, or
>not, I seem to remember maybe putting a file in the 'webapps' directory
>which will get picked up.
>Can someone enlighten me or point me in the right direction?  Thanks!
>Wendy Smoak
>To unsubscribe, e-mail:
>For additional commands, e-mail:

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

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

View raw message