Tuesday, February 11, 2014

resource is out of sync with the file system


resource is out of sync with the file system

Problem :


We come across this common exception when using eclipse and try to start the tomcat server.

Exception I Encountered Was :


###################################################################################################################

resource is out of sync with the file system ... with may file names listed...

###################################################################################################################

Solution :


This exception was caused when i switched to a different work space and restarted tomcat server. It started throwing these errors. Please follow any of the solutions to vanish the error.

1) Right click on the file or project and select refresh. This should be enough to clear all the errors related to resource is out of sync with the file system exception.

2) You can set the preferences to automatically refresh your project with the following steps :
  • Select Window in eclipse menu then
  • Select Preferences
  • Select & Expand first tab General and then
  • Select Workspace and then
  • Select the option "Refresh Automatically" or "Refresh using native hooks or polling" then
  • Click apply
  • Click Ok

  • Now you are good to go.....


Example :


- Follow the above steps outlined and you should be able to resolve it.


Similar Exception :

     

- resource is out of sync with the file system


No comments:

Post a Comment