Java/tomcat5
From openSUSE
Jakarta Tomcat is a reference implementation of the Java Servlet and Java Server Pages (JSP)
specifications and is released in the terms of the Apache License.
Project homepage: [http://tomcat.apache.org/]
Availability
| 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) |
Running and debugging tomcat5 applications from within Eclipse
| This tutorial is based on the packages tomcat5 >= 5.0.31 and eclipse >= 3.1.1, which are included in SUSE Linux 10.1 |
In order to use tomcat5 from Eclipse, do the following:
- be sure you have the packages eclipse, tomcat5, mx4j, jakarta-commons-logging and log4j installed.
- edit /etc/sysconfig/j2ee variables TOMCAT_BASE_USER and TOMCAT_BASE_GROUP to the user/group names of the user who will use eclipse with the tomcat5 plugin.
- as root run rctomcat5 start; sleep 60; rctomcat stop
- Download the "Sysdeo Eclipse Tomcat Launcher plugin" from http://www.sysdeo.com/eclipse/tomcatplugin and follow the installation instructions.
- Start eclipse and under "Window/Preferences...", configure the plugin as follows:
... Finally try to start tomcat by clicking "Tomcat/Start Tomcat" in eclipse, the console should output the tomcat log.
Drop me a mail if you experience any problems.
Known Issues
| 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. |




