2014-12-24 146 views
0

我部署了一個test.war,並且記錄表示沒有錯誤,並且它在deployment /處自動生成了一個test.war.deployed。 我只有一個index.jsp的測試,但瀏覽器顯示:在JBoss 7.1.1上部署應用程序錯誤404

HTTP Status 404 - /test/ 
type Status report 
message /test/ 
description The requested resource (/test/) is not available. 

這裏是我的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_2_5.xsd" 
     version="2.5"> </web-app> 

這裏是我的jboss-web.xml中:

<?xml version="1.0" encoding="UTF-8"?> <jboss-web> 
    <context-root>/test</context-root> </jboss-web> 

我錯過了什麼?

回答

相關問題