0

Websphere 8 で LDAP と Spring を実行しようとしています。どういうわけかそうですが、login.xhtmlにリクエストを転送しません。

つまり、ログインしているように見えますが、そのページでは何もクリックできず、ログイン ページに転送されません。

直接 (/faces/login.xhtml) を呼び出し、ログインしてクリックすると、すべてが期待どおりに機能するため、アプリケーションが必要なログインページに転送しないだけです。

皆さん、良い考えを持っていることを願っています。

私の web.xml は次のようになります。

<!-- removed non-relevant parts-->
<welcome-file-list>
    <welcome-file>faces/index.xhtml</welcome-file>
</welcome-file-list>
<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>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
</filter-mapping>

私の applicationSecurity.xml は次のようになります。

<security:http pattern="/faces/ressources/**" security="none"/>
<security:http auto-config="true" pattern="/**">
  <!-- Login pages -->
  <security:form-login login-page="/faces/login.xhtml" default-target-url="/faces/index.xhtml"
                       login-processing-url="/faces/j_spring_security_check"
                       authentication-failure-url="/faces/login.xhtml" />
  <security:logout logout-success-url="/faces/login.xhtml" />
  <!-- Security zones -->
  <!-- secured -->
  <security:intercept-url pattern="/faces/index.xhtml" access="ROLE_APP_QPA_ADMIN,ROLE_APP_QPA_USER" />
  <security:intercept-url pattern="/faces/datadictionary/**" access="ROLE_APP_QPA_ADMIN,ROLE_APP_QPA_USER" />
  <security:intercept-url pattern="/faces/templates/**" access="ROLE_APP_QPA_ADMIN,ROLE_APP_QPA_USER" />
</security:http>

他に何ができるかわかりません。問題があれば、Spring を共有ライブラリとして使用します。

4

0 に答える 0