认证在wildfly上失败,但是在jboss中与7.1一样工作正常

时间:2019-06-04 09:11:45

标签: spring authentication jboss wildfly

我正在尝试将jboss AS 7.1升级到wildfly 8.2,但是我在身份验证方面遇到问题,在jboss AS 7.1中同样可以正常工作。

我的web.xml

<security-constraint>
<web-resource-collection>
    <web-resource-name>HtmlAuth</web-resource-name>
    <description>application security constraints</description>
    <url-pattern>/*</url-pattern>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
    <role-name>*</role-name>
</auth-constraint>

ERROR [io.undertow.request] (default task-32) UT005023: Exception handling request to /authenticate: java.lang.IllegalStateException: Response is closed.
    at org.jboss.resteasy.specimpl.BuiltResponse.abortIfClosed(BuiltResponse.java:254) [resteasy-jaxrs-3.0.6.Final.jar:]
    at org.jboss.resteasy.client.jaxrs.internal.ClientResponse.readEntity(ClientResponse.java:148) [resteasy-client-3.0.6.Final.jar:]
    at org.jboss.resteasy.specimpl.BuiltResponse.readEntity(BuiltResponse.java:217) [resteasy-jaxrs-3.0.6.Final.jar:]
    at com.c2lbiz.symbiosys.agencyportalui.spring.beans.PortalAuthProvider.authenticate(PortalAuthProvider.java:84) [classes:]
    at org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:156) [spring-security-core-3.2.1.RELEASE.jar:3.2.1.RELEASE]
    at org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:177) [spring-security-core-3.2.1.RELEASE.jar:3.2.1.RELEASE]
    at org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter.attemptAuthentication(UsernamePasswordAuthenticationFilter.java:94) [spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE]
    at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:211) [spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE]
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE]
    at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:110) [spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE]
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE]
    at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:57) [spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:108) [spring-web-4.0.1.RELEASE.jar:4.0.1.RELEASE]
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE]

0 个答案:

没有答案