]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4157 downgrade to jetty 7.6 for compatibility with tomcat 6 (servlet 2.5)
authorSimon Brandhof <simon.brandhof@gmail.com>
Mon, 17 Jun 2013 20:16:05 +0000 (22:16 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Mon, 17 Jun 2013 20:16:05 +0000 (22:16 +0200)
pom.xml
sonar-batch/pom.xml
sonar-plugin-api/pom.xml
sonar-server/pom.xml
sonar-server/src/dev/web.xml
sonar-server/src/main/webapp/WEB-INF/web.xml
sonar-ws-client/pom.xml

diff --git a/pom.xml b/pom.xml
index 5fa6116e92ce82e9f1a4008396506abf48b7ec60..83257edf07704acf99e3e861fa30d4627b99910a 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -74,7 +74,7 @@
     <sonarJava.version>1.3-RC1</sonarJava.version>
     <sonarGwt.version>3.3.1</sonarGwt.version>
     <h2.version>1.3.167</h2.version>
-    <jetty.version>8.1.9.v20130131</jetty.version>
+    <jetty.version>7.6.11.v20130520</jetty.version>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     <maven.min.version>2.2.1</maven.min.version>
     <jdk.min.version>1.6</jdk.min.version>
       </dependency>
       <dependency>
         <groupId>javax.servlet</groupId>
-        <artifactId>javax.servlet-api</artifactId>
-        <version>3.0.1</version>
+        <artifactId>servlet-api</artifactId>
+        <version>2.5</version>
       </dependency>
       <dependency>
         <groupId>org.eclipse.jetty</groupId>
         <artifactId>jetty-server</artifactId>
         <version>${jetty.version}</version>
+        <exclusions>
+          <exclusion>
+            <groupId>org.eclipse.jetty.orbit</groupId>
+            <artifactId>javax.servlet</artifactId>
+          </exclusion>
+        </exclusions>
       </dependency>
       <dependency>
         <groupId>org.eclipse.jetty</groupId>
index ff132535d69bad0c654bd1ef701b2d701b61499e..14d96eb04b09f830ddf70786eaa87d7870baa1bb 100644 (file)
       <artifactId>jetty-server</artifactId>
       <scope>test</scope>
     </dependency>
+    <dependency>
+      <groupId>javax.servlet</groupId>
+      <artifactId>servlet-api</artifactId>
+      <scope>test</scope>
+    </dependency>
     <dependency>
       <groupId>org.skyscreamer</groupId>
       <artifactId>jsonassert</artifactId>
index 69529e7a48aa109d93539962c11789f9abdd81ed..4c175261a50de7afc50d815ef9584ea9c9d78e97 100644 (file)
     </dependency>
     <dependency>
       <groupId>javax.servlet</groupId>
-      <artifactId>javax.servlet-api</artifactId>
+      <artifactId>servlet-api</artifactId>
       <optional>true</optional>
     </dependency>
 
index ba963f5be3bbfe51d01ff8d91f9505db2bbc184f..07630f30bbdaa81d451c72d73456f6a3f9aefbd1 100644 (file)
     </dependency>
     <dependency>
       <groupId>javax.servlet</groupId>
-      <artifactId>javax.servlet-api</artifactId>
+      <artifactId>servlet-api</artifactId>
       <scope>provided</scope>
     </dependency>
     <dependency>
index fef16ea1aafc815f4ee76487ef407adf044204dc..601ccff04c58a3b6792119c2f0f0ac37c0089735 100644 (file)
@@ -1,8 +1,11 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<web-app 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"
-         version="2.4">
+<web-app
+  xmlns="http://java.sun.com/xml/ns/javaee"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+  metadata-complete="true"
+  version="2.5"
+>
 
   <display-name>Sonar</display-name>
 
index 2249a67997af64db4a83bc6a99003f47501a13ec..48e05712b440b07abaf747de656e090ee49e357a 100644 (file)
@@ -1,9 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<web-app xmlns="http://java.sun.com/xml/ns/javaee"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
-         metadata-complete="true"
-         version="3.0">
+<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
+xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
 
   <display-name>Sonar</display-name>
 
     <filter-name>RackFilter</filter-name>
     <filter-class>org.jruby.rack.RackFilter</filter-class>
   </filter>
+  <filter>
+    <!-- compatibility with servlet 2.5 containers like tomcat 6 -->
+    <filter-name>ContinuationFilter</filter-name>
+    <filter-class>org.eclipse.jetty.continuation.ContinuationFilter</filter-class>
+  </filter>
   <filter>
     <filter-name>GZIPFilter</filter-name>
     <filter-class>org.eclipse.jetty.servlets.GzipFilter</filter-class>
       <param-value>16384</param-value>
     </init-param>
   </filter>
+  <filter-mapping>
+    <filter-name>ContinuationFilter</filter-name>
+    <url-pattern>/*</url-pattern>
+  </filter-mapping>
   <filter-mapping>
     <filter-name>GZIPFilter</filter-name>
     <url-pattern>/*</url-pattern>
index eb61c38a516c5f6cbdcb22fa0f856a1e70cc6c89..5d09bdbb026cb93687817619477f825257f94b64 100644 (file)
@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
   <modelVersion>4.0.0</modelVersion>
   <parent>
     <groupId>org.codehaus.sonar</groupId>
       <artifactId>junit</artifactId>
       <scope>test</scope>
     </dependency>
+    <dependency>
+      <groupId>javax.servlet</groupId>
+      <artifactId>servlet-api</artifactId>
+      <scope>test</scope>
+    </dependency>
     <dependency>
       <groupId>org.hamcrest</groupId>
       <artifactId>hamcrest-all</artifactId>