You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sk...@apache.org on 2009/02/21 22:25:37 UTC

svn commit: r746591 - /myfaces/orchestra/trunk/core/src/main/java/org/apache/myfaces/orchestra/conversation/AccessScopeManager.java

Author: skitching
Date: Sat Feb 21 21:25:36 2009
New Revision: 746591

URL: http://svn.apache.org/viewvc?rev=746591&view=rev
Log:
Fix ORCHESTRA-36 : improve error message when dependency injection is misconfigured. Thanks to Kito Mann for the suggestion.

Modified:
    myfaces/orchestra/trunk/core/src/main/java/org/apache/myfaces/orchestra/conversation/AccessScopeManager.java

Modified: myfaces/orchestra/trunk/core/src/main/java/org/apache/myfaces/orchestra/conversation/AccessScopeManager.java
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/core/src/main/java/org/apache/myfaces/orchestra/conversation/AccessScopeManager.java?rev=746591&r1=746590&r2=746591&view=diff
==============================================================================
--- myfaces/orchestra/trunk/core/src/main/java/org/apache/myfaces/orchestra/conversation/AccessScopeManager.java (original)
+++ myfaces/orchestra/trunk/core/src/main/java/org/apache/myfaces/orchestra/conversation/AccessScopeManager.java Sat Feb 21 21:25:36 2009
@@ -96,9 +96,11 @@
         // TODO: Make this error message less spring-specific. Spring is not the only IOC container
         // that Orchestra can be used with.
         throw new IllegalArgumentException(
-                "No AccessScopeManager found. Probably you forgot to add " 
-                + "<import resource=\"classpath*:/META-INF/spring-orchestra-init.xml\" />" 
-                + " to your spring configuration.");
+            "Orchestra was unable to create an instance of bean with name 'AccessScopeManager'." +
+            " Ensure that JSF variable resolution uses your dependency injection (DI) framework" +
+            " (eg Spring's DelegatingVariableResolver is in your faces-config.xml file) and" +
+            " the standard Orchestra configuration beans are defined (eg by using"+
+            " <import resource=\"classpath*:/META-INF/spring-orchestra-init.xml\" />)."); 
     }
 
     public AccessScopeManagerConfiguration getAccessScopeManagerConfiguration()