2014-11-05 97 views
1

我已經根據以下網址部署我的應用程序:https://migawka-hatak.rhcloud.com/, 但我不斷獲得404狀態。 相同的應用程序適用於我的本地Tomcat或Jetty。當訪問localhost:8080/ROOT /時,它會返回默認的Openshift索引頁面。Openshift上部署的Tomcat應用程序返回404

從上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 

我使用石英語境收聽,還我的應用程序是基於RestEasy的框架。 任何想法是怎麼回事?

+0

是否通過'http:// yoururl.com'點'本地主機:8080/ROOT /'? – for3st 2014-11-05 10:11:45

+0

過去三天有同樣的問題。請讓知道是否有任何改變。 – Saif 2014-11-07 04:17:23

回答

2

我已經解決了問題,通過重新創建應用程序,唯一不同的是,我使用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> 
+0

我也重新創建了我的應用程序,但仍然是同樣的問題。你能解釋一下關於'web.xml'的一些事情嗎? – Saif 2014-11-07 04:18:44

+0

那麼我已經採用了Web。從模板創建的存儲庫中的Xml文件然後將其調整爲我的目的。當我使用網絡時。 Xml從我的應用程序它不工作 - 看看標題 – 2014-11-09 08:10:04

+0

你可以請指出我所做的改變(如果我沒有問很多),這將是非常有用的。謝謝回覆。 – Saif 2014-11-09 16:55:25

相關問題