You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@click.apache.org by "Bob Schellink (JIRA)" <ji...@apache.org> on 2010/03/06 06:39:27 UTC
[jira] Created: (CLK-639) Click GAE does not support automapped
pages in production modes
Click GAE does not support automapped pages in production modes
---------------------------------------------------------------
Key: CLK-639
URL: https://issues.apache.org/jira/browse/CLK-639
Project: Click
Issue Type: Bug
Components: core
Affects Versions: 2.1.0
Reporter: Bob Schellink
Google App Engine does not seem to support looking up directories from the servlet context path. This in turn means Click cannot find the templates to build up a cached map of templates to Page classes.
This problem only affects production and profile modes, not development modes, since development modes access the templates files directly (which GAE supports) if it fails to find it in the cached map.
The workaround for now is to manually map Pages to templates in the click.xml file:
<pages package="net.sf.clickclick.examples.jquery.page">
<page path="home.htm" classname="HomePage" ></page>
<page path="/ajax/form-demo.htm" classname="ajax.FormDemo"></page>
...
</pages>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CLK-639) Click GAE does not support automapped
pages in production modes
Posted by "Bob Schellink (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLK-639?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bob Schellink updated CLK-639:
------------------------------
Assignee: Bob Schellink
Fix Version/s: 2.3.0-M1
> Click GAE does not support automapped pages in production modes
> ---------------------------------------------------------------
>
> Key: CLK-639
> URL: https://issues.apache.org/jira/browse/CLK-639
> Project: Click
> Issue Type: Bug
> Components: core
> Affects Versions: 2.1.0
> Reporter: Bob Schellink
> Assignee: Bob Schellink
> Fix For: 2.3.0-M1
>
>
> Google App Engine does not seem to support looking up directories from the servlet context path. This in turn means Click cannot find the templates to build up a cached map of templates to Page classes.
> This problem only affects production and profile modes, not development modes, since development modes access the templates files directly (which GAE supports) if it fails to find it in the cached map.
> The workaround for now is to manually map Pages to templates in the click.xml file:
> <pages package="net.sf.clickclick.examples.jquery.page">
> <page path="home.htm" classname="HomePage" ></page>
> <page path="/ajax/form-demo.htm" classname="ajax.FormDemo"></page>
> ...
> </pages>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CLK-639) Click GAE does not support automapped
pages in production modes
Posted by "Bob Schellink (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLK-639?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bob Schellink resolved CLK-639.
-------------------------------
Resolution: Fixed
Added automapping support for GAE with the caveat that page templates must be placed under the folders "page" or "pages"
> Click GAE does not support automapped pages in production modes
> ---------------------------------------------------------------
>
> Key: CLK-639
> URL: https://issues.apache.org/jira/browse/CLK-639
> Project: Click
> Issue Type: Bug
> Components: core
> Affects Versions: 2.1.0
> Reporter: Bob Schellink
> Assignee: Bob Schellink
> Fix For: 2.3.0-M1
>
>
> Google App Engine does not seem to support looking up directories from the servlet context path. This in turn means Click cannot find the templates to build up a cached map of templates to Page classes.
> This problem only affects production and profile modes, not development modes, since development modes access the templates files directly (which GAE supports) if it fails to find it in the cached map.
> The workaround for now is to manually map Pages to templates in the click.xml file:
> <pages package="net.sf.clickclick.examples.jquery.page">
> <page path="home.htm" classname="HomePage" ></page>
> <page path="/ajax/form-demo.htm" classname="ajax.FormDemo"></page>
> ...
> </pages>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CLK-639) Click GAE does not support automapped
pages in production modes
Posted by "Bob Schellink (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLK-639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12888120#action_12888120 ]
Bob Schellink commented on CLK-639:
-----------------------------------
GAE does not properly implement the Servlet specification -> ServletContext.getResourcePaths("/").
The Javadoc is quite explicit about the usage of "/":
http://java.sun.com/products/servlet/2.5/docs/servlet-2_5-mr2/javax/servlet/ServletContext.html#getResourcePaths(java.lang.String)
There is an outstanding issue raised with GAE:
http://code.google.com/p/googleappengine/issues/detail?id=3417
Even though GAE does not support getResourcePaths("/") it does return resources if the resourcePath is not root. For example getResourcePaths("/pages") does return resources under the folder "/pages".
For now we can add a workaround where templates and pages must be placed under the "/pages" or "/page" folder. If Click determines it is running under GAE, it will scan these two folders explicitly for page templates.
> Click GAE does not support automapped pages in production modes
> ---------------------------------------------------------------
>
> Key: CLK-639
> URL: https://issues.apache.org/jira/browse/CLK-639
> Project: Click
> Issue Type: Bug
> Components: core
> Affects Versions: 2.1.0
> Reporter: Bob Schellink
> Assignee: Bob Schellink
> Fix For: 2.3.0-M1
>
>
> Google App Engine does not seem to support looking up directories from the servlet context path. This in turn means Click cannot find the templates to build up a cached map of templates to Page classes.
> This problem only affects production and profile modes, not development modes, since development modes access the templates files directly (which GAE supports) if it fails to find it in the cached map.
> The workaround for now is to manually map Pages to templates in the click.xml file:
> <pages package="net.sf.clickclick.examples.jquery.page">
> <page path="home.htm" classname="HomePage" ></page>
> <page path="/ajax/form-demo.htm" classname="ajax.FormDemo"></page>
> ...
> </pages>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.