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/10/29 05:47:04 UTC
svn commit: r830845 - in
/incubator/click/trunk/click/framework/src/org/apache/click/service:
ClickResourceService.java XmlConfigService.java
Author: sabob
Date: Thu Oct 29 04:47:04 2009
New Revision: 830845
URL: http://svn.apache.org/viewvc?rev=830845&view=rev
Log:
improved messages
Modified:
incubator/click/trunk/click/framework/src/org/apache/click/service/ClickResourceService.java
incubator/click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java
Modified: incubator/click/trunk/click/framework/src/org/apache/click/service/ClickResourceService.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/framework/src/org/apache/click/service/ClickResourceService.java?rev=830845&r1=830844&r2=830845&view=diff
==============================================================================
--- incubator/click/trunk/click/framework/src/org/apache/click/service/ClickResourceService.java (original)
+++ incubator/click/trunk/click/framework/src/org/apache/click/service/ClickResourceService.java Thu Oct 29 04:47:04 2009
@@ -276,8 +276,8 @@
}
if (!dir.exists()) {
- logService.trace("The folder '" + dir.getAbsolutePath()
- + "' does not exist.");
+ logService.trace("No resources deployed from the folder '" + dir.getAbsolutePath()
+ + "' as it does not exist.");
return;
}
Modified: incubator/click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java?rev=830845&r1=830844&r2=830845&view=diff
==============================================================================
--- incubator/click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java (original)
+++ incubator/click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java Thu Oct 29 04:47:04 2009
@@ -1243,9 +1243,16 @@
deployResourcesOnClasspath();
} else {
- String msg = "Could not auto deploy files to 'click' web folder."
- + " You may need to manually include click resources in your"
- + " web application.";
+ String msg = "Could not auto deploy files to the 'click' web folder."
+ + " This can occur if the call to ServletContext.getRealPath(\"/\") "
+ + " returns null, which means the web application cannot determine"
+ + " the file system path to deploy files to. Another common problem"
+ + " is if the web application is not allowed to write to the file"
+ + " system. To resolve this issue you need to manually include"
+ + " click resources in your web application at build time. You"
+ + " can use the Ant 'DeployTask' that is shipped with Click"
+ + " to include resources at build time. The 'DeployTask' is"
+ + " included in the jar 'lib\\click-dev-tasks.jar'";
getLogService().warn(msg);
}
}
@@ -1354,8 +1361,8 @@
}
if (!dir.exists()) {
- logService.trace("The folder '" + dir.getAbsolutePath()
- + "' does not exist.");
+ logService.trace("No resources deployed from the folder '" + dir.getAbsolutePath()
+ + "' as it does not exist.");
return;
}