Java Openshift上部署的Tomcat应用程序返回404

Java Openshift上部署的Tomcat应用程序返回404,java,tomcat,openshift,resteasy,Java,Tomcat,Openshift,Resteasy,我已在以下url下部署了我的应用程序:, 但我经常会得到404状态。 同样的应用程序在我的本地Tomcat或Jetty上运行。访问localhost:8080/ROOT/时,它返回默认的Openshift索引页 从openshift上的日志中,我可以看到它已启动: INFO: Starting Servlet Engine: Apache Tomcat/7.0.54 Nov 05, 2014 4:14:32 AM org.apache.catalina.startup.HostConfig de

我已在以下url下部署了我的应用程序:, 但我经常会得到404状态。 同样的应用程序在我的本地Tomcat或Jetty上运行。访问localhost:8080/ROOT/时,它返回默认的Openshift索引页

从openshift上的日志中,我可以看到它已启动:

INFO: Starting Servlet Engine: Apache Tomcat/7.0.54
Nov 05, 2014 4:14:32 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /var/lib/openshift/5458e7d3500446ea91000597/app-root/runtime/dependencies/jbosse
ws/webapps/ROOT.war
SLF4J: The requested version 1.5.8 by your slf4j binding is not compatible with [1.6]
SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further details.
47 [localhost-startStop-1] INFO org.quartz.impl.StdSchedulerFactory - Using default implementation for ThreadExecutor
53 [localhost-startStop-1] INFO org.quartz.simpl.SimpleThreadPool - Job execution threads will use class loader of threa
d: localhost-startStop-1
148 [localhost-startStop-1] INFO org.quartz.core.SchedulerSignalerImpl - Initialized Scheduler Signaller of type: class
org.quartz.core.SchedulerSignalerImpl
150 [localhost-startStop-1] INFO org.quartz.core.QuartzScheduler - Quartz Scheduler v.2.2.1 created.
158 [localhost-startStop-1] INFO org.quartz.simpl.RAMJobStore - RAMJobStore initialized.
160 [localhost-startStop-1] INFO org.quartz.core.QuartzScheduler - Scheduler meta-data: Quartz Scheduler (v2.2.1) 'Defau
ltQuartzScheduler' with instanceId 'NON_CLUSTERED'
  Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
  NOT STARTED.
  Currently in standby mode.
  Number of jobs executed: 0
  Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
  Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.
161 [localhost-startStop-1] INFO org.quartz.impl.StdSchedulerFactory - Quartz scheduler 'DefaultQuartzScheduler' initial
ized from default resource file in Quartz package: 'quartz.properties'
161 [localhost-startStop-1] INFO org.quartz.impl.StdSchedulerFactory - Quartz scheduler version: 2.2.1
Nov 05, 2014 4:14:40 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive /var/lib/openshift/5458e7d3500446ea91000597/app-root/runtime/dependencies/jb
ossews/webapps/ROOT.war has finished in 7,523 ms
Nov 05, 2014 4:14:40 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-127.9.148.1-8080"]
Nov 05, 2014 4:14:40 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 7825 ms
我在上下文侦听器中使用quartz,我的应用程序也基于RestEasy框架。
知道发生了什么吗?

通过从头开始重新创建应用程序,我已经解决了这个问题,唯一的区别是我使用了tmplate中的web.xml,而不是我的

现在web.xml上有什么不同之处:

 <web-app version="3.0" 
    xmlns="java.sun.com/xml/ns/javaee" 
    xmlns:xsi="w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="java.sun.com/xml/ns/javaee java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
    metadata-complete="false">

</web-app> 


Does
http://yoururl.com
指向过去三天内出现相同问题的
localhost:8080/ROOT/
。如果有任何事情需要更改,请告知。我也重新创建了我的应用程序,但仍然存在相同的问题。你能解释一下关于
web.xml
的事情吗?我已经学过web了。根据模板创建的存储库中的Xml文件,然后根据我的目的对其进行了调整。当我使用网络的时候。我的应用程序中的Xml它不起作用-看看headercan你可以告诉我你所做的更改(如果我要求不多的话),这将非常有帮助。谢谢你的回复。当然我用了他们的标题。谢谢你的帮助。我尝试了这个标题,并删除了其他版本的不兼容现在它的工作。