I upgraded this morning, figuring that the changes related to the .gsp views and their pre-compiling would reduce the cold start issues I’m having with Google AppEngine.
However the 1.2-M2 release of Grails, doesn’t fly on Google AppEngine right now. As far as I can see on the mailing list others have had this issue as well.
The problem I’m experiencing is that the LogManager cannot instantiate.
Context initialization failed org.springframework.beans.factory.access.BootstrapException: Error executing bootstraps; nested exception is org.codehaus.groovy.runtime.InvokerInvocationException: java.lang.NoClassDefFoundError: java.util.logging.LogManager is a restricted class. Please see the Google App Engine developer's guide for more details. at org.codehaus.groovy.grails.web.context.GrailsContextLoader.createWebApplicationContext(GrailsContextLoader.java:74) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:530)
And
Context initialization failed org.springframework.beans.factory.access.BootstrapException: Error executing bootstraps; nested exception is org.codehaus.groovy.runtime.InvokerInvocationException: java.lang.NoClassDefFoundError: Could not initialize class com.google.apphosting.runtime.security.shared.stub.java.util.logging.LogManager
Update: Chad has created a JIRA for this issue located here:http://jira.codehaus.org/browse/GRAILSPLUGINS-1546
Also here is a link to the discussion on the Grails thread:
#1 by Chad on October 14, 2009 - 13:50
Hey Morten,
Thanks for the blog/note on the LogManager cannot instantiate. I’m on 1.2-M2 and having the same issue when I deploy out to GAE…
org.springframework.beans.factory.access.BootstrapException: Error executing bootstraps; nested exception is org.codehaus.groovy.runtime.InvokerInvocationException: java.lang.NoClassDefFoundError: java.util.logging.LogManager is a restricted class. Please see the Google App Engine developer’s guide for more details.
here is the grails thread:
http://www.nabble.com/java.util.logging.LogManager-is-a-restricted-class.-Please-see-the–Google-App-Engine-developer%27s-guide-for-more-details.-td25453128.html
Any chance you were able to get around the issue in any way?
thanks,
@chadsmall
#2 by admin on October 14, 2009 - 14:00
Hi Chad!
No, I’m sorry I havnt found a fix for the issue.
I reverted to 1.1.1 to continue on the current problem I was having.
I’m considering to check this after I update to todays release of Google AppEngine. But as I’m currently without computer it might take a while for me to update my code.
#3 by Chad on October 14, 2009 - 21:04
@admin
FYI: here is the jira that you can vote up/watch – http://jira.codehaus.org/browse/GRAILSPLUGINS-1546
#4 by admin on October 15, 2009 - 10:07
Cool! I updated the post to include your links, hopefully more people will vote for the issue.
PS: I realy should change my login to something that isn’t called admin.