Issue
This is very strange, but my WebContents folder has disappeared from the 'Project Explorer' view n Eclipse.
The project is a dynamic web project in Eclipse Helios running on Ubuntu Linux 10.04.
The WebContents folder was visible till sometime back. I am not quite sure what I may have messed up, but this folder is no longer visible from Eclipse. It however, does exist on the file system, and has WEB-INF, META_INF, etc.
Here is a reference to the settings file 'org.eclipse.wst.common.component', which contains a reference to WebContents. I don't think anything has changed in this file.
<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="slides">
<wb-resource deploy-path="/" source-path="/WebContent"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/test"/>
<property name="context-root" value="slides"/>
<property name="java-output-path" value="/slides/build/classes"/>
</wb-module>
</project-modules>
Solution
You can add it to eclipse again by:
Right click your project, in the context menu choose Properties
-> Java Build Path
(Tab Source) and click Add Folder
.
This usually happens if you don't add .settings
to your version control.
Answered By - stacker