Spring/SAML configuration - Error Creating Bean
<p>I have a GWT/Spring app that we are hoping to use with a Single Signon IDP.  The app builds fine but fails on startup when trying to configure Spring Security and SAML.  </p>

<p>Here are the dependencies in my POM</p>

<p></p>

<pre><code>&lt;!-- as the server is a kntplatform project it will also include integrity, baseuser and kntcore libraries --&gt;
&lt;dependency&gt;
    &lt;groupId&gt;com.kn.mik&lt;/groupId&gt;
    &lt;artifactId&gt;GandE&lt;/artifactId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;!-- scope&gt;provided&lt;/scope --&gt;
    &lt;!-- --&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
    &lt;groupId&gt;com.kn.mik&lt;/groupId&gt;
    &lt;artifactId&gt;GandE&lt;/artifactId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;classifier&gt;sources&lt;/classifier&gt;
    &lt;scope&gt;provided&lt;/scope&gt;
&lt;/dependency&gt;

&lt;dependency&gt;
    &lt;groupId&gt;javax.xml&lt;/groupId&gt;
    &lt;artifactId&gt;jaxrpc-api&lt;/artifactId&gt;
    &lt;version&gt;1.1&lt;/version&gt;
&lt;/dependency&gt;

&lt;!-- GWT itself --&gt;

&lt;dependency&gt;
    &lt;groupId&gt;com.google.gwt&lt;/groupId&gt;
    &lt;artifactId&gt;gwt-servlet&lt;/artifactId&gt;
    &lt;version&gt;${gwtVersion}&lt;/version&gt;
    &lt;scope&gt;provided&lt;/scope&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
    &lt;groupId&gt;com.google.gwt&lt;/groupId&gt;
    &lt;artifactId&gt;gwt-user&lt;/artifactId&gt;
    &lt;version&gt;${gwtVersion}&lt;/version&gt;
    &lt;scope&gt;provided&lt;/scope&gt;
&lt;/dependency&gt;
&lt;!-- needed for superdev mode --&gt;
&lt;dependency&gt;
    &lt;groupId&gt;com.google.gwt&lt;/groupId&gt;
    &lt;artifactId&gt;gwt-codeserver&lt;/artifactId&gt;
    &lt;version&gt;${gwtVersion}&lt;/version&gt;
    &lt;scope&gt;provided&lt;/scope&gt;
&lt;/dependency&gt;


&lt;!-- Jquery for mobile --&gt;
&lt;dependency&gt;
    &lt;groupId&gt;com.sksamuel.jqm4gwt&lt;/groupId&gt;
    &lt;!-- &lt;artifactId&gt;jqm4gwt-standalone&lt;/artifactId&gt; --&gt;
    &lt;!-- artifactId&gt;jqm4gwt-remote&lt;/artifactId --&gt;
    &lt;artifactId&gt;jqm4gwt-library&lt;/artifactId&gt;
    &lt;version&gt;${jqm4gwt.version}&lt;/version&gt;
    &lt;scope&gt;provided&lt;/scope&gt;
&lt;/dependency&gt;

&lt;dependency&gt;
    &lt;groupId&gt;com.sksamuel.jqm4gwt&lt;/groupId&gt;
    &lt;artifactId&gt;jqm4gwt-datebox&lt;/artifactId&gt;
    &lt;version&gt;${jqm4gwt.version}&lt;/version&gt;
    &lt;scope&gt;provided&lt;/scope&gt;
&lt;/dependency&gt;

&lt;dependency&gt;
    &lt;groupId&gt;com.sksamuel.jqm4gwt&lt;/groupId&gt;
    &lt;artifactId&gt;jqm4gwt-datatables&lt;/artifactId&gt;
    &lt;version&gt;${jqm4gwt.version}&lt;/version&gt;
    &lt;scope&gt;compile&lt;/scope&gt;
&lt;/dependency&gt;

