users@jersey.java.net

[Jersey] Re: Jersey not working with WLS 10.3.4 but works under 10.3

From: Yu, Xiaohui <Xiaohui.Yu_at_ONSTAR.com>
Date: Fri, 11 Feb 2011 15:15:32 -0500

I switched to Jersey 1.5 - the bundled jar, now I'm getting (No provider classes found):

Feb 11, 2011 3:08:51 PM com.sun.jersey.api.core.ScanningResourceConfig init
INFO: No provider classes found.
Feb 11, 2011 3:08:52 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.5 01/14/2011 12:44 PM'
Feb 11, 2011 3:08:53 PM com.sun.jersey.spi.inject.Errors processErrorMessages
SEVERE: The following errors and warnings have been detected with resource and/or provider classes:
  SEVERE: Missing dependency for field: private javax.ws.rs.core.Context com.onstar.asd.partnerservices.webservices.impl.AuthenticationServicesImpl.wsContext

I'm still researching, but certainly would appreciate if anyone knows about this.

- John

-----Original Message-----
From: Yu, Xiaohui [mailto:Xiaohui.Yu_at_onstar.com]
Sent: Thu 2/10/2011 3:40 PM
To: users_at_jersey.java.net
Subject: [Jersey] Jersey not working with WLS 10.3.4 but works under 10.3
 
Hi,

Our application is using both Jersey and JAX-WS. We also used Spring for DI. When invoked under REST protocol, it works under WLS 10.3 as Spring DI happened. However, when deployed under WLS 10.3.4, neither Spring DI or @Context kicked in, thus service fails. JAX-WS works under both server environments.

For Jersey, we used PackageResourceConfig and I did see all services being identified.

Feb 10, 2011 2:31:57 PM com.sun.jersey.api.core.PackagesResourceConfig init
INFO: Provider classes found:
Feb 10, 2011 2:31:57 PM com.sun.jersey.server.impl.application.WebApplicationImpl initiate
INFO: Initiating Jersey application, version 'Jersey: 1.1.2-ea 08/25/2009 04:39 PM'

What could be the problem? Really appreciate the clarification.

Thanks,
- John