JBoss deployment fails due to Spring `No AuthenticationEntryPoint could be established` error

Solution Unverified - Updated -

Issue

  • Deployment fails with the following error:
ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/EFPPSWeb]] (ServerService Thread Pool -- 63) JBWEB000287: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: No AuthenticationEntryPoint could be established. Please make sure you have a login mechanism configured through the namespace (such as form-login) or specify a custom AuthenticationEntryPoint with the 'entry-point-ref' attribute 
Offending resource: ServletContext resource [/WEB-INF/applicationContext-security-simple.xml]
    at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68) [org.springframework.beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85) [org.springframework.beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:72) [org.springframework.beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    at org.springframework.security.config.http.AuthenticationConfigBuilder.selectEntryPoint(AuthenticationConfigBuilder.java:520) [spring-security-config-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    at org.springframework.security.config.http.AuthenticationConfigBuilder.createExceptionTranslationFilter(AuthenticationConfigBuilder.java:416) [spring-security-config-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    at org.springframework.security.config.http.HttpSecurityBeanDefinitionParser.parse(HttpSecurityBeanDefinitionParser.java:116) [spring-security-config-3.0.5.RELEASE.jar:3.0.5.RELEASE]
...

Environment

  • Red Hat JBoss Enterprise Application Platform
    • 6.1.1
  • Spring PreAuthenticatedAuthenticationProvider

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.