users@jersey.java.net

Re: [Jersey] 404's returned

From: Conrad <cahofmeyr_at_gmail.com>
Date: Tue, 30 Jun 2009 17:56:09 -0700 (PDT)

I forgot to add, I'm new to doing enterprise Java web development and I
don't understand how to configure more detailed logging. Any help would be
appreciated.


Paul Sandoz wrote:
>
>
> 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.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>
>

-- 
View this message in context: http://n2.nabble.com/404%27s-returned-tp3092806p3186302.html
Sent from the Jersey mailing list archive at Nabble.com.