JBoss AS 7.1服务器在启动过程中无法部署ear应用程序,无论部署扫描程序中设置了默认超时

JBoss AS 7.1服务器在启动过程中无法部署ear应用程序,无论部署扫描程序中设置了默认超时,jboss,web-deployment,jboss7.x,ear,documentum,Jboss,Web Deployment,Jboss7.x,Ear,Documentum,我们的一个JBoss应用服务器版本7.1在启动过程中未能部署ear应用程序。我在standalone.xml文件的deployment scanner部分尝试了许多不同的默认超时参数值(600秒、1200秒、2400秒)。无论为默认超时设置的值是多少,它都会使用相同的消息继续失败 直到昨天,它还可以正常工作,默认超时设置为300秒。请在下面的“错误消息”部分找到错误消息 除了尝试不同的默认超时值外,我还尝试了多次删除缓存,例如在重新启动之前重命名或删除tmp目录 我可以试着解决这个问题吗 错误消

我们的一个JBoss应用服务器版本7.1在启动过程中未能部署ear应用程序。我在standalone.xml文件的deployment scanner部分尝试了许多不同的默认超时参数值(600秒、1200秒、2400秒)。无论为默认超时设置的值是多少,它都会使用相同的消息继续失败

直到昨天,它还可以正常工作,默认超时设置为300秒。请在下面的“错误消息”部分找到错误消息

除了尝试不同的默认超时值外,我还尝试了多次删除缓存,例如在重新启动之前重命名或删除tmp目录

我可以试着解决这个问题吗

错误消息:

15:46:01,732 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015052: Did not receive a response to the deployment operation within the allowed timeout period [600 seconds]. Check the server configuration file and the server logs to find more about the status of the deployment.
15:46:01,734 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015052: Did not receive a response to the deployment operation within the allowed timeout period [600 seconds]. Check the server configuration file and the server logs to find more about the status of the deployment.
15:46:01,733 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015871: Deploy of deployment "ServerApps.ear" was rolled back with no failure message
15:46:01,736 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015052: Did not receive a response to the deployment operation within the allowed timeout period [600 seconds]. Check the server configuration file and the server logs to find more about the status of the deployment.
15:46:01,736 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015871: Deploy of deployment "bpm.ear" was rolled back with no failure message
15:46:01,776 INFO  [javax.enterprise.resource.webservices.jaxws.servlet.http] (MSC service thread 1-1) WSSERVLET15: JAX-WS servlet destroyed
15:46:01,779 INFO  [javax.enterprise.resource.webservices.jaxws.server.http] (MSC service thread 1-1) WSSERVLET13: JAX-WS context listener destroyed

该错误可能是由于Servlet的init()方法或其他EE组件调用System.exit()而导致的,后者会触发shutdown hook运行。JBoss模块化服务容器或MSC注册一个钩子,当被触发时,它会关闭容器。容器关闭操作需要等待EAR部署结束,以便知道部署是成功还是失败。这可能会导致死锁,因为System.exit()调用会等待钩子完成其执行,当部署因超时而失败时,死锁将被打破,释放MSC并继续关闭

您可以尝试收集线程转储并查看是否存在

  • 一个“MSC服务线程”,它已调用System.exit()或Runtime.exit(),并等待关闭钩子完成
  • “MSC Shutdown Hook”线程,它正在等待CountDownlatch

该错误可能是由于Servlet的init()方法或其他EE组件调用System.exit()时触发关闭钩子运行而导致的。JBoss模块化服务容器或MSC注册一个钩子,当被触发时,它会关闭容器。容器关闭操作需要等待EAR部署结束,以便知道部署是成功还是失败。这可能会导致死锁,因为System.exit()调用会等待钩子完成其执行,当部署因超时而失败时,死锁将被打破,释放MSC并继续关闭

您可以尝试收集线程转储并查看是否存在

  • 一个“MSC服务线程”,它已调用System.exit()或Runtime.exit(),并等待关闭钩子完成
  • “MSC Shutdown Hook”线程,它正在等待CountDownlatch

这可能是由于最近在应用程序中进行了更改(如果有)而导致的失败。如果您已经更新了任何应用程序中的任何内容,是否可以尝试将其还原并重新部署一次?这可能会失败,因为最近在应用程序中进行了任何更改(如果有)。如果您已经更新了应用程序中的任何内容,是否可以尝试将其还原并重新部署一次?