Success!!

When I was able to actually see the error that was being generated by the
connection to Oracle there was a NullPointerException being thrown.  I had
to make some adjustments to the DataSource and after much trial and error
it's not working.

Here is what my shiro.ini looks like now.
[main]
cm = org.apache.shiro.authc.credential.Sha256CredentialsMatcher
jdbcRealm=org.apache.shiro.realm.jdbc.JdbcRealm
jdbcRealm.permissionsLookupEnabled=false
jdbcRealm.authenticationQuery = select password from users where
upper(trim(userid)) = upper(trim(?))
jdbcRealm.userRolesQuery = select role from users where upper(trim(userid))
= upper(trim(?))


ds = oracle.jdbc.pool.OracleDataSource
ds.user = private_rates
ds.password = bA7eChaj
ds.serverName = zendev10.zencos.com
ds.portNumber = 1521
ds.databaseName = ORCL
ds.driverType = thin

jdbcRealm.dataSource = $ds

authc.loginUrl = /logon.jsp
authc.successUrl = index.jsp
authc.failureKeyAttribute = shiroLoginFailure
roles.unauthorizedUrl = /error.jsp

[users]

[roles]


[urls]
/images/** = anon
/logon.jsp = authc
/logout = logout
/** = authc


Thanks for the pointers



--
View this message in context: 
http://shiro-user.582556.n2.nabble.com/Login-failing-tp7578071p7578085.html
Sent from the Shiro User mailing list archive at Nabble.com.

Reply via email to