Hi. I am getting the following exception when deploying my jersey-based web app to WL10.3:
SEVERE: failed to
I am uncertain how to proceed at this point. Any help would be greatly appreciated. Thanks
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:
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:
On Aug 14, 2009, at 12:51 AM, Tim Clotworthy wrote:
I agree. i am running on weblogic 10.3 and i had to do a couple of things to make it work(from tomcat)
1. make sure that the web.xml was correct by checking it with altova xml spy. I had package scanning itself so didnt have to do it . When you bring up the server you should see something like this
INFO: Scanning for root resource and provider classes in the packages:
<<Your package that you have specified in web.xml>>
Aug 17, 2009 5:12:27 PM com.sun.jersey.api.core.PackagesResourceConfig init
INFO: Root resource classes found:
<<Resources that it has found>>
2. for some reason i couldnt get the eclipse publishing to work , so i had to export my war file onto the weblogic poll directory which is at $domain/autodeploy .
Here are some parts of my web.xml which i had to change a little from when it was deployed to Tomcat(apparently tomcat is not so strict )
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.5"
<param-value>$Your Package for the resources something like com.blah.blah</param-value>
On Fri, Aug 14, 2009 at 1:33 AM, Paul Sandoz <[hidden email]> wrote:
|Powered by Nabble||Edit this page|