2015-12-03 184 views
3

我是jboss服務器的新手。當我試圖在服務器上部署.war文件時,以下異常會在控制檯上得到打印:啓動Jboss Wildfly 9.02服務器時的併發超時異常

6:38:04,388 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0348: Timeout after [300] seconds waiting for service container stability. Operation will roll back. Step that first updated the service container was 'add' at address '[ 
    ("core-service" => "management"), 
    ("management-interface" => "http-interface") 
]' 
16:38:05,642 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-4) WFLYJCA0019: Stopped Driver service with driver-name = Aerobay.war_com.mysql.jdbc.Driver_5_1 
16:38:09,548 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0190: Step handler org.[email protected]5f88823f for operation {"operation" => "add-deployer-chains","address" => []} at address [] failed handling operation rollback -- java.util.concurrent.TimeoutException: java.util.concurrent.TimeoutException 
    at org.jboss.as.controller.OperationContextImpl.waitForRemovals(OperationContextImpl.java:396) 
    at org.jboss.as.controller.AbstractOperationContext$Step.handleResult(AbstractOperationContext.java:1384) 
    at org.jboss.as.controller.AbstractOperationContext$Step.finalizeInternal(AbstractOperationContext.java:1332) 
    at org.jboss.as.controller.AbstractOperationContext$Step.finalizeStep(AbstractOperationContext.java:1292) 
    at org.jboss.as.controller.AbstractOperationContext$Step.access$300(AbstractOperationContext.java:1180) 
    at org.jboss.as.controller.AbstractOperationContext.handleContainerStabilityFailure(AbstractOperationContext.java:964) 
    at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:590) 
    at org.jboss.as.controller.AbstractOperationContext.completeStepInternal(AbstractOperationContext.java:354) 
    at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:330) 
    at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1183) 
    at org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:453) 
    at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:327) 
    at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:313) 
    at org.jboss.as.server.ServerService.boot(ServerService.java:384) 
    at org.jboss.as.server.ServerService.boot(ServerService.java:359) 
    at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:271) 
    at java.lang.Thread.run(Thread.java:745) 

在此先感謝您的幫助!

回答

9

嘗試通過添加java選項「blocking.timeout」來增加超時。您可以在倉做/ standalone.conf.bat(取決於你如何配置wildfly)加入一行:
集「JAVA_OPTS =%JAVA_OPTS%-Djboss.as.management.blocking.timeout = 600
變化如果它沒有足夠的數量。

13

我有同樣的問題,當我試圖部署在我的Red Hat的Jboss EAP 7.0 WAR文件。

但是服務器整合到我的IDE(Eclipse的霓虹燈)和問題只出現在Debug-Modus中

我能夠通過去除所有斷點來解決問題在我再次啓動服務器。

+0

後今天更新到霓虹燈我也在零星地看到了這一點,但不幸的是,即使我沒有設置斷點,我也在使用JRebel,但可能會有所貢獻,暫且我想我會回到Mars.2。 ,它運行良好,非常穩定 – sprockets

+0

非常感謝您的評論...我忘了提及我在「標準」模式下啓動服務器之前...(工作得很好)之後,我刪除所有斷點並再次啓動服務器。問題消失了。 –

+0

與IJ,JRebel和wildfly相同的問題8.刪除斷點並重新啓動解決它。謝謝。 – zatenzu

2

,當我試圖調試,並開始與調試模式的服務器得到了以下錯誤:

16:19:50,096 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) JBAS013412: Timeout after [300] seconds waiting for service container stability. Operation will roll back. Step that first updated the service container was 'deploy' at address '[("deployment" => "ViprWeb.war")]' 
16:19:50,096 ERROR [org.jboss.as.server] (management-handler-thread - 1) JBAS015870 
16:20:00,117 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) JBAS013413: Timeout after [5000] seconds waiting for service container stability while finalizing an operation. 

我打消了我所有的斷點並重新啓動我的服務器JBoss和它解決了問題。

0

只是增加超時在standalone.conf.bat 設定爲集「JAVA_OPTS =%JAVA_OPTS%-Djboss.as.management.blocking.timeout = 600 它爲我工作。