2013年6月14日 星期五

ubuntu 12.04 install tomcat7 and eclipse

1.install tomcat 7
#apt-get install tomcat7 tomcat7-admin tomcat7-docs tomcat7-examples tomcat7-user

2. download eclipse and install it to system

3. remove the file in eclipse project  workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings
#cd /home/myproject/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings
# rm org.eclipse.jst.server.tomcat.core.prefs

4. ensure eclipse can access tomcat file
#cd /usr/share/tomcat7
#sudo ln -s /var/lib/tomcat7/conf conf
#sudo ln -s /etc/tomcat7/policy.d/03catalina.policy conf/catalina.policy
#sudo ln -s /var/log/tomcat7 log
#sudo chmod -R 777 /usr/share/tomcat7/conf

5.make user /usr/share/tomcat7 had read permission by all user
#cd /usr/share/tomcat7/conf
#sudo chmod 644 tomcat-users.xml

6.on eclipse create runtime-environment
Window->Preferences->Server->RunTime Environment

7.create new run server 
windows->show view->servers

沒有留言:

張貼留言