Created
April 29, 2016 13:09
-
-
Save ToanPV90/1d1b3ab505998406e36e43989d8603c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Note: I am using Ubuntu Linux. | |
– Close Eclipse | |
– Go to your Eclipse workspace directory | |
– Then go to directory .metadata/.plugins/org.eclipse.core.runtime/.settings | |
– In Ubuntu, I do it by: cd ~/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings | |
– Delete the following two files: | |
– org.eclipse.wst.server.core.prefs | |
– org.eclipse.jst.server.tomcat.core.prefs | |
– You can do it by the following command: | |
rm org.eclipse.wst.server.core.prefs | |
rm org.eclipse.jst.server.tomcat.core.prefs | |
– Start Eclipse | |
If the above solution did not solve the problem then you can try the following solution which contains creating some softlinks along with deleting the above mentioned files. | |
– Run the following commands in terminal | |
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 | |
– Restart eclipse | |
– In Project Explorer of Eclipse, you can see ‘Servers’. Right click and delete it. | |
– Re-add the Server (File -> New -> Other -> Server) | |
– Now your project on Eclipse should run fine. | |
Hope it helps. Thanks. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment