Archive for the ‘Tomcat’ Category

There are two methods to deploy an application in tomcat 1- Deploy the application in webapps directory directly under tomcat directory. Put the .war file of project in webapp directory and restart tomcat. 2- You have a working project with correct directory structure anywhere on filesystem and you want to deploy that without moving it […]


I had a problem with tomcat, it says that port 8080 is already in use so I can not use it … What I did ? 1- Find what application/process is using the pro, type: sudo netstat -lpn |grep :8080 and press Enter. You will get an output similar to this one tcp6       0      0 […]


To setup Apache Tomcat in Linux do the following 1- Download Tomcat latest version from here http://tomcat.apache.org/download-60.cgi On the left panel under ‘Download’ heading, click on your required tomcat version. select tar.gz (pgp, md5) under  ‘Core’ and  ‘Binary Distribution’ headings. 2- Extract tar at an appropriate place. For example /home/tomcat_home 3- Set Tomcat environment variables […]


When you run tomcat in Linux you will not see the traditional console with a lot of output like the way you see in windows command prompt. But almost always it the is required(By the way i don’t understand why haven’t they provided the same functionality by default 😦 ). Tomcat saves its logs in […]