在 OPENSHIFT 启动 Web 应用程序时出现 503 错误
503 ERROR when starting web app at OPENSHIFT
我正在尝试从 Eclipse 在 OpenShift 上部署 Spring MVC 应用程序。一切都成功推送到 OpenShift 存储库。但是当我打开我的网站时,它给了我 503 错误。我正在使用 Spring MVC、Hibernate。
请帮助!
我的日志文件
Jan 30, 2016 1:23:09 PM org.apache.catalina.startup.Catalina addClusterRuleSet
INFO: Cluster RuleSet not found due to [java.lang.ClassNotFoundException: org.apache.catalina.ha.ClusterRuleSet]. Cluster configuration disabled.
Jan 30, 2016 1:23:09 PM org.apache.catalina.startup.Catalina addClusterRuleSet
INFO: Cluster RuleSet not found due to [java.lang.ClassNotFoundException: org.apache.catalina.ha.ClusterRuleSet]. Cluster configuration disabled.
Jan 30, 2016 1:23:10 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.p$
Jan 30, 2016 1:23:10 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-127.3.60.1-8080"]
Jan 30, 2016 1:23:10 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1499 ms
Jan 30, 2016 1:23:11 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jan 30, 2016 1:23:11 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.54
Jan 30, 2016 1:23:11 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /var/lib/openshift/56acfef17628e1c82e00007c/app-root/runtime/dependencies/jbossews/webapps/ROOT.war
Jan 30, 2016 1:23:14 PM org.apache.catalina.util.SessionIdGenerator createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [105] milliseconds.
Jan 30, 2016 1:23:14 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive /var/lib/openshift/56acfef17628e1c82e00007c/app-root/runtime/dependencies/jbossews/webapps/ROOT.war $
Jan 30, 2016 1:23:14 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-127.3.60.1-8080"]
Jan 30, 2016 1:23:14 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3612 ms
Jan 30, 2016 1:27:04 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-127.3.60.1-8080"]
Jan 30, 2016 1:27:04 PM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
Jan 30, 2016 1:27:04 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-bio-127.3.60.1-8080"]
Jan 30, 2016 1:27:04 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-bio-127.3.60.1-8080"]
Jan 30, 2016 1:58:25 PM org.apache.catalina.startup.Catalina addClusterRuleSet
INFO: Cluster RuleSet not found due to [java.lang.ClassNotFoundException: org.apache.catalina.ha.ClusterRuleSet]. Cluster configuration disabled.
Jan 30, 2016 1:58:26 PM org.apache.catalina.startup.Catalina addClusterRuleSet
INFO: Cluster RuleSet not found due to [java.lang.ClassNotFoundException: org.apache.catalina.ha.ClusterRuleSet]. Cluster configuration disabled.
我使用的是:Spring MVC、Hibernate。
我通过一些步骤解决了这个问题:
- 在 OpenShift
创建 "empty" 应用程序
- 将其克隆到本地存储库
- 从项目中删除 src 文件夹和 pom.xml 文件,您在本地存储库中从 OpenShift
- 为需要部署的项目创建一个.war文件。
- 将此 .war 文件复制到 project_name/webapps 文件夹中的克隆项目。
- 最后,提交并将其推送到 OpenShift 存储库。
- 使用 URL 在 OpenShift 上打开您的 Web 应用程序,例如 yourAppName-yourDomain.rhcloud.com/yourWarFileName
很高兴我能帮助smbd!
我正在尝试从 Eclipse 在 OpenShift 上部署 Spring MVC 应用程序。一切都成功推送到 OpenShift 存储库。但是当我打开我的网站时,它给了我 503 错误。我正在使用 Spring MVC、Hibernate。
请帮助!
我的日志文件
Jan 30, 2016 1:23:09 PM org.apache.catalina.startup.Catalina addClusterRuleSet
INFO: Cluster RuleSet not found due to [java.lang.ClassNotFoundException: org.apache.catalina.ha.ClusterRuleSet]. Cluster configuration disabled.
Jan 30, 2016 1:23:09 PM org.apache.catalina.startup.Catalina addClusterRuleSet
INFO: Cluster RuleSet not found due to [java.lang.ClassNotFoundException: org.apache.catalina.ha.ClusterRuleSet]. Cluster configuration disabled.
Jan 30, 2016 1:23:10 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.p$
Jan 30, 2016 1:23:10 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-127.3.60.1-8080"]
Jan 30, 2016 1:23:10 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1499 ms
Jan 30, 2016 1:23:11 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jan 30, 2016 1:23:11 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.54
Jan 30, 2016 1:23:11 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /var/lib/openshift/56acfef17628e1c82e00007c/app-root/runtime/dependencies/jbossews/webapps/ROOT.war
Jan 30, 2016 1:23:14 PM org.apache.catalina.util.SessionIdGenerator createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [105] milliseconds.
Jan 30, 2016 1:23:14 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive /var/lib/openshift/56acfef17628e1c82e00007c/app-root/runtime/dependencies/jbossews/webapps/ROOT.war $
Jan 30, 2016 1:23:14 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-127.3.60.1-8080"]
Jan 30, 2016 1:23:14 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3612 ms
Jan 30, 2016 1:27:04 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-127.3.60.1-8080"]
Jan 30, 2016 1:27:04 PM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
Jan 30, 2016 1:27:04 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-bio-127.3.60.1-8080"]
Jan 30, 2016 1:27:04 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-bio-127.3.60.1-8080"]
Jan 30, 2016 1:58:25 PM org.apache.catalina.startup.Catalina addClusterRuleSet
INFO: Cluster RuleSet not found due to [java.lang.ClassNotFoundException: org.apache.catalina.ha.ClusterRuleSet]. Cluster configuration disabled.
Jan 30, 2016 1:58:26 PM org.apache.catalina.startup.Catalina addClusterRuleSet
INFO: Cluster RuleSet not found due to [java.lang.ClassNotFoundException: org.apache.catalina.ha.ClusterRuleSet]. Cluster configuration disabled.
我使用的是:Spring MVC、Hibernate。
我通过一些步骤解决了这个问题:
- 在 OpenShift 创建 "empty" 应用程序
- 将其克隆到本地存储库
- 从项目中删除 src 文件夹和 pom.xml 文件,您在本地存储库中从 OpenShift
- 为需要部署的项目创建一个.war文件。
- 将此 .war 文件复制到 project_name/webapps 文件夹中的克隆项目。
- 最后,提交并将其推送到 OpenShift 存储库。
- 使用 URL 在 OpenShift 上打开您的 Web 应用程序,例如 yourAppName-yourDomain.rhcloud.com/yourWarFileName
很高兴我能帮助smbd!