How to make Tomcat6 work with Ubuntu 10.04 and Eclipse

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:

cd /usr/share/tomcat6
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.


About SunKing2

Former web developer, guitar player, started Piano 2012 -yes still doing it! Recovery, sobriety, mental health advocate.
This entry was posted in Servlets, Uncategorized and tagged , , . Bookmark the permalink.

12 Responses to How to make Tomcat6 work with Ubuntu 10.04 and Eclipse

  1. Anonymous says:

    I made it, with eclipse juno, apache 6, and Ubuntu 12.04, and it was fine. Thanks for your help.

  2. Yatin says:

    My Hero

  3. Anonymous says:

    You are the man

  4. Anonymous says:

    I love you, thats the man

  5. Bruno says:

    Very very very very usefullllll tanks

  6. vahid says:

    You are an ANGLE !!!!!!

  7. natuna says:

    It works for me!! Thanks a lot 😉

  8. Dagvadorj says:

    You literally saved me man. Had I not seen this I would go 4 km for 5 mins work.

  9. siraj says:

    Thanks a million man, I have been banging my head up against the wall for several hours over this.

  10. Ben says:

    I love you.

  11. steve says:

    Nice work, this was driving me bananas

  12. sjdms265 says:

    tks that work ok in ubuntu 10.04 64 bits, tomcat 6, java 1.6.0_18 and eclipse helios

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s