Announcement Announcement Module
Collapse
No announcement yet.
spring-security-saml2-sample [moved] Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • spring-security-saml2-sample [moved]

    I'm trying to integrate shibboleth IdP and spring-security-saml2-sample.

    Shibboleth IdP is successfully running on localhost:8080.
    spring-security-saml2-sample is running on localhost:8081.

    Shibboleth is configured with a FileBackedHTTPMetadataProvider pointing to http://localhost:8081/spring-securit.../saml/metadata. It successfully reads and stores the metadata.

    Added a FilesystemMetadataProvider to spring-security-saml2-sample metadata bean, pointing to shibboleth metadata file.

    But when I go to http://localhost:8081/spring-securit...ple/saml/login I get a exception:

    Code:
    Servlet.service() for servlet jsp threw exception
    javax.servlet.ServletException: File "/saml/WEB-INF/security/idpSelection.jsp" not found
    	at org.apache.jasper.servlet.JspServlet.handleMissingResource(JspServlet.java:335)
    	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
    	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
    	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
    	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
    	at org.springframework.security.saml.SAMLEntryPoint.commence(SAMLEntryPoint.java:134)
    	at org.springframework.security.saml.SAMLEntryPoint.doFilterHttp(SAMLEntryPoint.java:104)
    	at org.springframework.security.saml.SAMLEntryPoint.doFilter(SAMLEntryPoint.java:91)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
    	at org.springframework.security.saml.SAMLLogoutFilter.doFilterHttp(SAMLLogoutFilter.java:147)
    	at org.springframework.security.saml.SAMLLogoutFilter.doFilter(SAMLLogoutFilter.java:102)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
    	at org.springframework.security.saml.SAMLLogoutProcessingFilter.doFilterHttp(SAMLLogoutProcessingFilter.java:170)
    	at org.springframework.security.saml.SAMLLogoutProcessingFilter.doFilter(SAMLLogoutProcessingFilter.java:94)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
    	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
    	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:167)
    	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
    	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
    	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    	at java.lang.Thread.run(Thread.java:680)
    31/03/2011 09:36:35 org.apache.catalina.core.StandardWrapperValve invoke
    Servlet.service() for servlet default threw exception
    javax.servlet.ServletException: File "/saml/WEB-INF/security/idpSelection.jsp" not found
    	at org.apache.jasper.servlet.JspServlet.handleMissingResource(JspServlet.java:335)
    	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
    	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
    	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
    	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
    	at org.springframework.security.saml.SAMLEntryPoint.commence(SAMLEntryPoint.java:134)
    	at org.springframework.security.saml.SAMLEntryPoint.doFilterHttp(SAMLEntryPoint.java:104)
    	at org.springframework.security.saml.SAMLEntryPoint.doFilter(SAMLEntryPoint.java:91)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
    	at org.springframework.security.saml.SAMLLogoutFilter.doFilterHttp(SAMLLogoutFilter.java:147)
    	at org.springframework.security.saml.SAMLLogoutFilter.doFilter(SAMLLogoutFilter.java:102)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
    	at org.springframework.security.saml.SAMLLogoutProcessingFilter.doFilterHttp(SAMLLogoutProcessingFilter.java:170)
    	at org.springframework.security.saml.SAMLLogoutProcessingFilter.doFilter(SAMLLogoutProcessingFilter.java:94)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
    	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
    	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:167)
    	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
    	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
    	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    	at java.lang.Thread.run(Thread.java:680)
    I tried to change the idpSelectionPath to including a leading "/" but then the login page does not render as HTML, the jsp source is rendered.

    Any help?
    Thanks,
    Danilo

  • #2
    Your issue is probably related to https://jira.springsource.org/browse/SES-49 and https://jira.springsource.org/browse/SEC-1606. One is fixed in the trunk of SAML extension the other was fixed in Spring Security 3.0.5. Please update to the latest version.

    Vladimír

    Comment

    Working...
    X