dev@jersey.java.net

Deploy Jersey App on Weblogic 10.x

From: karim Daher <karim2bib_at_hotmail.com>
Date: Fri, 3 Apr 2009 11:30:07 -0400

Hi
I am new to Restful web service and jersey. I created an application that was working fine at the beginning, because I was deploying it on Tomcat, but now I need to integrate my small application in the main one, and deploy everything on Weblogic 10.3.

So at the beginning I was receiving the following exception:
javax.servlet.ServletException: The default deployment configuration that scans for classes in /WEB-INF/lib and /WEB-INF/classe
s is not supported for the application server.Try using the package scanning configuration, see the JavaDoc for com.sun.jersey.
api.core.PackagesResourceConfig and the property com.sun.jersey.config.property.packages.

This was fixed by adding the following code.<web-app>
    <servlet>
        <servlet-name>Jersey Web Application</servlet-name>
        <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
        <init-param>
            <param-name>com.sun.jersey.config.property.packages</param-name>
            <param-value>org.foo.rest;org.bar.rest</param-value>
        </init-param>
    </servlet>

And now I am receiving a new exception:

<Apr 3, 2009 11:24:07 AM EDT> <Error> <HTTP> <BEA-101216> <Servlet: "com.sun.xml.ws.transport.tcp.servicechannel.ServiceChanne
WSImpl" failed to preload on startup in Web application: "evm.war".
java.lang.AbstractMethodError
        at com.sun.xml.ws.policy.jaxws.WSDLPolicyMapWrapper.configureModel(WSDLPolicyMapWrapper.java:167)
        at com.sun.xml.ws.policy.jaxws.PolicyWSDLParserExtension.postFinished(PolicyWSDLParserExtension.java:1274)
        at com.sun.xml.ws.wsdl.parser.DelegatingParserExtension.postFinished(DelegatingParserExtension.java:187)
        at com.sun.xml.ws.wsdl.parser.WSDLParserExtensionFacade.postFinished(WSDLParserExtensionFacade.java:334)
        at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:230)
        Truncated. see log file for complete stacktrace

Can any one help me to understand or solve this issue ?

PS: I deployed the same application on Websphere 7 and it was working without any problem, at deployment time. Unfortunately I could not go further to test all test cases.

Thank you

_________________________________________________________________
Clavardez avec tout le groupe et rassemblez-les.
http://go.microsoft.com/?linkid=9650742