Install and configure Tomcat 6 in Ubuntu and Eclipse (Ubuntu)
Huy Châu - July 24, 2010 -
sudo apt-get install tomcat6 tomcat6-*
[ administrator password required ]
[finish installing ..]
2. Integarting Tomcat6 to Eclipse
First, open Terminal and type :
First, open Terminal and type :
sudo ln -s /var/lib/tomcat6/conf /usr/share/tomcat6/conf
sudo ln -s /etc/tomcat6/policy.d/03catalina.policy /usr/share/tomcat6/conf/catalina.policy
sudo ln -s /var/log/tomcat6 /usr/share/tomcat6/log
sudo chmod -R 777 /usr/share/tomcat6/conf
sudo ln -s /etc/tomcat6/policy.d/03catalina.policy /usr/share/tomcat6/conf/catalina.policy
sudo ln -s /var/log/tomcat6 /usr/share/tomcat6/log
sudo chmod -R 777 /usr/share/tomcat6/conf
/**
* to avoid the following error :
* Error : The Tomcat installation directory is not valid. It is missing expected
* file or folder conf
**/
* to avoid the following error :
* Error : The Tomcat installation directory is not valid. It is missing expected
* file or folder conf
**/
Open Eclipse
Menu -> Applications -> Programming ->Eclipse
Menu -> Applications -> Programming ->Eclipse
[Eclipse opening.. ]
Eclipse -> Window -> Preferences .
- In left pane, Server , expand Server -> Runtime Environments .
- In right pane, choose Add to create Server.
- Apache Tomcat v6.0 (trong Apache)
- Choose Next , in next wizard,
- Name : Apache Tomcat v6.0 (2)
- Tomcat installation directory : /usr/share/tomcat6
In next startup, to run web projects in Eclipse, select that project , right click mouse, choose Run As -> Run on Server
* initiate, stop & restart Apache Tomcat manually
In Terminal :
Run : sudo /etc/init.d/tomcat6 start
Stop : sudo /etc/init.d/tomcat6 stop
Restart: sudo /etc/init.d/tomcat6 restart
[Administrator authorization required]
[Administrator authorization required]

