I am using Eclipse. I have resolved this problem by the following:
- Open servers tab.
- Double click on the server you are using.
- On the server configuration page go to server options page.
- Check Serve module without publishing.
- Then save the page and configurations.
- Restart the server by rebuild all the applications.
You will not get any this kind of error.