Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/82.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Eclipse 动态Web应用程序请求的资源(/helloWorld/index.html)不可用_Eclipse_Html_Jboss_Resteasy - Fatal编程技术网

Eclipse 动态Web应用程序请求的资源(/helloWorld/index.html)不可用

Eclipse 动态Web应用程序请求的资源(/helloWorld/index.html)不可用,eclipse,html,jboss,resteasy,Eclipse,Html,Jboss,Resteasy,使用Eclipse+JBoss+REST创建了一个动态Web应用程序,使您可以轻松地处理新项目。试图让一个外壳启动并运行 我的项目浏览器具有以下功能 根项目->网络内容->index.html 当我转到http://localhost:8080/helloWorld/index.html我发现以下错误: description The requested resource (/helloWorld/index.html) is not available. 附件是my web.xml <

使用Eclipse+JBoss+REST创建了一个动态Web应用程序,使您可以轻松地处理新项目。试图让一个外壳启动并运行

我的项目浏览器具有以下功能 根项目->网络内容->index.html

当我转到
http://localhost:8080/helloWorld/index.html
我发现以下错误:

description The requested resource (/helloWorld/index.html) is not available.
附件是my web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="3.0"
 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">
 <display-name>helloWorld</display-name>
 <context-param>
  <param-name>javax.ws.rs.Application</param-name>
  <param-value>com.test.helloWorld.webservices.MyhelloWorldApplication</param-value>
 </context-param>
 <listener>
  <listener-class>org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap</listener-class>
 </listener>
 <servlet>
  <servlet-name>Resteasy</servlet-name>
  <servlet-class>org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher</servlet-class>
 </servlet>
 <servlet-mapping>
  <servlet-name>Resteasy</servlet-name>
  <url-pattern>/*</url-pattern>
 </servlet-mapping>
 <context-param>
   <param-name>resteasy.scan</param-name>
   <param-value>true</param-value>
</context-param>
<context-param>
   <param-name>resteasy.servlet.mapping.prefix</param-name>
   <param-value>/</param-value>
</context-param>
 <welcome-file-list>
  <welcome-file>/www/index.html</welcome-file>
 </welcome-file-list>
</web-app>

地狱世界
javax.ws.rs.Application
com.test.helloWorld.webservices.myhelloworld应用程序
org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap
放松
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher
放松
/*
轻松扫描
真的
resteasy.servlet.mapping.prefix
/
/www/index.html

您将resteasy servlet映射到了
/*
。因此,如果您没有将JAX-RS控制器映射到
/index.html
,这是意料之中的