Hi,
Can you send your web.xml?
Does your web.xml contain any initialization parameters to configure
Jersey?
I want to ascertain if you are configuring class scanning or package
scanning to find root resource classes, the INFO logging should tell
if you classes or packages are being scanned.
If you are using the former then there should not be any Jersey
related initialization parameters related to root resource
configuration in the web.xml.
The former does not currently work on WebLogic. There is a way, thanks
to investigations by Gerard, see issue 32:
https://jersey.dev.java.net/issues/show_bug.cgi?id=32
but we need to implement the fix in a way that abstracts servlet
details from the scanning details.
So if you are using class scanning i recommend switching to package
scanning:
https://jersey.dev.java.net/documentation/1.1.1-ea/user-
guide.html#d4e115
Paul.
On Aug 14, 2009, at 12:51 AM, Tim Clotworthy wrote:
> Hi. I am getting the following exception when deploying my jersey-
> based web app to WL10.3:
>
> SEVERE: failed to localize no.root.res.in.res.cfg()
> <Aug 13, 2009 4:02:10 PM EDT> <Error> <HTTP> <BEA-101216> <Servlet:
> "JAX-RS REST Servlet" failed to preload on startup in Web
> application: "NTM_REST".
> com.sun.jersey.api.container.ContainerException: failed to localize
> no.root.res.in.res.cfg()
> at
> com
> .sun
> .jersey
> .server
> .impl
> .application
> .WebApplicationImpl.processRootResources(WebApplicationImpl.java:718)
> at
> com
> .sun
> .jersey
> .server
> .impl
> .application.WebApplicationImpl.initiate(WebApplicationImpl.java:590)
> at
> com
> .sun
> .jersey
> .server
> .impl
> .application.WebApplicationImpl.initiate(WebApplicationImpl.java:383)
> at
> com
> .sun
> .jersey
> .spi
> .container.servlet.ServletContainer.initiate(ServletContainer.java:
> 377)
> at com.sun.jersey.spi.container.servlet.ServletContainer
> $InternalWebComponent.initiate(ServletContainer.java:242)
> Truncated. see log file for complete stacktrace
>
> I am uncertain how to proceed at this point. Any help would be
> greatly appreciated. Thanks