Hi,
When attempting to create a new vaadin theme in association with an existing vaadin project, i get the error -
“Error finding WebContent folder” and it won’t let me create the theme.
I’ve traced the source for this wizard such that I can see the source of the exception (from com.vaadin.integration.eclipse.ProjectUtil)
public static IFolder getWebContentFolder(IProject project)
130 throws CoreException {
131 IVirtualComponent component = ComponentCore.createComponent(project);
132 if (component == null) {
133 throw ErrorUtil
134 .newCoreException("Unable to locate WebContent folder. Ensure the project is a dynamic web project.");
135 }
136 IVirtualFolder contentFolder = component.getRootFolder();
137 IContainer underlying = contentFolder.getUnderlyingFolder();
138 if (!(underlying instanceof IFolder)) {
139 throw ErrorUtil
140 .newCoreException("Unable to locate WebContent folder. Ensure the project is a dynamic web project.");
141 }
142 return (IFolder) underlying;
143 }
I’ve checked the facets associated with the project and it is a dynamic web, vaadin enabled project. I’m using Eclipse Indigo. Any ideas as to what may be happening here? Under what circumstances do either createComponent / getUnderlyingFolder fail?
Kind regards,
Mark