[jboss-user] [Beginners Corner] - JBoss JAAS DatabaseSeverLoginModule problem

safwateleish do-not-reply at jboss.com
Thu Mar 8 04:51:47 EST 2007

I have the same problem. authentication fails and i am being redirected to the error page without any log indicating the error that happened. My configurations are as follows: 

I added the following entry to the login-config.xml 

<application-policy name = "jbossdatabaseBilling"> 

<login-module code = "org.jboss.security.auth.spi.DatabaseServerLoginModule" 
flag = "required"> 
<module-option name = "unauthenticatedIdentity">guest</module-option> 
<module-option name = "dsJndiName">java:/myDS</module-option> 
<module-option name = "principalsQuery">SELECT PASSWORD passwd FROM USERS WHERE USERNAME=?</module-option> 
<module-option name = "rolesQuery">SELECT ROLENAME userRoles, 'Roles' FROM DUMMYROLES WHERE USERNAME =?</module-option> 


By the way my database is oracle. and i jave defined myDS in oracle-ds.xml in the deploy directory of my server. 

I have the jboss-web.xml in the same directory of the web.xml of my web application. It has the following entry 


finally in the web.xml file i added the following sections 





I am still being redirected to the error page. Any hint ? Please i need help. 

I am posting this as a new post. I have corrected my typing mistake in the previous post

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026180#4026180

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026180

More information about the jboss-user mailing list