Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoritrimble2011-04-06 21:50:37 +0000
committeritrimble2011-04-06 21:50:37 +0000
commitd8939ac36ec33f6b1c7a6ea53f6dd3a25aa220d3 (patch)
treedf8c006c92362216971f026401a7a04a6e39c205
parent1206c65d1770371752bf03170ab323a9d214755d (diff)
downloadwebtools.jsf-d8939ac36ec33f6b1c7a6ea53f6dd3a25aa220d3.tar.gz
webtools.jsf-d8939ac36ec33f6b1c7a6ea53f6dd3a25aa220d3.tar.xz
webtools.jsf-d8939ac36ec33f6b1c7a6ea53f6dd3a25aa220d3.zip
Bug 325086 - Error initializing facelet registry entry
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/registry/taglib/JarFileFaceletTaglibLocator.java25
1 files changed, 21 insertions, 4 deletions
diff --git a/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/registry/taglib/JarFileFaceletTaglibLocator.java b/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/registry/taglib/JarFileFaceletTaglibLocator.java
index 01677e1dc..1ff250b31 100644
--- a/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/registry/taglib/JarFileFaceletTaglibLocator.java
+++ b/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/registry/taglib/JarFileFaceletTaglibLocator.java
@@ -24,6 +24,8 @@ import java.util.regex.Pattern;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.IPath;
+import org.eclipse.emf.ecore.resource.Resource.IOWrappedException;
+import org.eclipse.emf.ecore.xmi.FeatureNotFoundException;
import org.eclipse.jst.jsf.common.internal.finder.AbstractMatcher.AlwaysMatcher;
import org.eclipse.jst.jsf.common.internal.finder.AbstractMatcher.IMatcher;
import org.eclipse.jst.jsf.common.internal.finder.VisitorMatcher;
@@ -241,11 +243,26 @@ public class JarFileFaceletTaglibLocator extends AbstractFaceletTaglibLocator
tagLibsFound.add(new LibJarEntry(tagLib, cpJarFile
.getPath(), name));
}
- } catch (final Exception e)
+ } catch (final Exception ex)
{
- FaceletCorePlugin.log(
- "Error initializing facelet registry entry", //$NON-NLS-1$
- e);
+ //Bug 325086 - Error initializing facelet registry entry
+ StringBuffer sb = new StringBuffer("Error initializing facelet registry entry"); //$NON-NLS-1$
+ if (jarEntry != null &&
+ ex instanceof IOWrappedException &&
+ ex.getCause() instanceof FeatureNotFoundException)
+ {
+ FeatureNotFoundException fnfex = (FeatureNotFoundException)ex.getCause();
+ sb.append(" ("); //$NON-NLS-1$
+ sb.append(jarFile.getName());
+ sb.append("!"); //$NON-NLS-1$
+ sb.append(jarEntry.getName());
+ sb.append(" is invalid at line "); //$NON-NLS-1$
+ sb.append(fnfex.getLine());
+ sb.append(", column "); //$NON-NLS-1$
+ sb.append(fnfex.getColumn());
+ sb.append(")"); //$NON-NLS-1$
+ }
+ FaceletCorePlugin.log(sb.toString(), ex);
} finally
{
if (is != null)

Back to the top