hi friends.. if you used Eclipse and got this kind of error:
"Could not find the main class: org.apache.catalina.startup.Bootstrap"
the easiest way to repair this error is:
(no need to add any external jar files like tomcat-juli)
1.check your tomcat manually by going to the apache tomcat directory -> bin and run your:
sudo ./run.sh
from your console
2.check if everything is ok and that you can go to the localhost server without error ex: http://locahost:8080/
if ok then shutdown your tomcat by running:
sudo ./shutdown.sh
3.check the eclipse. and if only eclipse have the error of the bootstrap..
4.backup all your important sourcefiles from your eclipse workspace.
5.without hesitation run :
sudo rm -rf workspace/
6.open your eclipse: (of course you will create new directory for workspace)
File->New->Other->Server->choose Server->click Next -> choose your type of apache tomcat.. mine is v6.0 server ->finish...
and start the server...
No comments:
Post a Comment