【发布时间】:2012-12-04 06:38:53
【问题描述】:
我有一个使用 Spring、Hibernate 和 JSF2.0 的小型 Web 应用程序。
我正在将我的应用程序部署到与 Eclipse 服务器集成的 Weblogic 10.3.6。当我将应用程序发布到服务器时,它会被发布(部署),但是与 Glassfish 相比,它需要相当长的时间才能发布。
我遇到的问题是,当我尝试从浏览器运行应用程序时,我在浏览器中收到以下错误,但我在日志中没有看到任何错误或异常。我该如何解决这个问题?为什么部署到服务器需要这么多时间?
Error 503--Service Unavailable
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.5.4 503 Service Unavailable
The server is currently unable to handle the request due to a temporary
overloading or maintenance of the server. The implication is that this
is a temporary condition which will be alleviated after some delay. If known,
the length of the delay may be indicated in a Retry-After header.
If no Retry-After is given, the client SHOULD handle the response as it would
for a 500 response.
Note: The existence of the 503 status code does not imply that a server
must use it when becoming overloaded. Some servers may wish to simply
refuse the connection.
【问题讨论】:
-
您是否查看了管理页面中的 weblogic 日志或应用程序可用性?您是否确保您的应用程序已启动?
-
我正面临一个类似的问题,我试图通过 ANGULAR UI 前端访问部署到 Weblogic 上的 SpringBoot 应用程序。 Spring 的异常处理处理了大多数异常,但对于上述服务关闭的情况,我无法在 Springboot 中捕获它,并且 Angular 应用程序显示来自 Weblogic 服务器的混乱消息。我怎样才能捕捉到这个异常?
标签: java deployment weblogic weblogic11g http-status-code-503