How-to articles, tricks, and solutions about TOMCAT

How to deploy a war file in Tomcat 7

To deploy a WAR (Web ARchive) file in Apache Tomcat 7, you can follow these steps:

java.net.SocketTimeoutException: Read timed out under Tomcat

A java.net.SocketTimeoutException: Read timed out error can occur when a connection to a server is blocked by a firewall or if the server is experiencing high load and is unable to process requests in a timely manner.

MySQL JDBC Driver 5.1.33 - Time Zone Issue

If you are using MySQL JDBC Driver version 5.1.33 and you are experiencing issues with time zones, there are a few things you can try:

Several ports (8005, 8080, 8009) required by Tomcat Server at localhost are already in use

If you get an error saying that several ports required by the Tomcat Server are already in use, it means that another program is using one or more of the ports that Tomcat is trying to bind to. Tomcat typically uses the following ports:

The import javax.servlet can't be resolved

If you are getting the error "The import javax.servlet can't be resolved", it means that the javax.servlet package is not available on the classpath.

Tomcat Server Error - Port 8080 already in use

If you see the error "Port 8080 already in use" when starting the Tomcat server, it means that another process is already using port 8080 on your machine.

Tomcat: How to find out running Tomcat version?

There are several ways to find out the version of Tomcat that is running on your system: