部署(发布)后的Weblogic错误:错误503-服务不可用

Jåc*_*cob 2 java deployment weblogic weblogic11g http-status-code-503

我有一个小型Web应用程序,正在使用Spring,Hibernate和JSF2.0。

我正在将应用程序部署到与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.
Run Code Online (Sandbox Code Playgroud)

小智 5

转到管理控制台,检查您的服务器的状态,检查您尝试部署的应用程序本身的状态。确保它已启动并准备好接受请求。

关于为什么需要很长时间才能部署,我认为这归结于使用 Eclipse 本身的 IMO。重新部署应用程序时,如果您将某些文件部署为库,那么部署速度会快得多。如果您尝试在 EAR 文件本身中包含所有库,则服务器将花费更长的时间。


小智 5

确保您的部署处于活动状态。部署后,准备好已部署的文件状态。要将其更改为活动模式,请执行以下步骤:

  1. 单击左侧控制台中的“部署”选项卡,然后转到“部署摘要”。

  2. 现在,您将能够看到现在准备的部署状态。

  3. 点击上方的控制标签。
  4. 选择您的war文件并检查开始选项。
  5. 然后选择所有服务。

它将状态更改为活动模式。;)