2014-12-24 147 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> 

我错过了什么?

回答

相关问题