Oops. Forgot to post login-config.xml
<application-policy name = "DBLogin">
<login-module code = "org.jboss.security.ClientLoginModule" flag = "re
<login-module code = "com.auth.DBLogin"
flag = "required" />
I found an interesting behavior.
On loading the page, i get the principal=null exception.
On hitting refresh, it works.
On hitting refresh again, it gives an exception.
It seems to be toggling.
Any help would be greatly appreciated.
I upgraded to 3.2.5 and this time i am consistently getting the principal=null exception.
If I access the appplication server outside of JBOSS/TOMCAT, it works like a charm.
Fixed. The credentials are associated with a thread
How did you fix it? Or better: what exactly did you fix how?