Configuring Tomcat 6 with eclipse in ubuntu

tomcat

Solution

I experienced this same problem on Ubuntu Linux. Open a terminal window and type this in:

cd /usr/share/tomcat6
sudo ln -s /var/lib/tomcat6/conf conf

In the Eclipse configuration window it should immediately recognize this as a viable directory. I'm not exactly sure why the Tomcat installation splits the bin and conf directories but apparently Eclipse thinks they're supposed to be next to each other.

Problem

Eclipse doesn't allow me to create web application while configuring Tomcat 6. It asked to set the Tomcat installation folder, if i set "/usr/share/tomcat6" then it shows "The Tomcat installation directory is not valid. It is missing expected file or folder conf.", if i set "/var/lib/tomcat6" then it shows "The Tomcat installation directory is not valid. It is missing expected file or folder lib/jasper-el.jar." How to configure Eclipse with Tomcat6 in ubuntu

Original source