Hi Sergey,
I have uploaded it. I can see a link samplewar.zip in the earlier post.
Are you not able to see the link?
Thanks & Regards,
Yong-Loh
Sergey Beryozkin-2 wrote:
>
> Where is the link to the uploaded war ?
>
> thanks, Sergey
>
>>
>> Hi Sergey,
>>
>> We are using the CXF latest version..i.e 2.2.6.
>>
>> I have uploaded the sample war(Just need to add the required jar files in
>> the lib folder to make it work).
>>
>> I have a resource class with two GET methods(one with the path /content
>> and
>> the other with /detail).
>>
>> The one with /content is working fine and for the other, its giving me a
>> warning.. No operation matching request path /detail/ is found
>>
>> I have just put some log statements inside resource methods just to see
>> whether the mapped method is being called.
>>
>> Please let me know if you need more info or if you have not got the
>> attachment.
>>
>> Thanks & Regards,
>> Yong-Loh
>>
>>
>> Sergey Beryozkin-2 wrote:
>>>
>>> Hi
>>>
>>> There's no need to upload the complete war application. Please create a
>>> test war which will include :
>>>
>>>
>>> WEB-INF/web.xml
>>> WEB-INF/beans.xml
>>> WEB-INF/classes/Content class (empty class will do, just add the
>>> annotations there if any which are actually used)
>>> WEB-INF/classes/ContentProcess interface class
>>> WEB-INF/classes/ContentProcess impl class
>>>
>>> No need to include CXF libs, etc
>>>
>>> cheers, Sergey
>>>
>>>
>>>>
>>>> Hi Sergey,
>>>>
>>>> I am not able to upload the war file(its of 9MB). It says file is too
>>>> large.
>>>>
>>>> How do I attach it to JIRA?
>>>>
>>>> Thanks & Regards,
>>>> Yong-Loh
>>>>
>>>> Sergey Beryozkin-2 wrote:
>>>>>
>>>>> Hi
>>>>>
>>>>> What CXF version you're using ? The reason why this method is not
>>>>> selected
>>>>> should've been logged (definitely starting from 2.2.5),
>>>>> can you set a log level to DEBUG and see what is going on.
>>>>>
>>>>> I feel there's some important detail which is missing. I do not see
>>>>> any
>>>>> reason why @Path("/detail/") is not matched. It does not
>>>>> matter if a request uri includes query parameters or not.
>>>>>
>>>>> Can you please create a war and attach it to the JIRA ?
>>>>>
>>>>> thanks, Sergey
>>>>>
>>>>> ----- Original Message -----
>>>>> From: "Yong-Loh" <[email protected]>
>>>>> To: <[email protected]>
>>>>> Sent: Thursday, January 28, 2010 4:14 AM
>>>>> Subject: CXF with JAX-RS : No operation matching request path /detail/
>>>>> is
>>>>> found
>>>>>
>>>>>
>>>>>>
>>>>>> Hi All,
>>>>>>
>>>>>> We are using CXF with JAX-RS for building RESTful webservices. Below
>>>>>> is
>>>>>> our
>>>>>> resource interface.
>>>>>>
>>>>>> @Path("/")
>>>>>> public interface ContentProcess {
>>>>>>
>>>>>> @GET
>>>>>> @Path("/content/")
>>>>>> @Produces("application/xml")
>>>>>> public Content getContent(@QueryParam("address") String address);
>>>>>>
>>>>>>
>>>>>> @GET
>>>>>> @Path("/detail/")
>>>>>> @Produces("application/xml")
>>>>>> public Content getLocalDetail(@QueryParam("address") String
>>>>>> address,
>>>>>> @QueryParam("region") String region,
>>>>>> @QueryParam("effectiveDate") String effectiveDate);
>>>>>> }
>>>>>>
>>>>>> And below is our beans.xml where we configured our service.
>>>>>>
>>>>>> <jaxrs:server id="contentProcessService" address="/">
>>>>>> <jaxrs:serviceBeans>
>>>>>> <ref bean="contentProcessBean" />
>>>>>> </jaxrs:serviceBeans>
>>>>>> <jaxrs:providers>
>>>>>> <bean
>>>>>> class="org.apache.cxf.jaxrs.provider.XMLBeansElementProvider"
>>>>>> />
>>>>>> </jaxrs:providers>
>>>>>> </jaxrs:server>
>>>>>>
>>>>>> <bean id="contentProcessBean"
>>>>>> class="com.endpoint.impl.ContentProcessImpl">
>>>>>> <property name="contentService" ref="contentService" />
>>>>>> <property name="cache" ref="cache" />
>>>>>> </bean>
>>>>>>
>>>>>> We use Tomcat as the container. After deploying the war, when I try
>>>>>> to
>>>>>> hit
>>>>>> the URL from the browser(http://localhost:8080/ServiceLayer/detail/),
>>>>>> its
>>>>>> giving the below warning.
>>>>>>
>>>>>> WARNING: .No operation matching request path /detail/ is found, HTTP
>>>>>> Method
>>>>>> :
>>>>>> GET, ContentType : */*, Accept :
>>>>>> image/gif,image/x-xbitmap,image/jpeg,image/pjpe
>>>>>> g,application/vnd.ms-excel,application/vnd.ms-powerpoint,application/msword,appl
>>>>>> ication/xaml+xml,application/vnd.ms-xpsdocument,application/x-ms-xbap,applicatio
>>>>>> n/x-ms-application,application/x-shockwave-flash,*/*,.
>>>>>> Jan 28, 2010 9:15:19 AM
>>>>>> org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper
>>>>>> toResponse
>>>>>> WARNING: WebApplicationException has been caught : no cause is
>>>>>> available
>>>>>>
>>>>>> Your inputs in resolving this issue would be of great help.
>>>>>>
>>>>>> Thanks & Regards,
>>>>>> Yong-Loh
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://old.nabble.com/CXF-with-JAX-RS-%3A-No-operation-matching-request-path--detail--is-found-tp27350904p27350904.html
>>>>>> Sent from the cxf-user mailing list archive at Nabble.com.
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://old.nabble.com/CXF-with-JAX-RS-%3A-No-operation-matching-request-path--detail--is-found-tp27350904p27354782.html
>>>> Sent from the cxf-user mailing list archive at Nabble.com.
>>>>
>>>
>>>
>>>
>> http://old.nabble.com/file/p27354964/samplewar.zip samplewar.zip
>> http://old.nabble.com/file/p27354964/samplewar.zip samplewar.zip
>> http://old.nabble.com/file/p27354964/samplewar.zip samplewar.zip
>> --
>> View this message in context:
>> http://old.nabble.com/CXF-with-JAX-RS-%3A-No-operation-matching-request-path--detail--is-found-tp27350904p27354964.html
>> Sent from the cxf-user mailing list archive at Nabble.com.
>>
>
>
>
http://old.nabble.com/file/p27355149/samplewar.zip samplewar.zip
--
View this message in context:
http://old.nabble.com/CXF-with-JAX-RS-%3A-No-operation-matching-request-path--detail--is-found-tp27350904p27355149.html
Sent from the cxf-user mailing list archive at Nabble.com.