You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@click.apache.org by sa...@apache.org on 2009/06/01 23:24:15 UTC
svn commit: r780838 -
/incubator/click/trunk/click/framework/src/org/apache/click/util/ClickUtils.java
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);
}
}