我想將我的Java應用程序從JBoss 5.1遷移到JBoss 7.0。我能夠部署應用程序,但是如果我想登錄(基於表單的身份驗證),我會得到一個408(超時)錯誤頁面。基於表單的身份驗證在JBoss成功,但拋出408錯誤頁面
10:06:52,997 TRACE [org.jboss.security.authentication.JBossCachedAuthenticationManager] (http--127.0.0.1-8080-5) End isValid, true
10:06:52,997 TRACE [org.jboss.as.web.security.JBossWebRealm] (http--127.0.0.1-8080-5) User: tlubrpa1 is authenticated
10:06:52,997 DEBUG [org.apache.catalina.authenticator.FormAuthenticator] (http--127.0.0.1-8080-5) Authentication of 'tlubrpa1' was successful
10:06:52,998 DEBUG [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/SSIS2_1]] (http--127.0.0.1-8080-5) User took so long to log on the session expired
10:06:52,998 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] (http--127.0.0.1-8080-5) Failed authenticate() test ??/SSIS2_1/View/Mainpage/j_security_check
10:06:53,511 DEBUG [org.apache.catalina.session.ManagerBase] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]) Start expire sessions StandardManager at 1311062813511 sessioncount 0
10:06:53,512 DEBUG [org.apache.catalina.session.ManagerBase] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]) End expire sessions StandardManager processingTime 1 expired sessions: 0
10:06:54,181 TRACE [org.jboss.as.deployment] (DeploymentScanner-threads - 1) Scanning directory C:\java\jboss-as-web-7.0.0.Final\standalone\deployments for deployment content changes
這是我從standalone.xml相應的提取物:
<subsystem xmlns="urn:jboss:domain:security:1.0">
<security-domains>
<security-domain name="SSIS2-domain">
<authentication>
<login-module code="Database" flag="required">
<module-option name="dsJndiName" value="java:/SSIS2DSDev"/>
<module-option name="principalsQuery" value="SELECT password FROM users WHERE username=? AND active=1"/>
<module-option name="rolesQuery" value="SELECT USERROLE.rolename, 'Roles' FROM USERS INNER JOIN (USERROLE INNER JOIN MAPUSERUSERROLE ON USERROLE.roleid = MAPUSERUSERROLE.roleid) ON USERS.userid = MAPUSERUSERROLE.userid where USERS.username=?"/>
<module-option name="hashAlgorithm" value="MD5"/>
<module-option name="hashEncoding" value="base64"/>
</login-module>
</authentication>
</security-domain>
</security-domains>
</subsystem>
安全的東西實際上是想在登錄 - 同樣來自的server.log看看這個提取物從JBoss 5.1的config.xml,正如你在上面看到的,它認證用戶。
有沒有人有想法?
嘿,夥計,我到底需要將它添加到standalone.xml中嗎? –