Openshift未在给定URL显示应用程序

Openshift未在给定URL显示应用程序,openshift,Openshift,我一直在尝试将自己的应用程序部署到openshift,我按照说明启动了Tomcat 7实例、MySql盒带,所有这些都似乎正在运行 当我点击站点url时,它显示默认的openshift信息页面,我的应用程序是使用JSP/Servlet、mySQL编写的 在将代码推送到git时,据我所知,推送工作进行得很顺利。见附件输出 我的应用程序中有一个index.jsp,并设置了一个到urlPattern/home的欢迎文件映射,如下面的web.xml所示 <?xml version="1.0" en

我一直在尝试将自己的应用程序部署到openshift,我按照说明启动了Tomcat 7实例、MySql盒带,所有这些都似乎正在运行

当我点击站点url时,它显示默认的openshift信息页面,我的应用程序是使用JSP/Servlet、mySQL编写的

在将代码推送到git时,据我所知,推送工作进行得很顺利。见附件输出

我的应用程序中有一个index.jsp,并设置了一个到urlPattern/home的欢迎文件映射,如下面的web.xml所示

<?xml version="1.0" encoding="UTF-8"?>
<web-app
        xmlns="http://java.sun.com/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
  http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">
    <welcome-file-list>
        <welcome-file>post/index.jsp</welcome-file>
    </welcome-file-list>

非常感谢您的帮助。很抱歉,这是我第一次使用新手方法:)

以下是我将采用的故障排除方法。由于您没有提到确切的错误消息,我将参考一般故障排除。这可用于任何“路线不工作”问题

通信流程是 浏览器>路线>服务>吊舱

站起来另一个安装好的吊舱

第一个卷曲到pod IP地址(如果从pod描述或
oc get pod-o wide
,您可以获得pod)

如果它按预期工作,则移动到下一层,即服务层

curl到服务ip或主机名(oc get svc,这里我们感兴趣的是集群ip)

如果这样做有效,那么您可以尝试访问路由url

通过这种方式,您可以确定它的确切断裂位置

remote: [INFO] BUILD SUCCESS
remote: [INFO] ------------------------------------------------------------------------
remote: [INFO] Total time: 52.392s
remote: [INFO] Finished at: Fri Apr 18 14:36:05 EDT 2014   
remote: [INFO] Final Memory: 8M/77M
remote: [INFO] ------------------------------------------------------------------------
remote: Preparing build for deployment
remote: Deployment id is 527129b9
remote: Activating deployment
remote: + tmp=/var/lib/openshift/53516eaa4382ec7e990002c3/jbossews//tmp
remote: + '[' -d /var/lib/openshift/53516eaa4382ec7e990002c3/jbossews//tmp ']'
remote: + for d in '$tmp/*'
remote: + '[' -d '/var/lib/openshift/53516eaa4382ec7e990002c3/jbossews//tmp/*' ']'
remote: + '[' -d /var/lib/openshift/53516eaa4382ec7e990002c3/jbossews//work/ ']'
remote: + rm -rf /var/lib/openshift/53516eaa4382ec7e990002c3/jbossews//work/
remote: ++ ls /var/lib/openshift/53516eaa4382ec7e990002c3/app-root/runtime/repo//webapps
remote: + '[' ROOT.war ']'
remote: + rsync -r --delete /var/lib/openshift/53516eaa4382ec7e990002c3/app-root/runtime/repo//webapps/ /var/lib/opensh
ft/53516eaa4382ec7e990002c3/jbossews//webapps/
remote: Starting jbossews cartridge
remote: Found 127.6.235.1:8080 listening port
remote: -------------------------
remote: Git Post-Receive Result: success
remote: Activation status: success
remote: Deployment completed with status: success