Here is shiro.ini: [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 userid = ? jdbcRealm.userRolesQuery = select role from users where userid = ? jdbcRealm.credentialsMatcher = $cm
ds = oracle.jdbc.pool.OracleDataSource ds.user = private_rates ds.password = bA7eChaj ds.serverName = zendev10.zencos.com ds.portNumber = 1521 ds.databaseName = private_rates authc.loginUrl = /logon.jsp authc.successUrl = index.jsp authc.failureKeyAttribute = shiroLoginFailure roles.unauthorizedUrl = /error.jsp [urls] /images/** = anon /login.jsp = authc /** = authc Here is my web.xml: <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <filter> <filter-name>ShiroFilter</filter-name> <filter-class>org.apache.shiro.web.servlet.ShiroFilter</filter-class> </filter> <filter-mapping> <filter-name>ShiroFilter</filter-name> <url-pattern>/*</url-pattern> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> <dispatcher>INCLUDE</dispatcher> <dispatcher>ERROR</dispatcher> </filter-mapping> <listener> <listener-class>org.apache.shiro.web.env.EnvironmentLoaderListener</listener-class> </listener> <session-config> <session-timeout> 30 </session-timeout> </session-config> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> </web-app> Nothing special about either of them, and I am not using a custom realm. -- View this message in context: http://shiro-user.582556.n2.nabble.com/Login-failing-tp7578071p7578073.html Sent from the Shiro User mailing list archive at Nabble.com.
