Announcement Announcement Module
Collapse
No announcement yet.
Grails app fails on deploy to eatj.com Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Grails app fails on deploy to eatj.com

    Hello fellow grail seekers
    Searching for a hosting provider for my Grails app, I stumbled upon http://grails.org/Hosting with info on providers, that should support Grails apps.

    I looked at the provider eatj.com. They have a free trial signup, so I created an account to try them out.

    But I am getting an error when their tomcat server attempts to start my app:

    Code:
    INFO: Deploying web application archive ROOT.war
    
    log4j:ERROR Error initializing log4j: null
    
    java.lang.ExceptionInInitializerError
    
    at org.codehaus.groovy.grails.web.util.Log4jConfigListener.contextInitialized(Log4jConfigListener.java:54)
    
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830)
    
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
    
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    
    at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:123)
    
    at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:145)
    
    at java.security.AccessController.doPrivileged(Native Method)
    
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:769)
    
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
    
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
    
    at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
    
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
    
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
    
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
    
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
    
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    
    at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    
    at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
    
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    
    at java.lang.reflect.Method.invoke(Method.java:597)
    
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
    
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    
    Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission getProtectionDomain)
    
    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 java.lang.Class.getProtectionDomain(Class.java:2106)
    
    at org.codehaus.groovy.reflection.ClassLoaderForClassArtifacts.define(ClassLoaderForClassArtifacts.java:42)
    
    at org.codehaus.groovy.reflection.ClassLoaderForClassArtifacts$1.run(ClassLoaderForClassArtifacts.java:86)
    
    at org.codehaus.groovy.reflection.ClassLoaderForClassArtifacts$1.run(ClassLoaderForClassArtifacts.java:84)
    
    at java.security.AccessController.doPrivileged(Native Method)
    
    at org.codehaus.groovy.reflection.ClassLoaderForClassArtifacts.defineClassAndGetConstructor(ClassLoaderForClassArtifacts.java:84)
    
    at org.codehaus.groovy.runtime.callsite.CallSiteGenerator.compileStaticMethod(CallSiteGenerator.java:239)
    
    at org.codehaus.groovy.reflection.CachedMethod.createStaticMetaMethodSite(CachedMethod.java:268)
    
    at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.createStaticMetaMethodSite(StaticMetaMethodSite.java:111)
    
    at groovy.lang.MetaClassImpl.createStaticSite(MetaClassImpl.java:3008)
    
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallStaticSite(CallSiteArray.java:59)
    
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallSite(CallSiteArray.java:144)
    
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
    
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
    
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
    
    at org.codehaus.groovy.grails.commons.cfg.ConfigurationHelper.(ConfigurationHelper.groovy:35)
    
    ... 28 more
    This is not happening when I deploy the war file to a local tomcat. Given the AccessControlException, I suspect it is their java security policy file that have too strict settings for groovy to run?

    Does anyone have experience with eatj.com and Grails apps? Have you managed to get your application to run on their server?

    Best regards,
    Søren

    - Oh, and I'm on Grails 1.3.4 btw
Working...
X