Tomcat 7#
Resources#
- Tomcat HOME
- Tomcat config ref
- WTP_Tomcat_FAQ
- A very simple Tomcat WebSphere comparison
- Tomcat wiki
- ASF Bugzilla
Tomcat upgrade to release 7.0.0.2#
Let's play a bit with Tomcat 7 and see if my apps are still working......
Download#
Download the usual way from http://tomcat.apache.org/download-70.cgi
Split manager role#
If you are using conf/tomcat-users.xml, then split up the manager role in 4 roles:
..... <role rolename="manager"/> <role rolename="manager-gui"/> <role rolename="manager-script"/> <role rolename="manager-jmx"/> <role rolename="manager-status"/> ....
lib directory#
new are:
- ecj-3.6.jar (we use the Eclipse JDT compiler for JSP compilation, so we no longer require a full JDK, but a JRE insteed)
- tomcat-api.jar ((Interfaces shared by Catalina and Jasper)) :
metskem@gneisenau:/usr/local/tomcat/lib$ jar -tf tomcat-api.jar META-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/apache/tomcat/ org/apache/tomcat/buildutil/ org/apache/tomcat/jni/ org/apache/tomcat/util/ org/apache/tomcat/InstanceManager.class org/apache/tomcat/JarScanner.class org/apache/tomcat/JarScannerCallback.class org/apache/tomcat/PeriodicEventListener.class META-INF/NOTICE META-INF/LICENSE
We don't copy the old mysql-connector-java-5.1.7-bin.jar, but download a fresh mysql-connector-java-5.1.13-bin.jar from http://dev.mysql.com/
to the lib directory.
Starting up#
First remove *.bat from the bin directory (we don't need these for sure on linux).
The fire up the bin/startup.sh :
metskem@gneisenau:/usr/local/tomcat/bin$ ./startup.sh Using CATALINA_BASE: /usr/local/tomcat Using CATALINA_HOME: /usr/local/tomcat Using CATALINA_TMPDIR: /usr/local/tomcat/temp Using JRE_HOME: /usr Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar metskem@gneisenau:/usr/local/tomcat/bin$ Oct 8, 2010 3:30:29 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/i386/server:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib Oct 8, 2010 3:30:29 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Oct 8, 2010 3:30:29 PM org.apache.coyote.ajp.AjpProtocol init INFO: Initializing Coyote AJP/1.3 on ajp-8009 Oct 8, 2010 3:30:29 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 737 ms Oct 8, 2010 3:30:29 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina Oct 8, 2010 3:30:29 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.2 Oct 8, 2010 3:30:29 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory host-manager Oct 8, 2010 3:30:30 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory manager Oct 8, 2010 3:30:30 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory examples Oct 8, 2010 3:30:30 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory docs Oct 8, 2010 3:30:30 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory ROOT Oct 8, 2010 3:30:30 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Oct 8, 2010 3:30:30 PM org.apache.coyote.ajp.AjpProtocol start INFO: Starting Coyote AJP/1.3 on ajp-8009 Oct 8, 2010 3:30:30 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 887 ms
Nice !
