diff --git a/spring-faces/src/main/java/org/springframework/faces/webflow/JsfViewFactory.java b/spring-faces/src/main/java/org/springframework/faces/webflow/JsfViewFactory.java index 82494bd0..e052ddaa 100644 --- a/spring-faces/src/main/java/org/springframework/faces/webflow/JsfViewFactory.java +++ b/spring-faces/src/main/java/org/springframework/faces/webflow/JsfViewFactory.java @@ -171,7 +171,8 @@ public class JsfViewFactory implements ViewFactory { Resource viewResource = flowContext.getResource(viewId); if (!(viewResource instanceof ContextResource)) { throw new IllegalStateException( - "A ContextResource is required to get relative view paths within this context"); + "A ContextResource is required to get relative view paths within this context; the resource was " + + viewResource); } String viewPath = ((ContextResource) viewResource).getPathWithinContext(); if (!viewPath.startsWith("/")) {