Hi All, In July 2004, Jonathan asked the question above and described my problem exactly:
"Is it possible to use a single login.jsp for multiple webapps? Basically I have a V-Domain setup using /www/mydomain.com/ as it's docroot. I want to deploy multiple web apps (forums app, image gallery, etc) and secure some of them using form based authentication. I understand most of the configuration, but I would really like to use a single login.jsp. These are all part of one big website. I have single signon enabled, but I down't want to have to write the same exact login.jsp for each webapp since the login.jsp will contain a bunch of stuff (menus and such). Does anyone know how to do this, or am i just going about organizing the website/webapps wrong?" I read the thread and have implemented a singleSignOn valve as described. However, it doesn't solve the single login.jsp problem and that part of Jonathan's question was never answered AFAICT. I've also hunted the archives for a number of hours without success. I have a V-Domain named "test" It has 2 contexts: ROOT Secure the "test" V-Domain has a single signon valve and a userDatabaseRealm defined. Both the ROOT and Secure contexts have crossContext="true" In both contexts, the web.xml files have the appropriate <security-constraint>, <security-role> and <login-config> sections. In both, I have the login page defined as follows: <form-login-page>/login.jsp</form-login-page> The "login.jsp" file is located in the ROOT context's tree as ROOT/login.jsp If I access my app via the root context: http://test/ I am directed to the login.jsp and I can login OK. After logging in, I can access the "Secure" context (ie via http://test/Secure ) so I'm happy that Single Sign On is working. However, If I go straight to the "Secure" context (ie before logging in) I get a 404 error "the requested resource (/login.jsp) is not available." Is there any way of doing this or do I have to have "login.jsp" duplicated in each context? TIA, Rob Hills NetPaver Pty Ltd West Perth Western Australia --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]