Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.86 KB | None | 0 0
  1. this is the error which i got in this file
  2. Multiple annotations found at this line:
  3. - Error occured processing XML 'org/springframework/web/filter/GenericFilterBean'. See Error Log for more
  4. details
  5. - The classes from the spring-security-web jar (or one of its dependencies) are not available. You need
  6. these to use <http>: org.springframework.web.filter.GenericFilterBean
  7.  
  8. <?xml version="1.0" encoding="UTF-8"?>
  9. <beans xmlns="http://www.springframework.org/schema/beans"
  10. xmlns:security="http://www.springframework.org/schema/security"
  11. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  12. xsi:schemaLocation="http://www.springframework.org/schema/beans
  13. http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
  14. http://www.springframework.org/schema/security
  15. http://www.springframework.org/schema/security/spring-security-4.2.xsd">
  16.  
  17.  
  18. <security:authentication-manager>
  19. <security:ldap-authentication-provider
  20. user-search-filter="(uid={0})" user-search-base="ou=users"
  21. group-search-filter="(uniqueMember={0})" group-search-base="ou=groups"
  22. group-role-attribute="cn" role-prefix="ROLE_" />
  23. </security:authentication-manager>
  24. <security:ldap-server url="ldap://localhost:10389/o=mojo"
  25. manager-dn="uid=admin,ou=system" manager-password="secret" />
  26. <security:http use-expressions="true">
  27. <security:intercept-url pattern="/" access="hasAuthority('ROLE_ADMIN')" />
  28. <security:form-login />
  29. </security:http>
  30. </beans>
  31.  
  32. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  33. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  34. <modelVersion>4.0.0</modelVersion>
  35. <groupId>Pro</groupId>
  36. <artifactId>Pro</artifactId>
  37. <version>0.0.1-SNAPSHOT</version>
  38. <packaging>war</packaging>
  39. <build>
  40. <sourceDirectory>src</sourceDirectory>
  41. <plugins>
  42. <plugin>
  43. <artifactId>maven-war-plugin</artifactId>
  44. <version>2.6</version>
  45. <configuration>
  46. <warSourceDirectory>WebContent</warSourceDirectory>
  47. <failOnMissingWebXml>false</failOnMissingWebXml>
  48. </configuration>
  49. </plugin>
  50. <plugin>
  51. <artifactId>maven-compiler-plugin</artifactId>
  52. <version>3.5.1</version>
  53. <configuration>
  54. <source>1.8</source>
  55. <target>1.8</target>
  56. </configuration>
  57. </plugin>
  58. </plugins>
  59. </build>
  60. <dependencies>
  61.  
  62. <!-- https://mvnrepository.com/artifact/org.springframework.security/spring-security-web -->
  63. <dependency>
  64. <groupId>org.springframework.security</groupId>
  65. <artifactId>spring-security-web</artifactId>
  66. <version>4.2.2.RELEASE</version>
  67. </dependency>
  68.  
  69. <dependency>
  70. <groupId>org.slf4j</groupId>
  71. <artifactId>jcl-over-slf4j</artifactId>
  72. <version>1.7.25</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>ch.qos.logback</groupId>
  76. <artifactId>logback-classic</artifactId>
  77. <version>1.2.2</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>log4j</groupId>
  81. <artifactId>log4j</artifactId>
  82. <version>1.2.17</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.springframework</groupId>
  86. <artifactId>spring-webmvc</artifactId>
  87. <version>4.3.7.RELEASE</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.springframework</groupId>
  91. <artifactId>spring-core</artifactId>
  92. <version>4.3.7.RELEASE</version>
  93. </dependency>
  94.  
  95. <dependency>
  96. <groupId>org.springframework.security</groupId>
  97. <artifactId>spring-security-core</artifactId>
  98. <version>4.2.2.RELEASE</version>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.springframework.security</groupId>
  102. <artifactId>spring-security-ldap</artifactId>
  103. <version>4.2.2.RELEASE</version>
  104. </dependency>
  105.  
  106.  
  107. <dependency>
  108. <groupId>org.springframework.security</groupId>
  109. <artifactId>spring-security-web</artifactId>
  110. <version>4.2.2.RELEASE</version>
  111. </dependency>
  112.  
  113. <dependency>
  114. <groupId>org.springframework.ldap</groupId>
  115. <artifactId>spring-ldap-core</artifactId>
  116. <version>2.3.1.RELEASE</version>
  117. </dependency>
  118.  
  119. <dependency>
  120. <groupId>org.springframework.security</groupId>
  121. <artifactId>spring-security-config</artifactId>
  122. <version>4.2.2.RELEASE</version>
  123. </dependency>
  124. </dependencies>
  125. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement