Deploying with scala and gae modules

7 views
Skip to first unread message

Nilanjan

unread,
Nov 3, 2009, 12:46:35 AM11/3/09
to play-framework
Hi,

I am getting following security error when I am trying to deploy my
app to google app engine. Both scala and GAE modules are enabled.

java.security.AccessControlException: access denied
(java.io.FilePermission /WEB-INF read)
at java.security.AccessControlContext.checkPermission
(AccessControlContext.java:355)
at java.security.AccessController.checkPermission
(AccessController.java:567)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at
com.google.apphosting.runtime.security.CustomSecurityManager.checkPermission
(CustomSecurityManager.java:45)
at java.lang.SecurityManager.checkRead(Unknown Source)
at java.io.File.isFile(File.java:843)
at scala.tools.nsc.io.Path$.apply(Path.scala:54)
...
at play.scalasupport.core.ScalaPlugin$ScalaCompiler.compile
(ScalaPlugin.scala:65)
at play.scalasupport.core.ScalaPlugin.compileAll(ScalaPlugin.scala:
33)
at play.classloading.ApplicationClassloader.getAllClasses
(ApplicationClassloader.java:322)
at play.Play.preCompile(Play.java:407)
at play.Play.init(Play.java:235)


I think this is occurring when scala compiler is trying to compile my
scala controllers. Is there a way to pre-compile my scala code before
I generate war structure?

Guillaume Bort

unread,
Nov 3, 2009, 5:33:25 AM11/3/09
to play-fr...@googlegroups.com
Yes, I'm not surprised by that. GAE has a lot of security restrictions
and it appears than the Scala compiler doesn't work out of box on it.
We will fix that at one point, but for now the scala module is far to be ready.

Nilanjan

unread,
Nov 3, 2009, 9:18:58 AM11/3/09
to play-framework
So in the mean time is there any alternative solution to it? Is there
a way I can tweak ScalaCompilerPlugin to precompile my scala code

Nilanjan


On Nov 3, 5:33 am, Guillaume Bort <guillaume.b...@gmail.com> wrote:
> Yes, I'm not surprised by that. GAE has a lot of security restrictions
> and it appears than the Scala compiler doesn't work out of box on it.
> We will fix that at one point, but for now the scala module is far to be ready.
>
Reply all
Reply to author
Forward
0 new messages