&lt;!-- phonegap --&gt;
&lt;dependency&gt;
    &lt;groupId&gt;com.googlecode.gwtphonegap&lt;/groupId&gt;
    &lt;artifactId&gt;gwtphonegap&lt;/artifactId&gt;
    &lt;version&gt;${gwtphonegap.version}&lt;/version&gt;
    &lt;scope&gt;provided&lt;/scope&gt;
&lt;/dependency&gt;

&lt;!-- testing --&gt;
&lt;dependency&gt;
    &lt;groupId&gt;junit&lt;/groupId&gt;
    &lt;artifactId&gt;junit&lt;/artifactId&gt;
    &lt;version&gt;4.11&lt;/version&gt;
    &lt;scope&gt;test&lt;/scope&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
    &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
    &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
    &lt;version&gt;1.7.5&lt;/version&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
    &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
    &lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt;
    &lt;version&gt;1.7.5&lt;/version&gt;
&lt;/dependency&gt;

&lt;dependency&gt;
    &lt;groupId&gt;org.springframework.security.extensions&lt;/groupId&gt;
    &lt;artifactId&gt;spring-security-saml2-core&lt;/artifactId&gt;
    &lt;version&gt;1.0.0.RELEASE&lt;/version&gt;
    &lt;scope&gt;compile&lt;/scope&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
    &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
    &lt;artifactId&gt;spring-security-config&lt;/artifactId&gt;
    &lt;version&gt;3.1.2.RELEASE&lt;/version&gt;
    &lt;scope&gt;compile&lt;/scope&gt;
&lt;/dependency&gt;
</code></pre>

<p></p>

<p>This is my applicationContext.xml.  This is mainly taken from the sample in the spring-security-sample project <a href="https://github.com/spring-projects/spring-security-saml/blob/master/sample/src/main/webapp/WEB-INF/securityContext.xml" rel="nofollow">here</a>.</p>

