users@glassfish.java.net

HELP - ResourceConfig does not contain any root resource classes

From: Johnny Tolliver <jxt_at_ornl.gov>
Date: Wed, 23 Apr 2008 10:00:56 -0400 (EDT)

I'm running GlassFish V2ur2 along with NetBeans 6.1RC2 on Mac OS X (Tiger).
I know this sounds strange, but last night, everything was fine. This
morning I added two lines of code (since removed) and tried to run again.
Now I consistently get failures starting up my web app. The relevant error
appears to be "The ResourceConfig instance does not contain any root
resource classes." Excerpts from the log file appear below (some sections
redacted for brevity). I *honestly* believe that I changed NOTHING else.

What could be going wrong here? I've restarted NetBeans, restarted
GlassFish, restarted Mac OS X, cleaned and rebuilt the project in NetBeans,
everything I could think of. Many thanks for any hints.

Johnny S. Tolliver
Oak Ridge National Laboratory
tolliverjs_at_ornl.gov, 865-574-1305

logfile:
-----------------------------------------------------------------------------
...
Application server startup complete.
deployed with moduleid = SpediaAuthService
NAM0006: JMS Destination object not found: com.sun.ws.rest.impl.container.servlet.JSPTemplateProcessor/servletContext
javax.naming.NameNotFoundException
javax.naming.NameNotFoundException
        at com.sun.enterprise.naming.TransientContext.resolveContext(TransientContext.java:268)
        at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:191)
        ...

Scanning for root resource and provider classes in the paths:
  /Users/jxt/jxtNetBeans/SpediaAuthService/build/web/WEB-INF/lib
  /Users/jxt/jxtNetBeans/SpediaAuthService/build/web/WEB-INF/classes
The ResourceConfig instance does not contain any root resource classes.
WebModule[/SpediaAuthService]StandardWrapper.Throwable
com.sun.ws.rest.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes.
        at com.sun.ws.rest.impl.application.WebApplicationImpl.processRootResources(WebApplicationImpl.java:404)
        at com.sun.ws.rest.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:329)
        ...
        at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116)
WebModule[/SpediaAuthService]PWC1396: Servlet /SpediaAuthService threw load() exception
com.sun.ws.rest.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes.
        at com.sun.ws.rest.impl.application.WebApplicationImpl.processRootResources(WebApplicationImpl.java:404)
        at com.sun.ws.rest.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:329)
        ...
ContainerBase.addChild: start:
LifecycleException: com.sun.ws.rest.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes.
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4818)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:5196)
        ...
WEB0123: WebModule [SpediaAuthService] failed to deploy and has been disabled
java.lang.IllegalStateException: ContainerBase.addChild: start: LifecycleException: com.sun.ws.rest.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes.
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:976)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:957)
        ...
com.sun.enterprise.admin.event.AdminEventListenerException: ContainerBase.addChild: start: LifecycleException: com.sun.ws.rest.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes.
        at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:188)
        at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:278)
        ...
Caused by: java.lang.IllegalStateException: ContainerBase.addChild: start: LifecycleException: com.sun.ws.rest.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes.
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:976)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:957)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:688)
        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1584)
        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1222)
        at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:182)
        ... 69 more
ADM5603:Event listener error [ContainerBase.addChild: start: LifecycleException: com.sun.ws.rest.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes.]
ADM1075:Error on listening event:[ContainerBase.addChild: start: LifecycleException: com.sun.ws.rest.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes.]