]> source.dussan.org Git - sonarqube.git/commitdiff
Prepare upgrades of JRuby/Rails by upgrading to servlet 3.0
authorSimon Brandhof <simon.brandhof@gmail.com>
Wed, 11 Sep 2013 22:52:06 +0000 (00:52 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Wed, 11 Sep 2013 22:52:06 +0000 (00:52 +0200)
pom.xml
sonar-application/pom.xml
sonar-application/src/main/assembly/conf/wrapper.conf
sonar-batch/pom.xml
sonar-plugin-api/pom.xml
sonar-server/pom.xml
sonar-server/src/dev/web.xml
sonar-server/src/dev/webdefault.xml
sonar-server/src/main/webapp/WEB-INF/jetty-web.xml [deleted file]
sonar-server/src/main/webapp/WEB-INF/web.xml
sonar-ws-client/pom.xml

diff --git a/pom.xml b/pom.xml
index 864d2fd64025e01f5a26e68bea9989fa3a04454b..a1510f2b77005b567dbe470444fda14884acb7db 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -75,7 +75,7 @@
     <sonarJava.version>1.3</sonarJava.version>
     <sonarGwt.version>3.3.1</sonarGwt.version>
     <h2.version>1.3.172</h2.version>
-    <jetty.version>7.6.11.v20130520</jetty.version>
+    <jetty.version>8.1.12.v20130726</jetty.version>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     <maven.min.version>3.0.5</maven.min.version>
     <maven.api.version>2.2.0</maven.api.version>
         <version>3.0.1</version>
       </dependency>
       <dependency>
-        <groupId>javax.servlet</groupId>
+        <groupId>org.mortbay.jetty</groupId>
         <artifactId>servlet-api</artifactId>
-        <version>2.5</version>
+        <version>3.0.20100224</version>
       </dependency>
       <dependency>
         <groupId>org.eclipse.jetty</groupId>
index eac47e09a190c73db626f2e7f11881af929f3393..52d2b28ad3f2512f4b9a690c952c198f2637aa12 100644 (file)
@@ -44,7 +44,7 @@
       <scope>test</scope>
     </dependency>
     <dependency>
-      <groupId>javax.servlet</groupId>
+      <groupId>org.mortbay.jetty</groupId>
       <artifactId>servlet-api</artifactId>
       <scope>test</scope>
     </dependency>
index f6ae9409adad6ca0e9ca4b95e7e11b08f528de8a..0ef0bf41059a89ad5344a7647ae89b79e9656ade 100644 (file)
@@ -2,10 +2,11 @@
 wrapper.java.additional.1=-Djava.awt.headless=true
 wrapper.java.additional.2=-XX:MaxPermSize=128m
 wrapper.java.additional.3=-XX:+HeapDumpOnOutOfMemoryError
+wrapper.java.additional.4=-Dfile.encoding=UTF-8
 
 # RECOMMENDED : uncomment if Java Virtual Machine is a JDK but not a JRE. To know which JVM you use, execute
 # 'java -version'. JDK displays 'Server VM'.
-#wrapper.java.additional.4=-server
+#wrapper.java.additional.5=-server
 
 # Initial Java Heap Size (in MB)
 wrapper.java.initmemory=256
@@ -44,16 +45,16 @@ wrapper.app.parameter.1=org.sonar.application.StartServer
 
 #********************************************************************
 # Profiling and debbuging - for development only
-# If wrapper.java.additional.4=-server is not commented, parameter ids should start from 5 instead of 4.
+# If wrapper.java.additional.5=-server is not commented, parameter ids should start from 6 instead of 5.
 #********************************************************************
 # Java remote debugging
-#wrapper.java.additional.4=-agentlib:jdwp=transport=dt_socket,server=y,address=8000
+#wrapper.java.additional.5=-agentlib:jdwp=transport=dt_socket,server=y,address=8000
 
 # JMX remote monitoring on Sun JVM (warning, security is disabled)
-#wrapper.java.additional.4=-Dcom.sun.management.jmxremote
-#wrapper.java.additional.5=-Dcom.sun.management.jmxremote.port=9005
-#wrapper.java.additional.6=-Dcom.sun.management.jmxremote.authenticate=false
-#wrapper.java.additional.7=-Dcom.sun.management.jmxremote.ssl=false
+#wrapper.java.additional.5=-Dcom.sun.management.jmxremote
+#wrapper.java.additional.6=-Dcom.sun.management.jmxremote.port=9005
+#wrapper.java.additional.7=-Dcom.sun.management.jmxremote.authenticate=false
+#wrapper.java.additional.8=-Dcom.sun.management.jmxremote.ssl=false
 
 #********************************************************************
 # Wrapper Logging Properties
index a982ade9b230a8272ef36939ad9338fc80077af5..4c86b9e75f06216f655e1ce050232325e6235540 100644 (file)
@@ -94,7 +94,7 @@
       <scope>test</scope>
     </dependency>
     <dependency>
-      <groupId>javax.servlet</groupId>
+      <groupId>org.mortbay.jetty</groupId>
       <artifactId>servlet-api</artifactId>
       <scope>test</scope>
     </dependency>
index df1fac38c6e79fe6ec14de889ee92d877f9d25b9..7d885fcb6ebe3334930a51f5a405247ed74e1bed 100644 (file)
       <artifactId>xalan</artifactId>
     </dependency>
     <dependency>
-      <groupId>javax.servlet</groupId>
+      <groupId>org.mortbay.jetty</groupId>
       <artifactId>servlet-api</artifactId>
       <optional>true</optional>
     </dependency>
index ba327dd33dd675f4ec1bc0bd1691bfc849797eb1..7b14a4d60ca0ccde8a0d73241204ddc97f46b56d 100644 (file)
       <artifactId>commons-codec</artifactId>
     </dependency>
     <dependency>
-      <groupId>javax.servlet</groupId>
+      <groupId>org.mortbay.jetty</groupId>
       <artifactId>servlet-api</artifactId>
       <scope>provided</scope>
     </dependency>
index 601ccff04c58a3b6792119c2f0f0ac37c0089735..77bc34d5f5958f3035e635b3c8719d3c7323579e 100644 (file)
@@ -1,13 +1,9 @@
 <?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_2_5.xsd"
-  metadata-complete="true"
-  version="2.5"
->
-
-  <display-name>Sonar</display-name>
+<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xmlns="http://java.sun.com/xml/ns/javaee"
+         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
+         id="SonarQube" version="3.0">
+  <display-name>SonarQube</display-name>
 
   <context-param>
     <param-name>public.root</param-name>
   <session-config>
     <!-- in minutes -->
     <session-timeout>20</session-timeout>
+    <cookie-config>
+      <http-only>true</http-only>
+    </cookie-config>
   </session-config>
 
   <listener>
index e874fe74e18607241e0f208c78df116b00afc1a0..3967afba965b72d9f415cc7769f2832d73ffa371 100644 (file)
   <!-- by the jetty.xml file.                                                -->
   <!--                                                                       -->
   <!-- ===================================================================== -->
-<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"
->
+<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xmlns="http://java.sun.com/xml/ns/javaee"
+         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
+         id="SonarQube" version="3.0">
 
   <description>
     Default web.xml file.
diff --git a/sonar-server/src/main/webapp/WEB-INF/jetty-web.xml b/sonar-server/src/main/webapp/WEB-INF/jetty-web.xml
deleted file mode 100644 (file)
index 6274e74..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0"  encoding="ISO-8859-1"?>
-<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
-
-<Configure class="org.eclipse.jetty.webapp.WebAppContext">
-  <Get name="sessionHandler">
-    <Get name="sessionManager">
-      <Set name="httpOnly" type="boolean">true</Set>
-    </Get>
-  </Get>
-</Configure>
\ No newline at end of file
index cb45bfae6339b9904245a8d2829a0f5174451870..51e389f96390eaeee3064b72674e146e06e9263f 100644 (file)
@@ -1,9 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<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>
+<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xmlns="http://java.sun.com/xml/ns/javaee"
+         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
+         id="SonarQube" version="3.0">
+  <display-name>SonarQube</display-name>
 
   <context-param>
     <param-name>public.root</param-name>
@@ -125,13 +125,9 @@ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns
   <session-config>
     <!-- in minutes -->
     <session-timeout>20</session-timeout>
-    <!--
-    Only servlet 3.0+. We're currently stuck at servlet 2.5. Meanwhile
-    we use jetty-web.xml and META-INF/context.xml for Tomcat (see useHttpOnly attribute)
     <cookie-config>
       <http-only>true</http-only>
     </cookie-config>
-    -->
   </session-config>
 
   <listener>
index 7f29ceb4ac6fa0f1429aefc32bab0a72ed377226..3d0d98ae3d6850438c709364841b04999fd3c340 100644 (file)
@@ -51,7 +51,7 @@
       <scope>test</scope>
     </dependency>
     <dependency>
-      <groupId>javax.servlet</groupId>
+      <groupId>org.mortbay.jetty</groupId>
       <artifactId>servlet-api</artifactId>
       <scope>test</scope>
     </dependency>