Java/tomcat5

Un article de openSUSE.

image:language.png Cette page n'est pas encore traduite (ou pas complètement)

Cet article a besoin d'être traduit. Merci de participer au travail si vous en avez le temps et la compétence.
Si vous cherchez quelque chose à faire, regardez les autres Pages à traduire.

Jakarta Tomacat est une référence dans l'implémentation des spécifications Servlet et JSP. Il est soumis à la licence Apache.
Site web du projet: [http://tomcat.apache.org/]

Disponibilité

Image:susemini.png
Version:
10.1
Tomcat5 is not included on the Beta ISO images of 10.1 BetaX, instead fetch the package from the current factory tree ( see Factory_Distribution for yast2 and yum sources)

Utilisation de Tomacat 5 depuis Eclipse

Ce tutoriel se base sur les paquets tomcat5 >= 5.0.31 et eclipse >= 3.1.1, inclus dans SUSE Linux 10.1

Pour pouvoir utiliser Tomcat 5 depuis Eclipse, vous devez:

  1. Etre sûr que les packets eclipse, tomcat5, mx4j, jakarta-commons-logging and log4j sont installés.
  2. éditer dans /etc/sysconfig/j2ee les variables TOMCAT_BASE_USER et TOMCAT_BASE_GROUP.
  3. En tant que root, éxécutez rctomcat5 start; sleep 60; rctomcat stop
  4. Téléchargez "Sysdeo Eclipse Tomcat Launcher plugin" à partir de http://www.sysdeo.com/eclipse/tomcatplugin et suivez les instructions d'installation.
  5. Lancez eclipse et sous "Window/Preferences...", configurez les plugins ci dessous:

Image:Config1.png

Image:Config2.png

Image:Config3.png


Pour finir, essayez de lancer tomcat en cliquant "Tomcat/Start Tomcat" dans eclipse: la console doit vous afficher des logs de Tomcat.

Envoyer moi un message si vous avez des problèmes.

Known Issues

Image:susemini.png
Version:
older than 10.2
If you set a Java Project "is a Tomcat project" in the projects properties, you can use "Add Tomcat libraries to project build path" via the projects context menu.

This does not work correctly for the package jsp-api.jar due of a name problem. You can either rename the package from "/usr/share/tomcat5/common/lib/jspapi.jar" to "/usr/share/tomcat5/common/lib/jsp-api.jar" or you can edit the entry "TOMCAT_HOME/common/lib/jsp-api.jar" to "TOMCAT_HOME/common/lib/jspapi.jar" in the library properties in the projects properties Build Path so Eclipse will find the package correctly.