RESTEasy Seam integration application HTTP Status 404 - Could not find resource for relative path of full path

随声附和 提交于 2021-01-28 10:31:27

问题


I am trying RestEasy in jboss seam build application. What i did so far is updated 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">

My Resource class is

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

    }


}

I put jaxrs-api-2.0.1.GA, jboss-seam-resteasy , resteasy-jaxrs-2.0.1.GA in lib folder of war. As per documentation i do't need anything else(in my opinion). But when i hit url. http://localhost:8080/seam/resource/rest/customer/customerId It gives me error

"HTTP Status 404 - Could not find resource for relative : /customer/customerId of full path: http://localhost:8080/seam/resource/rest/customer/customerId"

Can any one help me what i am doing wrong or what i am missing i am stuck at this point from 3 days. Thanks in advance.

来源:https://stackoverflow.com/questions/29846973/resteasy-seam-integration-application-http-status-404-could-not-find-resource

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!