Reputation: 2201
I was using eclipse and tomcat 7.0 fine for all web application till yesterday but unfortunately i lost my eclipse folder(which is i am running exe) and temp folder(which is workspace directory) so i tried to add new project in new workspace(home/xx/newtemp) and tried to run by tomcat 7.0 but i am getting "Could not clean server of obsolete files: null java.lang.NullPointerException".Here i show my issue by images,
Even i tried,
1 stop server
2 project -> clean
3 project build (I had automatic build disabled)
4 delete server
5 delete Servers folder
6 restart Eclipse
and also,
Click on Servers tab and Stop the server in use if it's running
Right click on the server again and select Clean...
Right click again and select Clean Tomcat Work Directory...
when i do Clean Tomcat Work Directory, getting error like below image,
and also servers switch location in tomcat 7.0 only.
How to fix this?
Upvotes: 2
Views: 1581
Reputation: 14037
you have to delete the .snap file located in the directory :
<workspace-directory>\.metadata\.plugins\org.eclipse.core.resources
After deleting this file, you could start Eclipse with no problem.
Upvotes: 1
Reputation: 52656
Go to %CATALINA_HOME%\webapps\ROOT
, and delete old existing project. %CATALINA_HOME% is your Tomcat install directory.
Upvotes: 0