2014-09-19 87 views
0

目前我面臨奇怪的問題。我有一個演示應用程序,它只是從數據庫驗證用戶並顯示歡迎頁面。在j_security_check中使用JBoss http狀態408

問題是如果我保持登錄頁面打開,然後重新啓動服務器,嘗試登錄使用前面打開的相同頁面,屏幕顯示我HTTP Status 408 - The time allowed for the login process has been exceeded.錯誤。

我試過建議在HTTP Status 408 error during login with domain forwarding set up鏈接改變,但它不工作。

這是我的登錄頁面:

<!DOCTYPE html> 
<head> 
     <title>Login</title> 
     <meta charset="utf-8" /> 
     <meta http-equiv="Cache-Control" content="no-store,no-cache,must-revalidate"/> 
     <meta http-equiv="Pragma" content="no-cache"/> 
     <meta http-equiv="Expires" content="-1"/> 
</head> 
<body> 
    <form method="post" action='<%= response.encodeURL("j_security_check") %>' id="login" > 
     <label for="username">Username</label> 
     <input type="text" name="j_username" id="username" autofocus /> 

     <label for="password">Password</label> 
     <input type="password" name="j_password" id="password" /> 

     <button type="submit" class="primary" name="Submit">Log in</button> 
    </form> 
</body> 
</html> 

我試圖調試,但要求不通過服務器來控制。所以我猜jboss服務器有問題。任何幫助將不勝感激。謝謝

+0

與你這個問題有點相似嗎? http://comments.gmane.org/gmane.comp.jakarta.tomcat.user/122471 – Yster 2015-02-04 13:11:38

+0

是的,它是一樣的,它是由於會議屆滿 – 2015-02-04 15:58:02

回答

1

在我的情況下,我添加到登錄頁面。

setInterval(function(){ 
     location.reload(true); //reload each 5 minutes 
    },5*60*1000); 

希望得到這個幫助。

+1

是啊,這可能會有所幫助,如果發佈較早:)。儘管我已將用戶重定向到408上的會話超時頁面。 – 2015-11-17 10:22:11