[appengine-java] ServletContext getResourcePaths("/") returns an empty set when run on the server (works locally)

2010-06-25 Thread Bob Schellink
Hi all,

I'm trying to provide GAE support for the Apache Click[1] web
framework. At startup time Apache Click scans the 'web' folder for its
template files which are then mapped to Java classes. In order to find
the template files it recursively scans the web folder starting from
root ("/"). The problem I've found is that the call
ServletContext.getResourcePaths("/") returns an empty set. Locally it
returns all files and folders.

Is this expected behavior or a bug? If this is expected, how come?

Interestingly getResourcePaths returns resources if a subfolder is
specified, for example: getResourcePaths("/pages").

Kind regards

Bob

[1]: http://click.apache.org/

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Discussion on will-it-play-in-app-engine

2009-10-21 Thread Bob Schellink

Its worth mentioning that Apache Click 2.1.0 ships with an in-memory
FileItemFactory implementation for Apache FileUpload. Meaning Click's
file upload component works out of the box.

Click uses OGNL for certain operations which clashes with GAE security
manager. The solution, as mentioned in earlier discussions, is to set
the OGNL security manager to null. In Click this is done by specifying
GoogleAppEngineListener in web.xml:


 ...

 
   org.apache.click.extras.gae.GoogleAppEngineListener
 

 ...


Click maps request to the *.htm extension by default so *.htm
resources must be excluded from being served statically by GAE. This
is done by specifying the following in appengine-web.xml:

 

   
   

   
   
 
   

 

On Sep 22, 9:17 pm, adrian  wrote:
> Apache Click Framework:http://incubator.apache.org/click/
> Version: 2.1.0
> Status: Compatible
> Demo application sources:http://code.google.com/p/click-jpa-demo/
> Demo application live:http://click-jpa.appspot.com/
> Apache Click has support for GAE/J in the package
> "org.apache.click.extras.gae.*",  see the 
> sources:http://svn.apache.org/repos/asf/incubator/click/trunk/click/extras/sr...

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---