Hey kids
I found the reason why my web application kept coming upwith BASIC
authentication when I had told it to use FORM authentication. The JBoss server
I was using has mutiple applications on it. One of the applications needed the
context.xml to have the following values:
<Context>
| <Valve className="org.apache.catalina.authenticator.BasicAuthenticator"
disableProxyCaching="false" />
| </Context>
This was done so that we could upload files in IE (long story). Anyway I
placed this value in
${JBOSS_HOME}/server/default/deploy/jbossweb-tomcat55.sar/context.xml so that
all applications can upload files. However it appears that this was forcing
all applications to use BASIC authentication as well. Cheeky, eh? So, I moved
this directive to each applications' own content.xml file in WEB-INF. I
changed the context.xml file for the one using FORM authentication to this:
<Context>
| <Valve className="org.apache.catalina.authenticator.FormAuthenticator"
disableProxyCaching="false" />
| </Context>
And wa-la - everything suddenly works. I hope this helps someone instead of
them having to go through the 2 days of work that I did. I also like to thank
the folks that helped out with their replies. - Thanks!
--Andy
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3950208#3950208
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3950208
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user