title: Jersey on WL12c : Resources are found with jersey jars embedded in war, but not found when using WebLogic stack
body: <p>I have a webapp running JAX-RS web services using the Jersey implementation. The target app server is a WebLogic 12c whose default JAXRS implementation is Jersey v1.9.</p>
  
  <p>1) when run on Jetty (6.1.26) with jersey-server-1.9 dependency, everything is fine.</p>
  
  <p>2) when run on WebLogic 12c with jersey-core.jar + jersey-server.jar (v1.9) jars both embedded in the WEB-INF/lib of my war, it is also working.</p>
  
  <p>2) when run on WebLogic 12c with the same war amputed from these 2 jars (assuming there are not needed as already provided by the weblogic Java EE stack), it does NOT work anymore. I got the following error:</p>
  
  <p><em>"weblogic.application.ModuleException: [HTTP:101216]Servlet: "jersey-servlet" failed to preload on startup in Web application: "cachede-newgen.war".
  com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes.
      at com.sun.jersey.server.impl.application.RootResourceUriRules.(RootResourceUriRules.java:99)"</em></p>
  
  <p>Needless to say the Jersey version is <em>exactly</em> identical in all three cases:</p>
  
  <p>"Apr 24, 2013 4:10:24 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
  INFO: Initiating Jersey application, version 'Jersey: 1.9 09/02/2011 11:17 AM'"</p>
  
  <p>It sounds again (sight!) like a classpath or classloader issue :-(</p>
  
  <p>Any idea or workaround to solve this issue (taking accound that I do NOT want to repeat jersey jars in every deployed war) ?</p>