Advertisement
Guest User

Untitled

a guest
Mar 5th, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.71 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <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">
  3. <display-name>paprest</display-name>
  4. <listener>
  5. <listener-class>org.apache.shiro.web.env.EnvironmentLoaderListener</listener-class>
  6. </listener>
  7.  
  8. <filter>
  9. <filter-name>ShiroFilter</filter-name>
  10. <filter-class>org.apache.shiro.web.servlet.ShiroFilter</filter-class>
  11. </filter>
  12.  
  13. <filter-mapping>
  14. <filter-name>ShiroFilter</filter-name>
  15. <url-pattern>/*</url-pattern>
  16. <dispatcher>REQUEST</dispatcher>
  17. <dispatcher>FORWARD</dispatcher>
  18. <dispatcher>INCLUDE</dispatcher>
  19. <dispatcher>ERROR</dispatcher>
  20. </filter-mapping>
  21.  
  22. </web-app>
  23.  
  24. [main]
  25. authc.loginUrl = /login.jsp
  26. authc.successUrl = /home.jsp
  27.  
  28. # password matcher
  29. passwordMatcher = org.apache.shiro.authc.credential.PasswordMatcher
  30. passwordService = org.apache.shiro.authc.credential.DefaultPasswordService
  31. passwordMatcher.passwordService = $passwordService
  32.  
  33. ds = org.apache.shiro.jndi.JndiObjectFactory
  34. ds.resourceName = jdbc/myDS
  35. ds.requiredType = javax.sql.DataSource
  36.  
  37. jdbcRealm = org.apache.shiro.realm.jdbc.JdbcRealm
  38. jdbcRealm.permissionsLookupEnabled = true
  39. jdbcRealm.authenticationQuery = SELECT password FROM USERS WHERE username = ?
  40. jdbcRealm.userRolesQuery = SELECT role_name FROM USERS_ROLES WHERE username = ?
  41. jdbcRealm.credentialsMatcher = $passwordMatcher
  42. jdbcRealm.dataSource=$ds
  43. securityManager.realms = $jdbcRealm
  44.  
  45. [urls]
  46. /login.jsp = authc
  47. /home.jsp = anon, authc
  48. /logout = logout
  49. /account/** = authc
  50.  
  51. <?xml version="1.0"?>
  52. <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
  53. <Configure class="org.eclipse.jetty.webapp.WebAppContext">
  54. <New id="myDS" class="org.eclipse.jetty.plus.jndi.Resource">
  55. <Arg>jdbc/myDS</Arg>
  56. <Arg>
  57. <New class="com.jolbox.bonecp.BoneCPDataSource">
  58. <Set name="driverClass">com.mysql.jdbc.Driver</Set>
  59. <Set name="jdbcUrl">jdbc:mysql://ip:3306/authzDB</Set>
  60. <Set name="username">root</Set>
  61. <Set name="password">pass</Set>
  62. </New>
  63. </Arg>
  64. </New>
  65. </Configure>
  66.  
  67. jun 02, 2015 9:54:55 AM org.apache.catalina.core.StandardContext startInternal
  68. GRAVE: Error listenerStart
  69.  
  70. DETALLADO: Successfully processed context [/ShiroFroga] configuration file [file:/var/lib/tomcat7/conf/context.xml]
  71. jun 02, 2015 5:34:20 PM org.apache.catalina.startup.ContextConfig configureStart
  72. DETALLADO: "ContextConfig": Procesando "START"
  73. jun 02, 2015 5:34:20 PM org.apache.catalina.startup.ContextConfig configureStart
  74. DETALLADO: El contexto [/ShiroFroga] analizará los ficheros web.xml y web-fragment.xml con validación:false y namespaceAware:false
  75. jun 02, 2015 5:34:20 PM org.apache.catalina.startup.ContextConfig parseWebXml
  76. DETALLADO: Analizando fichero de aplicación web.xml en jndi:/localhost/ShiroFroga/WEB-INF/web.xml
  77. jun 02, 2015 5:34:20 PM org.apache.catalina.startup.ContextConfig authenticatorConfig
  78. DETALLADO: Configuración de un autentificador (authenticator) para el método NONE
  79. jun 02, 2015 5:34:20 PM org.apache.catalina.startup.ContextConfig configureStart
  80. DETALLADO: Pipeline Configuration:
  81. jun 02, 2015 5:34:20 PM org.apache.catalina.startup.ContextConfig configureStart
  82. DETALLADO: org.apache.catalina.authenticator.NonLoginAuthenticator/1.0
  83. jun 02, 2015 5:34:20 PM org.apache.catalina.startup.ContextConfig configureStart
  84. DETALLADO: org.apache.catalina.core.StandardContextValve/1.0
  85. jun 02, 2015 5:34:20 PM org.apache.catalina.startup.ContextConfig configureStart
  86. DETALLADO: ======================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement