On Jun 17, 2009, at 3:21 PM, Jonathan Cook - FM&T wrote:
> Hello,
>
> I have this really strange problem where I run up my development
> environment and then go to a url. All the resources are registered
> eg):
> 17-Jun-2009 14:18:16 com.sun.ws.rest.api.core.PackagesResourceConfig
> init
> INFO: Root resource classes found:
> class
> com
> .bbc
> .newsi
> .feeds.sport.webservice.football.resources.FootballCompetitionResource
> class
> com
> .bbc
> .newsi
> .feeds
> .sport
> .webservice.football.resources.FootballIncludePathGeneratorResource
> class
> com
> .bbc
> .newsi.feeds.sport.webservice.football.resources.FootballMatchResource
> class
> com
> .bbc
> .newsi
> .feeds.sport.webservice.football.resources.FootballFixtureResource
> class
> com
> .bbc.newsi.feeds.sport.webservice.football.resources.FootballResource
> class
> com
> .bbc
> .newsi
> .feeds
> .sport.webservice.football.resources.FootballCompetitionListResource
> 17-Jun-2009 14:18:16 com.sun.ws.rest.api.core.PackagesResourceConfig
> init
> INFO: Provider classes found:
> class
> com
> .bbc
> .newsi.feeds.sport.webservice.providers.FreemarkerTemplateProcessor
>
> But then all the urls I go to return a 404 for some reason in the
> http header.
Anything else in the response?
> If I then restart everything sometimes it works and sometimes it
> doesn't. I appreciate this is probably a hard one to solve but there
> are no errors logged and I just wondered if anyone else had this
> problem at all.
>
What HTTP container are you using?
I have never observed this behavior. When you say "sometimes" is that
with the same deployed application running making multiple requests
where some requests fail and others do not ?
Are you making concurrent requests to the application?
You can add logging to the Jersey server as follows:
https://jersey.dev.java.net/nonav/apidocs/1.1.0-ea/jersey/com/sun/jersey/api/container/filter/LoggingFilter.html
then you can tell if requests are hitting the Jersey server or not?
Paul.