RESTEasy Seam集成应用程序HTTP状态404 - 无法找到完整路径的相对路径的资源

时间:2015-04-24 11:58:24

标签: java java-ee jboss seam resteasy

我在jboss seam构建应用程序中尝试RestEasy。到目前为止我做了什么 更新了components.xml

 <components xmlns:resteasy="http://jboss.org/schema/seam/resteasy"
             xsi:schemaLocation=
             http://jboss.org/schema/seam/resteasy
             http://jboss.org/schema/seam/resteasy-2.3.xsd
             http://jboss.org/schema/seam/components
             http://jboss.org/schema/seam/components-2.3.xsd">

我的资源类是

@Path("/customer")
@Name("customer")
@Scope(ScopeType.SESSION)
public class HelloWorldRestEasy
{
    @Path("/customerId")
    @GET
    public void getCustomer() {
        System.out.println("I am in hello world");

    }


}

我把jaxrs-api-2.0.1.GA,jboss-seam-resteasy,resteasy-jaxrs-2.0.1.GA放在了战争的lib文件夹中。根据文件,我不需要任何其他东西(在我看来)。 但是当我打到网址时。 http://localhost:8080/seam/resource/rest/customer/customerId 它给了我错误

“HTTP状态404 - 无法找到相对的资源:/ customer / customerId of full path:http://localhost:8080/seam/resource/rest/customer/customerId

任何人都能帮助我,我做错了什么或我错过了什么,我从3天开始就陷入困境。提前谢谢。

0 个答案:

没有答案
相关问题