在OpenShift Express上部署Java App时出错

时间:2012-04-04 19:43:16

标签: deployment cloud openshift

我正在尝试将我的Java应用程序部署到OpenShift Express。

该应用程序在我的本地tomcat和CloudFoundry平台上运行良好。我在管理控制台中创建了应用程序,然后将我的应用程序代码推送到openshift创建的git存储库。

当我执行推送时,我看到maven构建已成功完成且没有错误,但是,如果我然后检查应用程序的状态(使用命令:rhc app status),那么我会收到以下错误显示:

        at org.jboss.as.jpa.processor.JPAAnnotationParseProcessor.deploy(JPAAnnotationParseProcessor.java:90)
        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
        ... 5 more
2012/04/04 15:01:42,138 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "ROOT.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"ROOT.war\".DEPENDENCIES" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"ROOT.war\".DEPENDENCIES: Failed to process phase DEPENDENCIES of deployment \"ROOT.war\""}}
2012/04/04 15:01:42,462 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment ROOT.war in 320ms
2012/04/04 15:01:42,464 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777:   Services which failed to start:      service jboss.deployment.unit."ROOT.war".DEPENDENCIES: org.jboss.msc.service.StartException in service jboss.deployment.unit."ROOT.war".DEPENDENCIES: Failed to process phase DEPENDENCIES of deployment "ROOT.war"
2012/04/04 15:01:42,539 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"ROOT.war\".DEPENDENCIES" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"ROOT.war\".DEPENDENCIES: Failed to process phase DEPENDENCIES of deployment \"ROOT.war\""}}}}

除了这个错误,我可以看到堆栈跟踪的结束,因此尝试使用rhc-tail-file命令来拖尾应用程序的日志,但是当我这样做时,我收到以下错误:{{1 }}

是否有人遇到此问题或有任何关于如何解决的建议?

1 个答案:

答案 0 :(得分:1)

继续使用与git存储库相同的UUID和主机名SSH连接到您的应用程序。如果你进入appname / logs,你应该能够看到完整的日志。 一旦你得到它,你应该更好地理解错误。