为restful Web服务配置web.xml

时间:2014-05-14 01:42:58

标签: android

我创建了宁静的网络服务和配置web.xml,这样我仍然得到了#34; HTTP状态404 - / RestWebServiceModel / rest / person"

输入状态报告

message / RestWebServiceModel / rest / person

说明请求的资源不可用。

xmlns="http://java.sun.com/xml/ns/javaee" 

xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">

RestWebServiceModel    

<servlet-name>RestWebServices</servlet-name>

<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>

<init-param>

    <param-name>com.sun.jersey.config.property.packages</param-name>

    <param-value>com.avilyne.rest.resource</param-value>

</init-param>

<load-on-startup>1</load-on-startup>

<servlet-name>RestWebServices</servlet-name>

<url-pattern>/rest/*</url-pattern>

0 个答案:

没有答案