Protecting applications in Tomcat using Directory Server

2005-09-24 Thread Surya Mishra
I have successfully used JNDI realm to protect my applications on Tomcat. But if Tomcat is unable to connect to the the directory server, it refuses access. I want it to use the tomcat-users list as a backup if it fails to connect to the directory. It seems if the JNDI realm is set up, the

Re: Protecting applications in Tomcat using Directory Server

2005-09-25 Thread Surya Mishra
in that application. Thanks -Surya On 9/25/05, Mark Thomas [EMAIL PROTECTED] wrote: Surya Mishra wrote: I have successfully used JNDI realm to protect my applications on Tomcat. But if Tomcat is unable to connect to the the directory server, it refuses access. I want it to use the tomcat-users list

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

ClassCastException while sharing objects accross applications

2005-10-03 Thread Surya Mishra
Hi, I am trying to share an object between 2 applications deployed on the same tomcat server. I have put the object in the ServletContext in my first application. I access the object using ServletContext.getContext(firstApp).getAttribute(object);. The object comes in fine but it won't let me cast

Exception loading custom Realm

2005-10-10 Thread Surya Mishra
Hi, I created my own realm by extending UserDatabaseRealm. But when I start the tomcat server, I get the following exception. If I use UserDatabaseRealm, everything works fine. That means Tomcat can and does load the UserDatabaseRealm class without any problem. java.lang.NoClassDefFoundError:

Re: Exception loading custom Realm

2005-10-10 Thread Surya Mishra
? They have to go in either common/lib, or server/lib. Larry On 10/10/05, Surya Mishra [EMAIL PROTECTED] wrote: Hi, I created my own realm by extending UserDatabaseRealm. But when I start the tomcat server, I get the following exception. If I use UserDatabaseRealm, everything works