Spring mvc 302在Weblogic上暂时移动,但在Tomcat上对Spring安全性工作良好

Spring mvc 302在Weblogic上暂时移动,但在Tomcat上对Spring安全性工作良好,spring-mvc,tomcat,spring-security,weblogic-10.x,Spring Mvc,Tomcat,Spring Security,Weblogic 10.x,我能够将应用程序从Tomcat部署到Weblogic 10.3.6,但是当我尝试登录时,它会返回到同一个登录页面,并且日志中没有错误。但当我检查请求状态代码时,它显示“302临时移动”。 它在Tomcat中运行良好 Spring安全XML <beans:beans xmlns="http://www.springframework.org/schema/security" xmlns:beans="http://www.springframework.org/schema/bean

我能够将应用程序从Tomcat部署到Weblogic 10.3.6,但是当我尝试登录时,它会返回到同一个登录页面,并且日志中没有错误。但当我检查请求状态代码时,它显示“302临时移动”。 它在Tomcat中运行良好

Spring安全XML

<beans:beans xmlns="http://www.springframework.org/schema/security"
    xmlns:beans="http://www.springframework.org/schema/beans" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/security
    http://www.springframework.org/schema/security/spring-security-3.2.xsd">

    <http pattern="/login" security="none"/>
    <http pattern="/jquery/**" security="none"/>
    <http pattern="/bootstrap/**" security="none"/>
    <http pattern="/icons/**" security="none"/>
    <http pattern="/images/**" security="none"/>
    <http pattern="/css/**" security="none"/>


    <http auto-config="true">
        <intercept-url pattern="/**" access="ROLE_A" />

        <form-login 
            login-page="/login" 
            login-processing-url="/j_spring_security_check.action"
            default-target-url="/abc" 
            authentication-failure-url="/login?error"
            always-use-default-target="true" 
            username-parameter="j_username"
            password-parameter="j_password" />

    </http>

    <beans:bean id="daoAuthenticationProvider" class="org.springframework.security.authentication.dao.DaoAuthenticationProvider">
        <beans:property name="userDetailsService" ref="userAuthenticationService"/>
    </beans:bean>

    <beans:bean id="authenticationManager"  class="org.springframework.security.authentication.ProviderManager">
      <beans:property name="providers">
        <beans:list>
          <beans:ref bean="daoAuthenticationProvider" />
        </beans:list>
      </beans:property>
    </beans:bean>

    <authentication-manager erase-credentials="false">
        <authentication-provider user-service-ref="userAuthenticationService">
            <password-encoder hash="plaintext"/>
        </authentication-provider>
    </authentication-manager>


</beans:beans>

Web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

    <display-name>ABC Markup</display-name>


     <servlet>
    <servlet-name>mvc-dispatcher</servlet-name>
        <servlet-class>
                  org.springframework.web.servlet.DispatcherServlet
        </servlet-class>
        <load-on-startup>1</load-on-startup>
     </servlet>      

      <servlet-mapping>
        <servlet-name>mvc-dispatcher</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>


    <listener>
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>

     <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>
            /WEB-INF/mvc-dispatcher-servlet.xml
            /WEB-INF/spring-security.xml
        </param-value>
    </context-param>
    <context-param>
        <param-name>log4jConfigLocation</param-name>
        <param-value>classpath:log4j.xml</param-value>
    </context-param>

     <listener>
        <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
    </listener>

    <filter>
        <filter-name>springSecurityFilterChain</filter-name>
        <filter-class>org.springframework.web.filter.DelegatingFilterProxy
        </filter-class>
    </filter>

    <filter-mapping>
        <filter-name>springSecurityFilterChain</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
    <session-config>
        <session-timeout>20</session-timeout>
    </session-config>
</web-app>

ABC加价
mvc调度器
org.springframework.web.servlet.DispatcherServlet
1.
mvc调度器
/
org.springframework.web.context.ContextLoaderListener
上下文配置位置
/WEB-INF/mvc-dispatcher-servlet.xml
/WEB-INF/spring-security.xml
log4jConfigLocation
类路径:log4j.xml
org.springframework.web.util.Log4jConfigListener
springSecurityFilterChain
org.springframework.web.filter.DelegatingFilterProxy
springSecurityFilterChain
/*
20

请帮助我解决此问题

是否可以添加一些日志以查看是否正在调用身份验证?登录后,你能手动导航到某个经过身份验证的url吗?@Taylor我能看到它进入我的数据库,获取用户数据等等。我甚至调试过它。还有一个大问题,我在日志中找不到任何东西,它没有更新它。会话是否得到验证?登录后,您可以手动导航到/abc或其他经过身份验证的url吗?@Taylor,我可以打开图像和JS,但不可以,我不能使用其他url。@Taylor,是否与Weblogic 10.3.6中的Spring 4.1.5.RELEASE有关