Still quite new to the world of spring security and saml and trying to learn by running the following project https://github.com/spring-projects/spring-security-saml but I get the following error when I try to start it:
BUILD SUCCESSFUL in 12s 19 actionable tasks: 3 executed, 16 up-to-date C:Projectsspring-security-saml> C:Projectsspring-security-saml> C:Projectsspring-security-saml> C:Projectsspring-security-saml>gradlew build BUILD SUCCESSFUL in 3s 20 actionable tasks: 20 up-to-date C:Projectsspring-security-saml>gradlew tomcatRun Exception starting filter springSecurityFilterChain java.lang.ClassCastException: org.springframework.web.filter.DelegatingFilterProxy cannot be cast to javax.servlet.Filter at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:252) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:372) at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:98) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4542) at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5220) at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5215) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Task :spring-security-saml2-sample:tomcatRun Error filterStart Context [/spring-security-saml2-sample] startup failed due to previous errors Started Tomcat Server The Server is running at http://localhost:8080/spring-security-saml2-sample
BUILD SUCCESSFUL in 12s 19 actionable tasks: 3 executed, 16 up-to-date C:Projectsspring-security-saml> C:Projectsspring-security-saml> C:Projectsspring-security-saml> C:Projectsspring-security-saml>gradlew build
BUILD SUCCESSFUL in 3s 20 actionable tasks: 20 up-to-date C:Projectsspring-security-saml>gradlew tomcatRun Exception starting filter springSecurityFilterChain java.lang.ClassCastException: org.springframework.web.filter.DelegatingFilterProxy cannot be cast to javax.servlet.Filter at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:252) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:372) at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:98) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4542) at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5220) at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5215) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)
Task :spring-security-saml2-sample:tomcatRun Error filterStart Context [/spring-security-saml2-sample] startup failed due to previous errors Started Tomcat Server The Server is running at http://localhost:8080/spring-security-saml2-sample
I basically have no clue what is causing this problem. I have not carried out any changes to the project apart from the changes in the securityContext.xml as described in https://docs.spring.io/spring-security-saml/docs/current/reference/htmlsingle/#chapter-quick-start
2.1m questions
2.1m answers
60 comments
56.9k users