【问题标题】:http status 408 in j_security_check using JBoss使用 JBoss 的 j_security_check 中的 http 状态 408
【发布时间】:2015-11-16 17:54:31
【问题描述】:

目前我面临一个奇怪的问题。我有一个演示应用程序,它只对数据库中的用户进行身份验证并显示欢迎页面。

问题是如果我保持登录页面打开,然后在重新启动服务器后,尝试使用之前打开的同一页面登录,屏幕显示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服务器有问题。任何帮助将不胜感激。谢谢

【问题讨论】:

标签: java hibernate jboss struts http-error


【解决方案1】:

就我而言,我添加到登录页面。

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

希望对您有所帮助。

【讨论】:

  • 是的,如果早点发布,这可能会有所帮助:)。虽然我已将用户重定向到 408 上的会话超时页面。
猜你喜欢
  • 2012-12-03
  • 2013-01-13
  • 2023-03-24
  • 2020-10-15
  • 1970-01-01
  • 2013-10-26
  • 2018-09-14
  • 2011-07-29
  • 2014-01-05
相关资源
最近更新 更多