Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
- <display-name>paprest</display-name>
- <listener>
- <listener-class>org.apache.shiro.web.env.EnvironmentLoaderListener</listener-class>
- </listener>
- <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>
- </web-app>
- [main]
- authc.loginUrl = /login.jsp
- authc.successUrl = /home.jsp
- # password matcher
- passwordMatcher = org.apache.shiro.authc.credential.PasswordMatcher
- passwordService = org.apache.shiro.authc.credential.DefaultPasswordService
- passwordMatcher.passwordService = $passwordService
- ds = org.apache.shiro.jndi.JndiObjectFactory
- ds.resourceName = jdbc/myDS
- ds.requiredType = javax.sql.DataSource
- jdbcRealm = org.apache.shiro.realm.jdbc.JdbcRealm
- jdbcRealm.permissionsLookupEnabled = true
- jdbcRealm.authenticationQuery = SELECT password FROM USERS WHERE username = ?
- jdbcRealm.userRolesQuery = SELECT role_name FROM USERS_ROLES WHERE username = ?
- jdbcRealm.credentialsMatcher = $passwordMatcher
- jdbcRealm.dataSource=$ds
- securityManager.realms = $jdbcRealm
- [urls]
- /login.jsp = authc
- /home.jsp = anon, authc
- /logout = logout
- /account/** = authc
- <?xml version="1.0"?>
- <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
- <Configure class="org.eclipse.jetty.webapp.WebAppContext">
- <New id="myDS" class="org.eclipse.jetty.plus.jndi.Resource">
- <Arg>jdbc/myDS</Arg>
- <Arg>
- <New class="com.jolbox.bonecp.BoneCPDataSource">
- <Set name="driverClass">com.mysql.jdbc.Driver</Set>
- <Set name="jdbcUrl">jdbc:mysql://ip:3306/authzDB</Set>
- <Set name="username">root</Set>
- <Set name="password">pass</Set>
- </New>
- </Arg>
- </New>
- </Configure>
- jun 02, 2015 9:54:55 AM org.apache.catalina.core.StandardContext startInternal
- GRAVE: Error listenerStart
- DETALLADO: Successfully processed context [/ShiroFroga] configuration file [file:/var/lib/tomcat7/conf/context.xml]
- jun 02, 2015 5:34:20 PM org.apache.catalina.startup.ContextConfig configureStart
- DETALLADO: "ContextConfig": Procesando "START"
- jun 02, 2015 5:34:20 PM org.apache.catalina.startup.ContextConfig configureStart
- DETALLADO: El contexto [/ShiroFroga] analizará los ficheros web.xml y web-fragment.xml con validación:false y namespaceAware:false
- jun 02, 2015 5:34:20 PM org.apache.catalina.startup.ContextConfig parseWebXml
- DETALLADO: Analizando fichero de aplicación web.xml en jndi:/localhost/ShiroFroga/WEB-INF/web.xml
- jun 02, 2015 5:34:20 PM org.apache.catalina.startup.ContextConfig authenticatorConfig
- DETALLADO: Configuración de un autentificador (authenticator) para el método NONE
- jun 02, 2015 5:34:20 PM org.apache.catalina.startup.ContextConfig configureStart
- DETALLADO: Pipeline Configuration:
- jun 02, 2015 5:34:20 PM org.apache.catalina.startup.ContextConfig configureStart
- DETALLADO: org.apache.catalina.authenticator.NonLoginAuthenticator/1.0
- jun 02, 2015 5:34:20 PM org.apache.catalina.startup.ContextConfig configureStart
- DETALLADO: org.apache.catalina.core.StandardContextValve/1.0
- jun 02, 2015 5:34:20 PM org.apache.catalina.startup.ContextConfig configureStart
- DETALLADO: ======================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement