Hi,
I am using JRuby and the App Engine to run Rails.  Because it is all ruby
code there is no need to compile anything and all rails developers are used
to not needing to restart the server when code changes.  Also we are used to
working with a different directory structure then the WAR file structure.
 So I thought I would be tricky and use a file system link to link my source
code folder into the WAR file system I use to deploy on the App Engine.
However, this is where I run into a problem.  With the source code in a
linked directory I get this exception when Rails tries to reload the Ruby
files:

java.security.AccessControlException: access denied (java.io.FilePermission
/Users/joshmoore/code/rails_turbine/app/views/layouts/** read)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
at java.security.AccessController.checkPermission(AccessController.java:546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at
com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:122)
at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
at java.io.File.isDirectory(File.java:752)
at org.jruby.util.Dir.glob_helper(Dir.java:641)
        ...

However, if I remove the linked directory and put the source code in a
regular folder it runs fine and will happily reload the Ruby files when
there is a change.  I am wondering is this expected behavior? Or is this a
bug in the dev_appserver?

Thanks,

Josh

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

Reply via email to