Starting Tomcat7 from Eclipse produced an error:
Could not load the Tomcat server configuration at /usr/share/tomcat7/conf. The configuration may be corrupt or incomplete.
Solution:
Tomcat7 split into different folders by default. Eclipse expects Tomcat to be in one folder. To resolve, we create symbolic links in Tomcat home dir.
1 2 3 4 5 6 |
cd /usr/share/tomcat7 sudo ln -s /var/lib/tomcat7/conf conf sudo ln -s /var/log/tomcat7 log sudo ln -s /etc/tomcat7/policy.d/03catalina.policy conf/catalina.policy sudo chmod -R a+rwx /usr/share/tomcat7/conf /etc/init.d/tomcat7 stop |
Now Eclipse should be able to start Tomcat.