Running Tomcat with Eclipse on Ubuntu 13.04

If you installed Tomcat 7 from Application Center Ubuntu 13.04. You didn’t create Server in Eclipse. To fix the error ‘Cannot create a server using the selected type’ or ‘Could not load the Tomcat server configuration at /usr/share/tomcat7/conf. The configuration may be corrupt or incomplete /usr/share/tomcat7/conf/catalina.policy (No such file or directory)’ error. That which your Tomcat installation directory has not necessary folders. You can do below commands

cd ~/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/
rm org.eclipse.jst.server.tomcat.core.prefs
rm org.eclipse.wst.server.core.prefs
cd /usr/share/tomcat7
sudo service tomcat7 stop
sudo update-rc.d tomcat7 disable
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
sudo ln -s /var/lib/tomcat7/common common
sudo ln -s /var/lib/tomcat7/server server
sudo ln -s /var/lib/tomcat7/shared shared

quotation from:

14 Mayıs 2014

Posted In: eclipse, kepler, tomcat, tomcat7, ubuntu, ubuntu 13.10

WP Twitter Auto Publish Powered By :