click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r780838 - /incubator/click/trunk/click/framework/src/org/apache/click/util/ClickUtils.java
Date Mon, 01 Jun 2009 21:24:15 GMT
Author: sabob
Date: Mon Jun  1 21:24:14 2009
New Revision: 780838

URL: http://svn.apache.org/viewvc?rev=780838&view=rev
Log:
improve error message with hint to fix problem

Modified:
    incubator/click/trunk/click/framework/src/org/apache/click/util/ClickUtils.java

Modified: incubator/click/trunk/click/framework/src/org/apache/click/util/ClickUtils.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/framework/src/org/apache/click/util/ClickUtils.java?rev=780838&r1=780837&r2=780838&view=diff
==============================================================================
--- incubator/click/trunk/click/framework/src/org/apache/click/util/ClickUtils.java (original)
+++ incubator/click/trunk/click/framework/src/org/apache/click/util/ClickUtils.java Mon Jun
 1 21:24:14 2009
@@ -923,9 +923,17 @@
         } else {
             String msg =
                 "could not find ConfigService in the SerlvetContext under the"
-                + " name '" + ConfigService.CONTEXT_NAME + "'. This can occur"
+                + " name '" + ConfigService.CONTEXT_NAME + "'.\nThis can occur"
                 + " if ClickUtils.getConfigService() is called before"
-                + " ClickServlet is initialized by the servlet container.";
+                + " ClickServlet is initialized by the servlet container.\n"
+                + "To fix ensure that ClickServlet is loaded at startup by"
+                + " editing your web.xml and setting the load-on-startup to 0:\n\n"
+                + " <servlet>\n"
+                + "   <servlet-name>ClickServlet</servlet-name>\n"
+                + "   <servlet-class>org.apache.click.ClickServlet</servlet-class>\n"
+                + "   <load-on-startup>0</load-on-startup>\n"
+                + " </servlet>\n";
+
             throw new RuntimeException(msg);
         }
     }



Mime
View raw message