This change adds a suggestion of possible solutions in the 'resource not found:' error message that is emitted from the development shell window when an RPC method finds no handler on the server side. See public forum discussion (an end user is having trouble configuring his <servlet> tag and didn't understand the message.) http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/3997b488101a7164 Review by: scottb Patch by: zundel git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@1686 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/dev/core/src/com/google/gwt/dev/shell/GWTShellServlet.java b/dev/core/src/com/google/gwt/dev/shell/GWTShellServlet.java index ec25365..5e1535b 100644 --- a/dev/core/src/com/google/gwt/dev/shell/GWTShellServlet.java +++ b/dev/core/src/com/google/gwt/dev/shell/GWTShellServlet.java
@@ -377,7 +377,7 @@ // Create a logger branch for this request. String msg = "The development shell servlet received a request for '" - + partialPath + "' in module '" + moduleName + "' "; + + partialPath + "' in module '" + moduleName + ".gwt.xml' "; logger = logger.branch(TreeLogger.TRACE, msg, null); // Handle auto-generation of resources. @@ -406,7 +406,9 @@ } if (foundResource == null) { - msg = "Resource not found: " + partialPath; + msg = "Resource not found: " + partialPath + "\n" + + "(Could a file be missing from the public path or a <servlet> " + + "tag misconfigured in module " + moduleName + ".gwt.xml ?)"; logger.log(TreeLogger.WARN, msg, null); throw new UnableToCompleteException(); }