Hi Vikas,
What version of Jersey are you using, i could not find it defined in
the pom files of the attachment you sent?
What response status code are you receiving from the client? a 404 a
406 a 415?
What client are you using?
Is the client setting the content-type to application/xml and is the
client saying that application/xml is acceptable?
Can you add the following init params to the Jersey servlet in the
web.xml:
<init-param>
<param-
name>com.sun.jersey.spi.container.ContainerRequestFilters</param-name>
<param-
value>com.sun.jersey.api.container.filter.LoggingFilter</param-value>
</init-param>
<init-param>
<param-
name>com.sun.jersey.spi.container.ContainerResponseFilters</param-name>
<param-
value>com.sun.jersey.api.container.filter.LoggingFilter</param-value>
</init-param>
<init-param>
<param-name>com.sun.jersey.config.feature.Trace</param-name>
<param-value>true</param-value>
</init-param>
and then send me the log output from the server on deployment and when
you make a requests.
Paul.
On Aug 10, 2010, at 5:10 PM, Vikas Sukhwani wrote:
> Hi,
>
> I am trying to create a web service using JAX-RS but i am not able
> to hit the Resource when i am using
> @Consumes( { MediaType.APPLICATION_XML }).
>
> I am trying to get the xml request Unmarshalled using JAXB and
> getting the unmarshalled object directly at my method.
>
> @POST
> @Produces( { MediaType.APPLICATION_XML })
> @Consumes( { MediaType.APPLICATION_XML })
> @Path(value = CONTRACT_URL)
> public Response publishContract(@PathParam(VERSION) final String
> version, final JAXBElement<Contracts> contractsRequest) throws
> Exception {
>
> But the request is not at all reaching to my resource (Application
> layer).
>
> I tried to debug but the request is not reaching context resolver
> also.
>
> I am stuck at this point for a long time and not able to move further.
>
> Can you please help me with this issue
>
> Please find the code snippets attached:
>
> Any help will be appreciated.
>
> Thanks,
> Vikas
> <contractpublish-
> rest
> .zip
> >---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net