diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2013-06-17 22:16:05 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2013-06-17 22:17:01 +0200 |
commit | 679442ce184e6e39d34e45b6915d0b645546e980 (patch) | |
tree | ee62e125ecb366204f9fcf1e94de5ef611ec6576 | |
parent | 7f223beb5157d2baf1be643943c18cd86caee6ba (diff) | |
download | sonarqube-679442ce184e6e39d34e45b6915d0b645546e980.tar.gz sonarqube-679442ce184e6e39d34e45b6915d0b645546e980.zip |
SONAR-4157 downgrade to jetty 7.6 for compatibility with tomcat 6 (servlet 2.5)
-rw-r--r-- | pom.xml | 12 | ||||
-rw-r--r-- | sonar-batch/pom.xml | 5 | ||||
-rw-r--r-- | sonar-plugin-api/pom.xml | 2 | ||||
-rw-r--r-- | sonar-server/pom.xml | 2 | ||||
-rw-r--r-- | sonar-server/src/dev/web.xml | 11 | ||||
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/web.xml | 17 | ||||
-rw-r--r-- | sonar-ws-client/pom.xml | 5 |
7 files changed, 40 insertions, 14 deletions
@@ -74,7 +74,7 @@ <sonarJava.version>1.3-SNAPSHOT</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> @@ -967,13 +967,19 @@ </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> diff --git a/sonar-batch/pom.xml b/sonar-batch/pom.xml index ce61a0cabbd..ece068c843c 100644 --- a/sonar-batch/pom.xml +++ b/sonar-batch/pom.xml @@ -94,6 +94,11 @@ <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> <scope>test</scope> diff --git a/sonar-plugin-api/pom.xml b/sonar-plugin-api/pom.xml index d277b7cee28..24b72034824 100644 --- a/sonar-plugin-api/pom.xml +++ b/sonar-plugin-api/pom.xml @@ -127,7 +127,7 @@ </dependency> <dependency> <groupId>javax.servlet</groupId> - <artifactId>javax.servlet-api</artifactId> + <artifactId>servlet-api</artifactId> <optional>true</optional> </dependency> diff --git a/sonar-server/pom.xml b/sonar-server/pom.xml index 6d2597fd7f6..a03dbb31234 100644 --- a/sonar-server/pom.xml +++ b/sonar-server/pom.xml @@ -111,7 +111,7 @@ </dependency> <dependency> <groupId>javax.servlet</groupId> - <artifactId>javax.servlet-api</artifactId> + <artifactId>servlet-api</artifactId> <scope>provided</scope> </dependency> <dependency> diff --git a/sonar-server/src/dev/web.xml b/sonar-server/src/dev/web.xml index fef16ea1aaf..601ccff04c5 100644 --- a/sonar-server/src/dev/web.xml +++ b/sonar-server/src/dev/web.xml @@ -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> diff --git a/sonar-server/src/main/webapp/WEB-INF/web.xml b/sonar-server/src/main/webapp/WEB-INF/web.xml index 2249a67997a..48e05712b44 100644 --- a/sonar-server/src/main/webapp/WEB-INF/web.xml +++ b/sonar-server/src/main/webapp/WEB-INF/web.xml @@ -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> @@ -49,6 +47,11 @@ <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> <init-param> @@ -61,6 +64,10 @@ </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> </filter-mapping> diff --git a/sonar-ws-client/pom.xml b/sonar-ws-client/pom.xml index 7b9135ea8e7..5a601b5e32c 100644 --- a/sonar-ws-client/pom.xml +++ b/sonar-ws-client/pom.xml @@ -52,6 +52,11 @@ <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> <scope>test</scope> |