Fix for bug #199304.
diff --git a/jsf/plugins/org.eclipse.jst.jsf.common.ui/src/org/eclipse/jst/jsf/common/ui/internal/utils/WebrootUtil.java b/jsf/plugins/org.eclipse.jst.jsf.common.ui/src/org/eclipse/jst/jsf/common/ui/internal/utils/WebrootUtil.java
index 100cdad..740f5a2 100644
--- a/jsf/plugins/org.eclipse.jst.jsf.common.ui/src/org/eclipse/jst/jsf/common/ui/internal/utils/WebrootUtil.java
+++ b/jsf/plugins/org.eclipse.jst.jsf.common.ui/src/org/eclipse/jst/jsf/common/ui/internal/utils/WebrootUtil.java
@@ -106,9 +106,8 @@
 	public static IFolder getWebContentFolder(IProject project) {
 		IPath webContentPath = getWebContentPath(project);
 		IFolder folder = null;
-		if (webContentPath != null) {			
-			folder = project.getFolder(webContentPath.removeFirstSegments(webContentPath.segmentCount() - 1));
-
+		if (webContentPath != null) {
+			folder = project.getFolder(webContentPath.removeFirstSegments(1));
 		}
 		return folder;
 	}