<pre><code>   &lt;beans xmlns="http://www.springframework.org/schema/beans" xmlns:security="http://www.springframework.org/schema/security" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
              http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.1.xsd
              http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd"&gt;

    &lt;!-- Enable auto-wiring --&gt;
    &lt;context:annotation-config /&gt;

    &lt;!-- Get replaceable properties from application.properties --&gt;
    &lt;context:property-placeholder location="/WEB-INF/application.properties" /&gt;

    &lt;!-- Scan for auto-wiring classes in spring saml packages --&gt;
    &lt;context:component-scan base-package="org.springframework.security.saml" /&gt;

    &lt;!-- Secured pages with SAML as entry point --&gt;
    &lt;security:http authentication-manager-ref="authenticationManager" entry-point-ref="samlEntryPoint"&gt;
        &lt;security:intercept-url pattern="/gandemobile/**" access="ROLE_USER" /&gt;
        &lt;security:intercept-url pattern="/gwt/**" access="ROLE_USER" /&gt;
        &lt;security:intercept-url pattern="/**/*.html" access="ROLE_USER" /&gt;
        &lt;security:intercept-url pattern="/**" access="IS_AUTHENTICATED_ANONYMOUSLY" /&gt;
        &lt;security:custom-filter after="BASIC_AUTH_FILTER" ref="samlFilter" /&gt;
    &lt;/security:http&gt;

    &lt;!-- Filters for processing of SAML messages --&gt;
    &lt;bean id="samlFilter" class="org.springframework.security.web.FilterChainProxy"&gt;
        &lt;security:filter-chain-map request-matcher="ant"&gt;
            &lt;security:filter-chain pattern="/saml/login/**" filters="samlEntryPoint" /&gt;
            &lt;security:filter-chain pattern="/saml/logout/**" filters="samlLogoutFilter" /&gt;
            &lt;security:filter-chain pattern="/saml/SSO/**" filters="samlWebSSOProcessingFilter" /&gt;
            &lt;security:filter-chain pattern="/saml/SSOHoK/**" filters="samlWebSSOHoKProcessingFilter" /&gt;
            &lt;security:filter-chain pattern="/saml/SingleLogout/**" filters="samlLogoutProcessingFilter" /&gt;
        &lt;/security:filter-chain-map&gt;
    &lt;/bean&gt;

    &lt;!-- IDP Metadata configuration - paths to metadata of IDPs in circle of trust is here --&gt;
    &lt;bean id="metadata" class="org.springframework.security.saml.metadata.CachingMetadataManager"&gt;
        &lt;constructor-arg&gt;
            &lt;list&gt;
                &lt;!-- Example of HTTP metadata without Extended Metadata --&gt;
                &lt;bean class="org.opensaml.saml2.metadata.provider.HTTPMetadataProvider"&gt;
                    &lt;!-- URL containing the metadata --&gt;
                    &lt;constructor-arg&gt;
                        &lt;value type="java.lang.String"&gt;https://sso-int.int.kn/gate/idp/metadata&lt;/value&gt;
                    &lt;/constructor-arg&gt;
                    &lt;!-- Timeout for metadata loading in ms --&gt;
                    &lt;constructor-arg&gt;
                        &lt;value type="int"&gt;15000&lt;/value&gt;
                    &lt;/constructor-arg&gt;
                    &lt;property name="parserPool" ref="parserPool" /&gt;
                &lt;/bean&gt;
            &lt;/list&gt;
        &lt;/constructor-arg&gt;
    &lt;/bean&gt;

    &lt;!-- Handler deciding where to redirect user after successful login --&gt;
    &lt;bean id="successRedirectHandler" class="org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandler"&gt;
        &lt;property name="defaultTargetUrl" value="${saml.successful.login.url}" /&gt;
    &lt;/bean&gt;

    &lt;!-- Use the following for interpreting RelayState coming from unsolicited response as redirect URL: --&gt;
    &lt;!-- &lt;bean id="successRedirectHandler" class="org.springframework.security.saml.SAMLRelayStateSuccessHandler"&gt; --&gt;
    &lt;!-- &lt;property name="defaultTargetUrl" value="${saml.successful.login.url}" /&gt; --&gt;
    &lt;!-- &lt;/bean&gt; --&gt;

    &lt;!-- Handler for successful logout --&gt;
    &lt;bean id="successLogoutHandler" class="org.springframework.security.web.authentication.logout.SimpleUrlLogoutSuccessHandler"&gt;
        &lt;property name="defaultTargetUrl" value="${saml.successful.logout.url}" /&gt;
    &lt;/bean&gt;

    &lt;!-- Register authentication manager with SAML provider --&gt;
    &lt;security:authentication-manager alias="authenticationManager"&gt;
        &lt;!-- Register authentication manager for SAML provider --&gt;
        &lt;security:authentication-provider ref="samlAuthenticationProvider" /&gt;
    &lt;/security:authentication-manager&gt;

    &lt;!-- Logger for SAML messages and events --&gt;
    &lt;bean id="samlLogger" class="org.springframework.security.saml.log.SAMLDefaultLogger" /&gt;

    &lt;!-- Central storage of cryptographic keys --&gt;
    &lt;bean id="keyManager" class="org.springframework.security.saml.key.JKSKeyManager"&gt;
        &lt;constructor-arg value="${saml.keystore.file}" /&gt;
        &lt;constructor-arg type="java.lang.String" value="${saml.keystore.password}" /&gt;
        &lt;constructor-arg&gt;
            &lt;map&gt;
                &lt;entry key="${saml.keystore.alias}" value="${saml.keystore.password}" /&gt;
            &lt;/map&gt;
        &lt;/constructor-arg&gt;
        &lt;constructor-arg type="java.lang.String" value="${saml.keystore.alias}" /&gt;
    &lt;/bean&gt;

    &lt;!-- Entry point to initialize authentication, default values taken from properties file --&gt;
    &lt;bean id="samlEntryPoint" class="org.springframework.security.saml.SAMLEntryPoint"&gt;
        &lt;property name="defaultProfileOptions"&gt;
            &lt;bean class="org.springframework.security.saml.websso.WebSSOProfileOptions"&gt;
                &lt;property name="includeScoping" value="false" /&gt;
            &lt;/bean&gt;
        &lt;/property&gt;
    &lt;/bean&gt;

    &lt;!-- Bean that extracts user details from successful login --&gt;
    &lt;bean id="samlUserDetailsService" class="com.kn.mik.mobile.gandemobile.client.security.SAMLUserDetailsServiceImpl" /&gt;

    &lt;!-- SAML Authentication Provider responsible for validating of received SAML messages --&gt;
    &lt;bean id="samlAuthenticationProvider" class="org.springframework.security.saml.SAMLAuthenticationProvider"&gt;
        &lt;property name="userDetails" ref="samlUserDetailsService" /&gt;
    &lt;/bean&gt;

    &lt;!-- Provider of default SAML Context --&gt;
    &lt;bean id="contextProvider" class="org.springframework.security.saml.context.SAMLContextProviderImpl" /&gt;

    &lt;!-- Processing filter for WebSSO profile messages --&gt;
    &lt;bean id="samlWebSSOProcessingFilter" class="org.springframework.security.saml.SAMLProcessingFilter"&gt;
        &lt;property name="authenticationManager" ref="authenticationManager" /&gt;
        &lt;property name="authenticationSuccessHandler" ref="successRedirectHandler" /&gt;
        &lt;property name="authenticationFailureHandler" ref="failureRedirectHandler" /&gt;
    &lt;/bean&gt;

    &lt;!-- Processing filter for WebSSO Holder-of-Key profile --&gt;
    &lt;bean id="samlWebSSOHoKProcessingFilter" class="org.springframework.security.saml.SAMLWebSSOHoKProcessingFilter"&gt;
        &lt;property name="authenticationManager" ref="authenticationManager" /&gt;
        &lt;property name="authenticationSuccessHandler" ref="successRedirectHandler" /&gt;
        &lt;property name="authenticationFailureHandler" ref="failureRedirectHandler" /&gt;
    &lt;/bean&gt;

    &lt;!-- Logout handler terminating local session --&gt;
    &lt;bean id="logoutHandler" class="org.springframework.security.web.authentication.logout.SecurityContextLogoutHandler"&gt;
        &lt;property name="invalidateHttpSession" value="false" /&gt;
    &lt;/bean&gt;

    &lt;!-- Override default logout processing filter with the one processing SAML messages --&gt;
    &lt;bean id="samlLogoutFilter" class="org.springframework.security.saml.SAMLLogoutFilter"&gt;
        &lt;constructor-arg ref="successLogoutHandler" /&gt;
        &lt;constructor-arg ref="logoutHandler" /&gt;
        &lt;constructor-arg ref="logoutHandler" /&gt;
    &lt;/bean&gt;

    &lt;!-- Filter processing incoming logout messages --&gt;
    &lt;!-- First argument determines URL user will be redirected to after successful global logout --&gt;
    &lt;bean id="samlLogoutProcessingFilter" class="org.springframework.security.saml.SAMLLogoutProcessingFilter"&gt;
        &lt;constructor-arg ref="successLogoutHandler" /&gt;
        &lt;constructor-arg ref="logoutHandler" /&gt;
    &lt;/bean&gt;

    &lt;!-- Class loading incoming SAML messages from httpRequest stream --&gt;
    &lt;bean id="processor" class="org.springframework.security.saml.processor.SAMLProcessorImpl"&gt;
        &lt;constructor-arg&gt;
            &lt;list&gt;
                &lt;ref bean="redirectBinding" /&gt;
                &lt;ref bean="postBinding" /&gt;
                &lt;ref bean="artifactBinding" /&gt;
                &lt;ref bean="soapBinding" /&gt;
                &lt;ref bean="paosBinding" /&gt;
            &lt;/list&gt;
        &lt;/constructor-arg&gt;
    &lt;/bean&gt;

    &lt;!-- SAML 2.0 WebSSO Assertion Consumer --&gt;
    &lt;bean id="webSSOprofileConsumer" class="org.springframework.security.saml.websso.WebSSOProfileConsumerImpl" /&gt;

    &lt;!-- SAML 2.0 Holder-of-Key WebSSO Assertion Consumer --&gt;
    &lt;bean id="hokWebSSOprofileConsumer" class="org.springframework.security.saml.websso.WebSSOProfileConsumerHoKImpl" /&gt;

    &lt;!-- SAML 2.0 Web SSO profile --&gt;
    &lt;bean id="webSSOprofile" class="org.springframework.security.saml.websso.WebSSOProfileImpl" /&gt;

    &lt;!-- SAML 2.0 Holder-of-Key Web SSO profile --&gt;
    &lt;bean id="hokWebSSOProfile" class="org.springframework.security.saml.websso.WebSSOProfileConsumerHoKImpl" /&gt;

    &lt;!-- SAML 2.0 ECP profile --&gt;
    &lt;bean id="ecpprofile" class="org.springframework.security.saml.websso.WebSSOProfileECPImpl" /&gt;

    &lt;!-- SAML 2.0 Logout Profile --&gt;
    &lt;bean id="logoutprofile" class="org.springframework.security.saml.websso.SingleLogoutProfileImpl" /&gt;

    &lt;!-- Bindings, encoders and decoders used for creating and parsing messages --&gt;
    &lt;bean id="postBinding" class="org.springframework.security.saml.processor.HTTPPostBinding"&gt;
        &lt;constructor-arg ref="parserPool" /&gt;
        &lt;constructor-arg ref="velocityEngine" /&gt;
    &lt;/bean&gt;

    &lt;bean id="redirectBinding" class="org.springframework.security.saml.processor.HTTPRedirectDeflateBinding"&gt;
        &lt;constructor-arg ref="parserPool" /&gt;
    &lt;/bean&gt;

    &lt;bean id="artifactBinding" class="org.springframework.security.saml.processor.HTTPArtifactBinding"&gt;
        &lt;constructor-arg ref="parserPool" /&gt;
        &lt;constructor-arg ref="velocityEngine" /&gt;
        &lt;constructor-arg&gt;
            &lt;bean class="org.springframework.security.saml.websso.ArtifactResolutionProfileImpl"&gt;
                &lt;constructor-arg&gt;
                    &lt;bean class="org.apache.commons.httpclient.HttpClient" /&gt;
                &lt;/constructor-arg&gt;
                &lt;property name="processor"&gt;
                    &lt;bean id="soapProcessor" class="org.springframework.security.saml.processor.SAMLProcessorImpl"&gt;
                        &lt;constructor-arg ref="soapBinding" /&gt;
                    &lt;/bean&gt;
                &lt;/property&gt;
            &lt;/bean&gt;
        &lt;/constructor-arg&gt;
    &lt;/bean&gt;

    &lt;bean id="soapBinding" class="org.springframework.security.saml.processor.HTTPSOAP11Binding"&gt;
        &lt;constructor-arg ref="parserPool" /&gt;
    &lt;/bean&gt;

    &lt;bean id="paosBinding" class="org.springframework.security.saml.processor.HTTPPAOS11Binding"&gt;
        &lt;constructor-arg ref="parserPool" /&gt;
    &lt;/bean&gt;

    &lt;!-- Initialization of OpenSAML library --&gt;
    &lt;bean class="org.springframework.security.saml.SAMLBootstrap" /&gt;

    &lt;!-- Initialization of the velocity engine --&gt;
    &lt;bean id="velocityEngine" class="org.springframework.security.saml.util.VelocityFactory" factory-method="getEngine" /&gt;

    &lt;!-- XML parser pool needed for OpenSAML parsing --&gt;
    &lt;bean id="parserPool" class="org.opensaml.xml.parse.StaticBasicParserPool" init-method="initialize"&gt;
        &lt;property name="builderFeatures"&gt;
            &lt;map&gt;
                &lt;entry key="http://apache.org/xml/features/dom/defer-node-expansion" value="false" /&gt;
            &lt;/map&gt;
        &lt;/property&gt;
    &lt;/bean&gt;
    &lt;bean id="parserPoolHolder" class="org.springframework.security.saml.parser.ParserPoolHolder" /&gt;

