|
|
|
spring Security
|
|||
|---|---|---|---|
|
#18+
Пытаюсь в проект добавить spring Security Начальная страница reg.html с вводом имени, далее buy.html, order.html web.xml Код: xml 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. security.xml Код: xml 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. в pom.xml Код: xml 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. При запуске вылетает java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered? org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:251) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.04.2015, 21:04 |
|
||
|
spring Security
|
|||
|---|---|---|---|
|
#18+
Blazkowicz http://stackoverflow.com/a/8924825 добавил <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> теперь org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/applicationContext.xml] ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.04.2015, 21:59 |
|
||
|
spring Security
|
|||
|---|---|---|---|
|
#18+
Ну, так XML нужен чтобы спринговый контекст создать. Для сервлета вон прописан, а для контекста указан? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.04.2015, 22:04 |
|
||
|
spring Security
|
|||
|---|---|---|---|
|
#18+
Blazkowicz, Что в нем прописать? В контексте? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.04.2015, 22:20 |
|
||
|
spring Security
|
|||
|---|---|---|---|
|
#18+
BlazkowiczНу, так XML нужен чтобы спринговый контекст создать. Для сервлета вон прописан, а для контекста указан? Делал по этому примеру http://habrahabr.ru/post/203318/ ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.04.2015, 22:43 |
|
||
|
spring Security
|
|||
|---|---|---|---|
|
#18+
переделал web.xml Код: xml 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. 56. 57. 58. application-securety.xml Код: xml 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. Выдает исключение SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.filterChainProxy': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: A universal match pattern ('/**') is defined before other patterns in the filter chain, causing them to be ignored. Please check the ordering in your <security:http> namespace or FilterChainProxy bean configuration Не могу понять как сделать это. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.04.2015, 23:38 |
|
||
|
|

start [/forum/topic.php?fid=59&msg=38945036&tid=2125501]: |
0ms |
get settings: |
8ms |
get forum list: |
15ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
175ms |
get topic data: |
7ms |
get forum data: |
2ms |
get page messages: |
30ms |
get tp. blocked users: |
1ms |
| others: | 249ms |
| total: | 493ms |

| 0 / 0 |
