Pages

Sunday, March 23, 2014

Configure tomcat 6 for eclipse in ubuntu

  1. Install tomcat 6 in ubuntu by running the below commands
  2. 
    sudo apt-get update
    sudo apt-get install tomcat6
    sudo service tomcat6 stop
    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
    
    
  3. In the eclipse main menu go to Help ->Install New Software...
  4. Make the settings as below by selecting the highlighted plugins under Web, XML, Java EE and OSGi Enterprise Development select option
  5. Select Windows -> Preferences -> Server -> Runtime Environments
  6. Click on Add…
  7. Select "Apache Tomcat v6.0" and click on Next
  8. Enter “/usr/share/tomcat6″ into the “Tomcat installation directory” field
  9. Click Ok
  10. Now Right click on your project and Run As -> Run on Server

No comments: