Sorry guys, I did not see that there's a users mailing list before sending you this email.
I will send a new email to users mailing list.
From: karim2bib_at_hotmail.com
To: dev_at_jersey.dev.java.net
Date: Fri, 3 Apr 2009 11:30:07 -0400
Subject: [Jersey] Deploy Jersey App on Weblogic 10.x
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
Messenger vous offre des tonnes de nouvelles fonctions qui rendent le clavardage encore plus plaisant Cliquez ici pour en savoir plus.
_________________________________________________________________
Internet Explorer 8 améliore la recherche d’info.
http://go.microsoft.com/?linkid=9655576