users@jersey.java.net

RE: [Jersey] Websphere 6.1 integration

From: VINCENT Matthieu (Prestataire) <"VINCENT>
Date: Thu, 4 Feb 2010 10:41:54 +0100

Hi Paul,

Thanks for this quick answer :)

Attached are:
* Log file when deploying application
* Log file when websphere starts
(sorry there're in french)

The context path should be ok because I've another servlet running on this web-app and I can call it without any problem unless websphere may have several?

I think it may be a configuration problem... I saw yesterday an article explaining that a fix was needed to make it work (actually, I'm running websphere on version 6.1.0.9 whereas article tells to update to 6.1.0.25) but as it's a critical application I would be rather sure that this is compulsory before doing it.

Thanks for your return

PS: I added my colleague in copy of this mail because he's interested in the subject too ;)

Matthieu

-----Message d'origine-----
De : Paul.Sandoz_at_Sun.COM [mailto:Paul.Sandoz_at_Sun.COM]
Envoyé : jeudi 4 février 2010 10:07
À : users_at_jersey.dev.java.net
Cc : VINCENT Matthieu (Prestataire)
Objet : Re: [Jersey] Websphere 6.1 integration

Hi Matthieu,

Can you send the log output from WebSphere when you deploy the Jersey-
base web application?

Also you might want to double check the context path that WebSphere
uses when deploying the web application as it might be different to
that when deployed by GlassFish v2.

Paul.

On Feb 3, 2010, at 3:24 PM, VINCENT Matthieu (Prestataire) wrote:

> Hi,
>
> I'm actually developing a web application using services REST with
> Jersey.
> When I deploy my application on Glassfish (v2), I've no problem to
> communicate between my 2 parts.
> Problems come when trying on Websphere 6_1, I receive a 404 error
> when calling my service.
>
> com.sun.jersey.api.client.UniformInterfaceException: POST http://localhost:9780/xxx/service/
> returned a response status of 404
> at
> com.sun.jersey.api.client.WebResource.handle(WebResource.java:562)
> at com.sun.jersey.api.client.WebResource.access
> $300(WebResource.java:68)
> at com.sun.jersey.api.client.WebResource
> $Builder.post(WebResource.java:498)
>
> So I'm looking for any feedback on jersey integration and deployment
> on a Websphere server.
>
> Thanks in advance
>
> Matthieu
> Java/J2EE Consultant