Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: start to translate in french

 Note : This the french translation for the english page "Install Tomcat 7"

  • Apache Tomcat - http://tomcat.apache.org/
  • Note : Always do a fresh install of Toujours faire une nouvelle installation de Tomcat
  • Note : Windows users should ensure that there are no spaces in the complete tomcat path as this causes errors with JSF tools in Sakai
    GOOD Les utilisateurs de MS Windows doivent s'assurer qu'il n'y a pas d'espaces dans le nom du chemin complet de l'installation de Tomcat, ceux-ci provoquent des erreurs avec les outils développé en JSF dans Sakai
    BON : C:\opt\tomcat\, C:\sakaistuff\installs\tomcat\
    BADMAUVAIS : C:\program files\tomcat\, C:\opt\apache tomcat 7.0.1\
  1. Download Télécharger tomcat 7 - à  http://tomcat.apache.org/download-70.cgi
    • Windows users should get the zip file instead of installing a service
      It makes viewing the tomcat logs easier and it is easier to configure

      WarningIf you're running the tag of

      Les utilisateurs de MS Windows doivent récupérer le fichier zip et utiliser les fichiers .bat fournis pour l'arret/relance au lieu de l'installer en tant que service de MS Windows
      Il permet d'afficher et de lire plus facilement les journaux de Tomcat, et il est plus facile à configurer

      Warning
      Si vous utilisez Sakai 2.9.1 or earlier you need to be running ou une version antérieure, vous devez utiliser Tomcat 7.0.21 or earlier. If you go any higher Webdav and Sitestats will have errors and not work. A better solution is to upgrade to the latest version of Sakai and ou une version antérieure. Si vous utilisez une version supérieure à la 7.0.21, Webdav et Sitestats auront des erreurs et ne fonctionneront pas. La meilleure solution est de passer à la dernière version de Sakai et de Tomcat.
      Jira Legacy
      serverSakai
      serverId66e9c5b5-d22c-30a2-a9d4-703f4354570c
      keySTAT-339
      Jira Legacy
      serverSakai
      serverId66e9c5b5-d22c-30a2-a9d4-703f4354570c
      keySAK-23156
  2. Extract to /opt (symlink the apache-tomcat-7.0.x directory to tomcat after extracting)
    • Windows users should just rename the directory since they cannot symlink
  3. Extract the files to the same location as tomcat itself
  4. Modify conf/server.xml for international character support
    1. Add URIEncoding="UTF-8" to the Connector element
      • <Connector port="8080" URIEncoding="UTF-8" ...
  5. Set environment variable: CATALINA_HOME=/opt/tomcat
  6. Add $CATALINA_HOME/bin to PATH
  7. Setup the SETENV file in the tomcat/bin directory with JAVA_OPTS (from Install Java 1.7+)
    1. Mac/Linux: Create a file called setenv.sh with the following (alternately, you can put this into your .bashrc file so they're automatically executed):

      Code Block
      export JAVA_OPTS="-server -Xmx1028m -XX:MaxPermSize=320m -Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false -Djava.awt.headless=true -Dcom.sun.management.jmxremote -Dsun.lang.ClassLoader.allowArraySyntax=true"
      
    2. Windows(PC): Create a file called setenv.bat with the following:

      Code Block
      set JAVA_OPTS=-server -Xmx1028m -XX:MaxPermSize=320m  -Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false -Djava.awt.headless=true -Dcom.sun.management.jmxremote -Dsun.lang.ClassLoader.allowArraySyntax=true
      
  8. [OPTIONAL] Delete the default webapps from the webapps dir

    No Format
    rm -rf webapps/*
    
  9. Configure tomcat 7 to use the old tomcat 5.5 classloader dirs
    1. Edit conf/catalina.properties
      1. Add the following to the line that begins with "common.loader=..."

        No Format
        ,${catalina.base}/common/classes/,${catalina.base}/common/lib/*.jar
        
      2. Add the following to the line that begins with "shared.loader=..."

        No Format
        ${catalina.base}/shared/classes/,${catalina.base}/shared/lib/*.jar
        
      3. Add the following to the line that begins with "server.loader=..."

        No Format
        ${catalina.base}/server/classes/,${catalina.base}/server/lib/*.jar
        
    2. [OPTIONAL] Create the directories

      No Format
      mkdir -p shared/classes shared/lib common/classes common/lib server/classes server/lib
      

...