Here’s how to make Tomcat 6 work with Eclipse in Ubuntu.
You followed instructions and installed Tomcat using the normal way in Ubuntu. But, curses upon curses, Eclipse doesn’t seem to allow you to use that Tomcat.
And of course, you don’t want to install another copy of Tomcat. You don’t have to.
Here’s the cure:
sudo ln -s /var/lib/tomcat6/conf conf
sudo ln -s /etc/tomcat6/policy.d/03catalina.policy conf/catalina.policy
sudo ln -s /var/log/tomcat6 log
sudo chmod -R 777 /usr/share/tomcat6/conf
and since you probably already have tomcat running
sudo /etc/init.d/tomcat6 stop
In Eclipse, click on Window/Show View/Servers
If there is a tomcat6 server in there, delete it. Create a new one by right clicking in that Servers view. If you were in the middle of developing an application, you should (if it asks) associate the application with tomcat6.
It should now work.