Multiple realms in Tomcat

2005-09-26 Thread Surya Mishra
My Tomcat server doesn't start if the JNDI realm fails to load (due to
unavailability of the directory server). I want the server to start properly
and serve the unprotected applications at least. Is there a way to specify
multiple realms so that different applications can use different realms for
authentication?
 Thanks
-Surya


Re: Multiple realms in tomcat

2002-12-17 Thread Rasputin
* Ben Jessel [EMAIL PROTECTED] [1238 17:38]:
 Can you set up multiple JDBC realms in tomcat 4x or are you stuck with just the one?

From:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/realm.html

You may nest a Realm inside any Catalina container (Engine, Host, or
Context). In addition, Realms associated with an Engine or a Host are
automatically inherited by lower-level containers, unless explicitly
overridden.

I haven't tried it, but it sounds like it'll work.

 Also, say that you had no control over configuring server.xml ( say, you had web-app 
space with an ISP ) is there any way you could configure a web-application wide realm 
 without having to play around with other configuration files?

As far as I know, Realms exist on the server level, so if you're asking
about configuring one from web.xml, forget it.
 If you've got autoDeploy enabled for your webapps folder, though, you can
probably add a 'context.xml' file in there which contains a Realm -
that would mean you could avoid editing server.xml...

See:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automatic%20Application%20Deployment
-- 
Rasputin :: Jack of All Trades - Master of Nuns

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




Multiple realms in tomcat

2002-12-16 Thread Ben Jessel
Can you set up multiple JDBC realms in tomcat 4x or are you stuck with just the one?
Also, say that you had no control over configuring server.xml ( say, you had web-app 
space with an ISP ) is there any way you could configure a web-application wide realm  
without having to play around with other configuration files?

Thanks

Ben