&lt;/beans&gt;
</code></pre>

<p>And finally, the errors I get on startup.</p>

<pre><code>        Runing CodeServer with parameters: [-noprecompile, -port, 9876, -sourceLevel, 1.7, -bindAddress, 0.0.0.0, -launcherDir, C:\Development\knt\applications\mik\mobile\gande\target\GandEMobile-0.0.1-SNAPSHOT, -logLevel, INFO, com.kn.mik.mobile.gandemobile.Application]
    Super Dev Mode starting up
       workDir: C:\Development\knt\applications\mik\mobile\gande\target\gwttmp\gwt-codeserver-3406402710207305985.tmp
       Loading Java files in com.kn.mik.mobile.gandemobile.Application.
       Ignored 8 units with compilation errors in first pass.
    Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
    log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
    log4j:ERROR The class "org.apache.log4j.Appender" was loaded by 
    log4j:ERROR [sun.misc.Launcher$AppClassLoader@14dad5dc] whereas object of type 
    log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [WebAppClassLoader=1926174111@72cf159f].
    log4j:ERROR Could not instantiate appender named "stdout".
    log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
    log4j:WARN Please initialize the log4j system properly.
    log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
       Module setup completed in 8891 ms

    The code server is ready at http://MIK1550006L:9876/
    Code server started in 9663 ms
    Starting Jetty on port 8989
       [WARN] Failed startup of context c.g.g.d.s.j.WebAppContextWithReload{/,file:/C:/Development/knt/applications/mik/mobile/gande/target/GandEMobile-0.0.1-SNAPSHOT/},C:\Development\knt\applications\mik\mobile\gande\target\GandEMobile-0.0.1-SNAPSHOT
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.filterChains': Cannot resolve reference to bean 'org.springframework.security.web.DefaultSecurityFilterChain#0' while setting bean property 'sourceList' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.web.DefaultSecurityFilterChain#0': Cannot create inner bean '(inner bean)' of type [org.springframework.security.web.context.SecurityContextPersistenceFilter] while setting constructor argument with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#1': Could not resolve matching constructor (hint: specify index/type/name arguments for simple parameters to avoid type ambiguities)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:154)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1387)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1128)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:608)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
        at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:782)
        at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424)
        at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:774)
        at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249)
        at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
        at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
        at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
        at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:541)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
        at org.eclipse.jetty.server.handler.RequestLogHandler.doStart(RequestLogHandler.java:162)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
        at org.eclipse.jetty.server.Server.doStart(Server.java:282)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
        at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:740)
        at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:632)
        at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1054)
        at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:836)
        at com.google.gwt.dev.DevMode.main(DevMode.java:413)
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.web.DefaultSecurityFilterChain#0': Cannot create inner bean '(inner bean)' of type [org.springframework.security.web.context.SecurityContextPersistenceFilter] while setting constructor argument with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#1': Could not resolve matching constructor (hint: specify index/type/name arguments for simple parameters to avoid type ambiguities)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:282)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:154)
        at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:615)
        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1045)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:949)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:323)
        ... 37 more
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#1': Could not resolve matching constructor (hint: specify index/type/name arguments for simple parameters to avoid type ambiguities)
        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(Constructo

rResolver.java:250)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1045)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:949)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:271)
    ... 51 more
waited 0 ms for code server to finish
</code></pre>