title: I am deploying a restFull webservice webapp on weblogic 12.2.1.2 and It is failing
body: <p>Hi I am having one restfull webservice which is getting deployed prior to version <code>weblogic 12.2.1.2</code> but on <code>weblogic 12.2.1.2</code> it is not getting deployed. and throws the below error:</p>
  
  <pre><code>&lt;Oct 11, 2017, 8:16:22,462 PM IST&gt; &lt;Warning&gt; &lt;Munger&gt; &lt;BEA-2156203&gt; &lt;A version attribute was not found in element "web-app" in the deployment descriptor /u01/xxx/xxxx/webapps/xx/WEB-INF/web.xml. A version attribute is required, but this version of the WebLogic Server will assume that the latest version is used. Future versions of WebLogic Server will reject descriptors that do not specify the Java EE version. To eliminate this warning, add an appropriate "version=" to element "web-app" in the deployment descriptor.&gt;
  &lt;Oct 11, 2017, 8:16:22,620 PM IST&gt; &lt;Warning&gt; &lt;JAXRSIntegration&gt; &lt;BEA-2192510&gt; &lt;Cannot add Jersey servlet for application class com.xxx.xx.xx.xxx.JerseyConfig because ApplicationPath annotation is not set on it.&gt;
  &lt;Oct 11, 2017, 8:16:22,621 PM IST&gt; &lt;Warning&gt; &lt;JAXRSIntegration&gt; &lt;BEA-2192510&gt; &lt;Cannot add Jersey servlet for application class org.glassfish.jersey.server.ResourceConfig because ApplicationPath annotation is not set on it.&gt;
  &lt;Oct 11, 2017, 8:16:22,624 PM IST&gt; &lt;Warning&gt; &lt;JAXRSIntegration&gt; &lt;BEA-2192510&gt; &lt;Cannot add Jersey servlet for application class org.glassfish.jersey.server.ResourceConfig$WrappingResourceConfig because ApplicationPath annotation is not set on it.&gt;
  &lt;Oct 11, 2017, 8:16:22,624 PM IST&gt; &lt;Warning&gt; &lt;JAXRSIntegration&gt; &lt;BEA-2192510&gt; &lt;Cannot add Jersey servlet for application class org.glassfish.jersey.server.ResourceConfig$RuntimeConfig because ApplicationPath annotation is not set on it.&gt;
  &lt;Oct 11, 2017, 8:21:37,36 PM IST&gt; &lt;Error&gt; &lt;org.glassfish.jersey.server.spring.SpringComponentProvider&gt; &lt;BEA-000000&gt; &lt;[failed to localize] none.or.multiple.beans.available(class com.xxx.xx.xx.JerseyConfig)&gt;
  </code></pre>
  
  <p>I have tried with the <code>version</code> attribute in <code>web.xml</code> but didn't work. and thrown the same error.</p>
  
  <p>Env. Details: </p>
  
  <pre><code>Java-1.7 &amp; 1.8
  weblogic-12.2.1.2
  Servlet-api-2.4
  </code></pre>
  
  <p>Any help would be appreciated..</p>
  
  <p>Update: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"&gt;
  
  
      &lt;display-name&gt;xxx&lt;/display-name&gt;
      &lt;context-param&gt;
          &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
          &lt;param-value&gt;WEB-INF/applicationContext.xml
              WEB-INF/classes/configs/*.xml
          &lt;/param-value&gt;
      &lt;/context-param&gt;
      &lt;!--&lt;context-param&gt;
          &lt;param-name&gt;contextClass&lt;/param-name&gt;
          &lt;param-value&gt;com.javaetmoi.core.spring.JBoss5XmlWebApplicationContext&lt;/param-value&gt;
      &lt;/context-param&gt;--&gt; 
      &lt;listener&gt;
          &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener
          &lt;/listener-class&gt;
      &lt;/listener&gt;
      &lt;servlet&gt;
          &lt;servlet-name&gt;jerseyServlet&lt;/servlet-name&gt;
          &lt;servlet-class&gt;org.glassfish.jersey.servlet.ServletContainer
          &lt;/servlet-class&gt;
          &lt;init-param&gt;
              &lt;param-name&gt;javax.ws.rs.Application&lt;/param-name&gt;
              &lt;param-value&gt;com.xx.xx.xx.JerseyConfig&lt;/param-value&gt;
          &lt;/init-param&gt;
          &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
      &lt;/servlet&gt;
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;jerseyServlet&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  
      &lt;context-param&gt;
          &lt;param-name&gt;localFilesBasePath&lt;/param-name&gt;
          &lt;param-value&gt;configs&lt;/param-value&gt;
      &lt;/context-param&gt;
      &lt;context-param&gt;
          &lt;param-name&gt;resteasy.scan&lt;/param-name&gt;
          &lt;param-value&gt;false&lt;/param-value&gt;
      &lt;/context-param&gt;
      &lt;context-param&gt;
          &lt;param-name&gt;resteasy.scan.providers&lt;/param-name&gt;
          &lt;param-value&gt;false&lt;/param-value&gt;
      &lt;/context-param&gt;
      &lt;context-param&gt;
          &lt;param-name&gt;resteasy.scan.resources&lt;/param-name&gt;
          &lt;param-value&gt;false&lt;/param-value&gt;
      &lt;/context-param&gt;
      &lt;resource-ref&gt;
          &lt;res-ref-name&gt;jdbc/xxx&lt;/res-ref-name&gt;
          &lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;
          &lt;res-auth&gt;Container&lt;/res-auth&gt;
      &lt;/resource-ref&gt;
  
      &lt;resource-ref&gt;
          &lt;res-ref-name&gt;jdbc/xxx&lt;/res-ref-name&gt;
          &lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;
          &lt;res-auth&gt;Container&lt;/res-auth&gt;
      &lt;/resource-ref&gt;
  
  &lt;/web-app&gt;
  </code></pre>