users@jersey.java.net

Re: ERROR [STDERR] Sep 30, 2008 11:16:29 AM com.sun.jersey.api.core.ClasspathResourceConfig init

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 30 Sep 2008 16:51:23 +0100

Hi Marcel,

I am moving this over to the Jersey users list as the issues list is
meant only for emails resulting from updating issues using the issue
tracker.

What you observe are logging messages from JDK logging, at the level
of INFO. I am guessing that when something is written out to the std
error stream the JBoss app server is prefixing a constant string
"ERROR [STDERR] to that output". So there is actually no error in this
case, the information is meant to be informative.

Glassfish prefixes quite a bit of other stuff in the raw logs, for
example:

[#|2008-09-23T13:19:31.425+0200|INFO|sun-appserver9.1|
com.sun.jersey.api.core.PackagesResourceConfig|
_ThreadID=15;_ThreadName=httpWorkerThread-4848-1;|Scanning for root
resource and provider classes in the packages:
   com.sun.jersey.samples.helloworld.resources|#]

[#|2008-09-23T13:19:31.454+0200|INFO|sun-appserver9.1|
com.sun.jersey.api.core.PackagesResourceConfig|
_ThreadID=15;_ThreadName=httpWorkerThread-4848-1;|Root resource
classes found:
   class
com.sun.jersey.samples.helloworld.resources.HelloWorldResource|#]

[#|2008-09-23T13:19:31.454+0200|INFO|sun-appserver9.1|
com.sun.jersey.api.core.PackagesResourceConfig|
_ThreadID=15;_ThreadName=httpWorkerThread-4848-1;|Provider classes
found:|#]

Paul.

On Sep 30, 2008, at 4:31 PM, Marcel Thibault (Novell) wrote:

> Hello,
>
> What would be causing this error to appear in my JBoss server log?
>
> The application is working fine. Just curious as to what this
> message might mean.
>
> Running Jersey in a JBoss 4.2.2 environment using JDK 1.6
>
> 11:16:29,146 INFO [TomcatDeployer] deploy, ctxPath=/RIS, warUrl=.../
> deploy/RIS.war/
> 11:16:29,613 ERROR [STDERR] Sep 30, 2008 11:16:29 AM
> com.sun.jersey.api.core.ClasspathResourceConfig init
> INFO: Scanning for root resource and provider classes in the paths:
> /home/ThirdParty/jboss-4.2.2.GA/server/default/./deploy/RIS.war/
> WEB-INF/lib
> /home/ThirdParty/jboss-4.2.2.GA/server/default/./deploy/RIS.war/
> WEB-INF/classes
> 11:16:31,449 ERROR [STDERR] Sep 30, 2008 11:16:31 AM
> com.sun.jersey.api.core.ClasspathResourceConfig init
> INFO: Root resource classes found:
> class com.novell.ris.spi.impl.Root
> 11:16:31,450 ERROR [STDERR] Sep 30, 2008 11:16:31 AM
> com.sun.jersey.api.core.ClasspathResourceConfig init
> INFO: Provider classes found:
>
> Thanks,
>
> Marcel Thibault