Cannot deploy grails application to tomcat on CentOS

classic Classic list List threaded Threaded
12 messages Options
dev
Reply | Threaded
Open this post in threaded view
|

Cannot deploy grails application to tomcat on CentOS

dev
I tried to deploy a new version of my app to a tomcat on CentOS. The
previous versions worked fine. After installing SpringSecurity UI and
the other plugins required by this plugin I get:

2013-01-16 10:32:52,807 [localhost-startStop-1] ERROR
context.ContextLoader  - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'grailsApplication' defined in ServletContext resource
[/WEB-INF/applicationContext.xml]: Invocation of init method failed;
nested exception is java.lang.ExceptionInInitializerError
     at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
     at java.util.concurrent.FutureTask.run(FutureTask.java:166)
     at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
     at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
     at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.ExceptionInInitializerError
     at java.lang.Class.forName(Class.java:264)
     ... 6 more
Caused by: groovy.lang.MissingPropertyException: No such property: true
for class: java.lang.Boolean
     ... 7 more


Any idea what the problem could be??

(it works fine on my windows box inside intelliJ)

I did a clean, deleted everythin in my .grails directory, no luck at all!



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: Cannot deploy grails application to tomcat on CentOS

sergiomichels
Did you try the war inside a Tomcat on windows (outside of IDE)? Maybe is not a OS error, but a war.

--
Sérgio Michels


On Wed, Jan 16, 2013 at 8:02 AM, dev <[hidden email]> wrote:
I tried to deploy a new version of my app to a tomcat on CentOS. The previous versions worked fine. After installing SpringSecurity UI and the other plugins required by this plugin I get:

2013-01-16 10:32:52,807 [localhost-startStop-1] ERROR context.ContextLoader  - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsApplication' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.ExceptionInInitializerError
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.ExceptionInInitializerError
    at java.lang.Class.forName(Class.java:264)
    ... 6 more
Caused by: groovy.lang.MissingPropertyException: No such property: true for class: java.lang.Boolean
    ... 7 more


Any idea what the problem could be??

(it works fine on my windows box inside intelliJ)

I did a clean, deleted everythin in my .grails directory, no luck at all!



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email



dev
Reply | Threaded
Open this post in threaded view
|

Re: Cannot deploy grails application to tomcat on CentOS

dev
Don't know, I currently do not have an instance on windows available. Since my last deployment I added three plugins:

        compile ":mail:1.0.1"
        compile ":famfamfam:1.0.1"
        compile ":spring-security-ui:0.2"

I try to rebuild without these but I have to change some code too. I really do not understand what means 'No such property: true ...' This sound a little bit like 'sorry I don't know what Java is...? Never seen such a thing before...

Tom

Am 16.01.2013 12:13, schrieb Sergio Michels:
Did you try the war inside a Tomcat on windows (outside of IDE)? Maybe is not a OS error, but a war.

--
Sérgio Michels


On Wed, Jan 16, 2013 at 8:02 AM, dev <[hidden email]> wrote:
I tried to deploy a new version of my app to a tomcat on CentOS. The previous versions worked fine. After installing SpringSecurity UI and the other plugins required by this plugin I get:

2013-01-16 10:32:52,807 [localhost-startStop-1] ERROR context.ContextLoader  - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsApplication' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.ExceptionInInitializerError
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.ExceptionInInitializerError
    at java.lang.Class.forName(Class.java:264)
    ... 6 more
Caused by: groovy.lang.MissingPropertyException: No such property: true for class: java.lang.Boolean
    ... 7 more


Any idea what the problem could be??

(it works fine on my windows box inside intelliJ)

I did a clean, deleted everythin in my .grails directory, no luck at all!



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email




Reply | Threaded
Open this post in threaded view
|

Re: Cannot deploy grails application to tomcat on CentOS

sergiomichels
This post was updated on .
Me either, but maybe more info can help others to find the issue, such as:

   - Which jar's you have in WEB-INF\lib, in the generated war?
   - Version of Grails
   - Version of tomcat
   - Did you have any shared library in Tomcat?


--
Sérgio Michels


On Wed, Jan 16, 2013 at 10:17 AM, dev <dev@bednarz.ch> wrote:

>  Don't know, I currently do not have an instance on windows available.
> Since my last deployment I added three plugins:
>
>         compile ":mail:1.0.1"
>         compile ":famfamfam:1.0.1"
>         compile ":spring-security-ui:0.2"
>
> I try to rebuild without these but I have to change some code too. I
> really do not understand what means 'No such property: true ...' This sound
> a little bit like 'sorry I don't know what Java is...? Never seen such a
> thing before...
>
> Tom
>
> Am 16.01.2013 12:13, schrieb Sergio Michels:
>
> Did you try the war inside a Tomcat on windows (outside of IDE)? Maybe is
> not a OS error, but a war.
>
> --
> Sérgio Michels
>
>
> On Wed, Jan 16, 2013 at 8:02 AM, dev <dev@bednarz.ch> wrote:
>
>> I tried to deploy a new version of my app to a tomcat on CentOS. The
>> previous versions worked fine. After installing SpringSecurity UI and the
>> other plugins required by this plugin I get:
>>
>> 2013-01-16 10:32:52,807 [localhost-startStop-1] ERROR
>> context.ContextLoader  - Context initialization failed
>> org.springframework.beans.factory.BeanCreationException: Error creating
>> bean with name 'grailsApplication' defined in ServletContext resource
>> [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested
>> exception is java.lang.ExceptionInInitializerError
>>     at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>>     at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>>     at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>>     at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>>     at java.lang.Thread.run(Thread.java:722)
>> Caused by: java.lang.ExceptionInInitializerError
>>     at java.lang.Class.forName(Class.java:264)
>>     ... 6 more
>> Caused by: groovy.lang.MissingPropertyException: No such property: true
>> for class: java.lang.Boolean
>>     ... 7 more
>>
>>
>> Any idea what the problem could be??
>>
>> (it works fine on my windows box inside intelliJ)
>>
>> I did a clean, deleted everythin in my .grails directory, no luck at all!
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>    http://xircles.codehaus.org/manage_email
>>
>>
>>
>
>
dev
Reply | Threaded
Open this post in threaded view
|

Re: Cannot deploy grails application to tomcat on CentOS

dev
In reply to this post by dev
I hate to send such big messages but since I am completely lost, maybe
somebody can help when the full stacktrace is available. Removing the
latest added plugins does not help. I use on Windows and on Linux Sun
JDK 1.7.10 64-bit.  Here is the stacktrace as it is written to my
applications log file:


2013-01-16 13:38:56,254 [localhost-startStop-1] ERROR StackTrace  - Full
Stack Trace:
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'grailsApplication' defined in ServletContext resource
[/WEB-INF/applicationContext.xml]: Invocation of init method failed;
nested exception is java.lang.ExceptionInInitializerError
     at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)
     at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
     at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
     at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
     at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
     at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
     at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
     at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:591)
     at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
     at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
     at
org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
     at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
     at
org.codehaus.groovy.grails.web.context.GrailsContextLoader.initWebApplicationContext(GrailsContextLoader.java:66)
     at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
     at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
     at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
     at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
     at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
     at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
     at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
     at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
     at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
     at java.util.concurrent.FutureTask.run(FutureTask.java:166)
     at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
     at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
     at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.ExceptionInInitializerError
     at java.lang.Class.forName0(Native Method)
     at java.lang.Class.forName(Class.java:264)
     at
org.codehaus.groovy.grails.commons.GrailsApplicationFactoryBean.afterPropertiesSet(GrailsApplicationFactoryBean.java:92)
     at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
     at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
     ... 27 more
Caused by: groovy.lang.MissingPropertyException: No such property: true
for class: java.lang.Boolean
     at
groovy.lang.MetaClassImpl.invokeStaticMissingProperty(MetaClassImpl.java:891)
     at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:1611)
     at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:1587)
     at groovy.lang.ExpandoMetaClass.getProperty(ExpandoMetaClass.java:1140)
     at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:3332)
     at groovy.lang.ExpandoMetaClass.getProperty(ExpandoMetaClass.java:1152)
     at
org.codehaus.groovy.runtime.callsite.ClassMetaClassGetPropertySite.getProperty(ClassMetaClassGetPropertySite.java:48)
     at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:227)
     at org.grailstestspace.BaseController.<clinit>(BaseController.groovy)
     ... 32 more
2013-01-16 13:38:56,264 [localhost-startStop-1] ERROR StackTrace  - Full
Stack Trace:
java.lang.ExceptionInInitializerError
     at java.lang.Class.forName0(Native Method)
     at java.lang.Class.forName(Class.java:264)
     at
org.codehaus.groovy.grails.commons.GrailsApplicationFactoryBean.afterPropertiesSet(GrailsApplicationFactoryBean.java:92)
     at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
     at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
     at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
     at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
     at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
     at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
     at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
     at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
     at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:591)
     at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
     at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
     at
org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
     at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
     at
org.codehaus.groovy.grails.web.context.GrailsContextLoader.initWebApplicationContext(GrailsContextLoader.java:66)
     at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
     at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
     at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
     at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
     at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
     at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
     at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
     at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
     at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
     at java.util.concurrent.FutureTask.run(FutureTask.java:166)
     at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
     at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
     at java.lang.Thread.run(Thread.java:722)
Caused by: groovy.lang.MissingPropertyException: No such property: true
for class: java.lang.Boolean
     at
groovy.lang.MetaClassImpl.invokeStaticMissingProperty(MetaClassImpl.java:891)
     at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:1611)
     at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:1587)
     at groovy.lang.ExpandoMetaClass.getProperty(ExpandoMetaClass.java:1140)
     at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:3332)
     at groovy.lang.ExpandoMetaClass.getProperty(ExpandoMetaClass.java:1152)
     at
org.codehaus.groovy.runtime.callsite.ClassMetaClassGetPropertySite.getProperty(ClassMetaClassGetPropertySite.java:48)
     at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:227)
     at org.grailstestspace.BaseController.<clinit>(BaseController.groovy)
     ... 32 more
2013-01-16 13:38:56,299 [localhost-startStop-1] ERROR StackTrace  - Full
Stack Trace:
groovy.lang.MissingPropertyException: No such property: true for class:
java.lang.Boolean
     at
groovy.lang.MetaClassImpl.invokeStaticMissingProperty(MetaClassImpl.java:891)
     at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:1611)
     at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:1587)
     at groovy.lang.ExpandoMetaClass.getProperty(ExpandoMetaClass.java:1140)
     at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:3332)
     at groovy.lang.ExpandoMetaClass.getProperty(ExpandoMetaClass.java:1152)
     at
org.codehaus.groovy.runtime.callsite.ClassMetaClassGetPropertySite.getProperty(ClassMetaClassGetPropertySite.java:48)
     at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:227)
     at org.grailstestspace.BaseController.<clinit>(BaseController.groovy)
     at java.lang.Class.forName0(Native Method)
     at java.lang.Class.forName(Class.java:264)
     at
org.codehaus.groovy.grails.commons.GrailsApplicationFactoryBean.afterPropertiesSet(GrailsApplicationFactoryBean.java:92)
     at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
     at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
     at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
     at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
     at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
     at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
     at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
     at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
     at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:591)
     at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
     at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
     at
org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
     at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
     at
org.codehaus.groovy.grails.web.context.GrailsContextLoader.initWebApplicationContext(GrailsContextLoader.java:66)
     at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
     at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
     at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
     at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
     at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
     at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
     at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
     at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
     at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
     at java.util.concurrent.FutureTask.run(FutureTask.java:166)
     at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
     at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
     at java.lang.Thread.run(Thread.java:722)
2013-01-16 13:38:56,300 [localhost-startStop-1] ERROR StackTrace  - Full
Stack Trace:
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'grailsApplication' defined in ServletContext resource
[/WEB-INF/applicationContext.xml]: Invocation of init method failed;
nested exception is java.lang.ExceptionInInitializerError
     at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
     at java.util.concurrent.FutureTask.run(FutureTask.java:166)
     at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
     at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
     at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.ExceptionInInitializerError
     at java.lang.Class.forName(Class.java:264)
     ... 6 more
Caused by: groovy.lang.MissingPropertyException: No such property: true
for class: java.lang.Boolean
     ... 7 more


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: Cannot deploy grails application to tomcat on CentOS

Ian Roberts
On 16/01/2013 12:45, dev wrote:
> at org.grailstestspace.BaseController.<clinit>(BaseController.groovy)

Is this one of your own controllers or is it contributed by a plugin?
Can you post the relevant lines (any static initializers or static
property declarations)?

Also you still haven't answered the most important question - what
version of Grails are you using?

Ian

--
Ian Roberts               | Department of Computer Science
[hidden email]  | University of Sheffield, UK

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: Cannot deploy grails application to tomcat on CentOS

burtbeckwith
In reply to this post by dev
This is where you want to look:

    at org.grailstestspace.BaseController.<clinit>(BaseController.groovy)

<clinit> is usually a static field - is there a static variable in that class that is causing this?

Burt

dev wrote
I hate to send such big messages but since I am completely lost, maybe
somebody can help when the full stacktrace is available. Removing the
latest added plugins does not help. I use on Windows and on Linux Sun
JDK 1.7.10 64-bit.  Here is the stacktrace as it is written to my
applications log file:
dev
Reply | Threaded
Open this post in threaded view
|

Re: Cannot deploy grails application to tomcat on CentOS

dev
In reply to this post by sergiomichels
Ok here some more information about the linux box:

CentOS 5.8

# java -version
java version "1.7.0_10"
Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

Here the HUGE list of jars:

-rw-r--r-- 1 tomcat tomcat  445288 Dec  5 13:42 antlr-2.7.7.jar
-rw-r--r-- 1 tomcat tomcat    4467 Dec  5 13:42 aopalliance-1.0.jar
-rw-r--r-- 1 tomcat tomcat   43033 Dec  5 13:42 asm-3.1.jar
-rw-r--r-- 1 tomcat tomcat  116226 Dec  5 13:42 aspectjrt-1.6.10.jar
-rw-r--r-- 1 tomcat tomcat 1675810 Dec  5 13:42 aspectjweaver-1.6.10.jar
-rw-r--r-- 1 tomcat tomcat  278682 Dec  5 13:42 cglib-2.2.jar
-rw-r--r-- 1 tomcat tomcat  232019 Dec  5 13:42 commons-beanutils-1.8.3.jar
-rw-r--r-- 1 tomcat tomcat   73098 Dec  5 13:42 commons-codec-1.5.jar
-rw-r--r-- 1 tomcat tomcat  575389 Dec  5 13:42 commons-collections-3.2.1.jar
-rw-r--r-- 1 tomcat tomcat  160519 Dec  5 13:42 commons-dbcp-1.4.jar
-rw-r--r-- 1 tomcat tomcat  112341 Dec  5 13:42 commons-el-1.0.jar
-rw-r--r-- 1 tomcat tomcat   59590 Dec  5 13:42 commons-fileupload-1.2.2.jar
-rw-r--r-- 1 tomcat tomcat  163151 Dec  5 13:42 commons-io-2.1.jar
-rw-r--r-- 1 tomcat tomcat  284220 Dec  5 13:42 commons-lang-2.6.jar
-rw-r--r-- 1 tomcat tomcat  315805 Nov 15  2011 commons-lang3-3.1.jar
-rw-r--r-- 1 tomcat tomcat   60686 Aug 31  2008 commons-logging-1.1.1.jar
-rw-r--r-- 1 tomcat tomcat  100472 Dec  5 13:42 commons-pool-1.5.6.jar
-rw-r--r-- 1 tomcat tomcat  138956 Dec  5 13:42 commons-validator-1.3.1.jar
-rw-r--r-- 1 tomcat tomcat 2161861 Jul 19  2011 compass-2.2.1.jar
-rw-r--r-- 1 tomcat tomcat 1700504 Dec 26  2010 compass-2.2.1-src.jar
-rw-r--r-- 1 tomcat tomcat   54050 Dec  5 13:42 concurrentlinkedhashmap-lru-1.2_jdk5.jar
-rw-r--r-- 1 tomcat tomcat  313898 Dec  5 13:42 dom4j-1.6.1.jar
-rw-r--r-- 1 tomcat tomcat 1014824 Dec  5 13:42 ehcache-core-2.4.6.jar
-rw-r--r-- 1 tomcat tomcat  727945 Dec  5 13:43 grails-bootstrap-2.1.2.jar
-rw-r--r-- 1 tomcat tomcat  799841 Dec  5 13:43 grails-core-2.1.2.jar
-rw-r--r-- 1 tomcat tomcat   43260 Dec  5 13:43 grails-crud-2.1.2.jar
-rw-r--r-- 1 tomcat tomcat  314414 Dec  5 13:42 grails-datastore-core-1.1.1.RELEASE.jar
-rw-r--r-- 1 tomcat tomcat  333237 Dec  5 13:42 grails-datastore-gorm-1.1.1.RELEASE.jar
-rw-r--r-- 1 tomcat tomcat  378085 Dec  5 13:42 grails-datastore-simple-1.1.1.RELEASE.jar
-rw-r--r-- 1 tomcat tomcat  607071 Dec  5 13:44 grails-hibernate-2.1.2.jar
-rw-r--r-- 1 tomcat tomcat    2804 Dec  5 13:44 grails-logging-2.1.2.jar
-rw-r--r-- 1 tomcat tomcat   92980 Dec  5 13:44 grails-plugin-codecs-2.1.2.jar
-rw-r--r-- 1 tomcat tomcat  177988 Dec  5 13:44 grails-plugin-controllers-2.1.2.jar
-rw-r--r-- 1 tomcat tomcat  162743 Dec  5 13:44 grails-plugin-converters-2.1.2.jar
-rw-r--r-- 1 tomcat tomcat   43519 Dec  5 13:44 grails-plugin-datasource-2.1.2.jar
-rw-r--r-- 1 tomcat tomcat  112513 Dec  5 13:44 grails-plugin-domain-class-2.1.2.jar
-rw-r--r-- 1 tomcat tomcat   61895 Dec  5 13:44 grails-plugin-filters-2.1.2.jar
-rw-r--r-- 1 tomcat tomcat  472578 Dec  5 13:44 grails-plugin-gsp-2.1.2.jar
-rw-r--r-- 1 tomcat tomcat   24732 Dec  5 13:44 grails-plugin-i18n-2.1.2.jar
-rw-r--r-- 1 tomcat tomcat   64516 Dec  5 13:44 grails-plugin-log4j-2.1.2.jar
-rw-r--r-- 1 tomcat tomcat   66169 Dec  5 13:44 grails-plugin-mimetypes-2.1.2.jar
-rw-r--r-- 1 tomcat tomcat   29756 Dec  5 13:44 grails-plugin-scaffolding-2.1.2.jar
-rw-r--r-- 1 tomcat tomcat   36658 Dec  5 13:44 grails-plugin-services-2.1.2.jar
-rw-r--r-- 1 tomcat tomcat   28984 Dec  5 13:44 grails-plugin-servlets-2.1.2.jar
-rw-r--r-- 1 tomcat tomcat  125757 Dec  5 13:45 grails-plugin-url-mappings-2.1.2.jar
-rw-r--r-- 1 tomcat tomcat   40381 Dec  5 13:45 grails-plugin-validation-2.1.2.jar
-rw-r--r-- 1 tomcat tomcat  167162 Dec  5 13:45 grails-resources-2.1.2.jar
-rw-r--r-- 1 tomcat tomcat   42091 Dec  5 13:45 grails-spring-2.1.2.jar
-rw-r--r-- 1 tomcat tomcat  801489 Dec  5 13:45 grails-web-2.1.2.jar
-rw-r--r-- 1 tomcat tomcat 6221996 Dec  5 13:42 groovy-all-1.8.8.jar
-rw-r--r-- 1 tomcat tomcat 1268693 Dec  5 13:42 h2-1.3.164.jar
-rw-r--r-- 1 tomcat tomcat   71283 Dec  5 13:42 hibernate-commons-annotations-3.2.0.Final.jar
-rw-r--r-- 1 tomcat tomcat 3123360 Dec  5 13:42 hibernate-core-3.6.10.Final.jar
-rw-r--r-- 1 tomcat tomcat   11283 Dec  5 13:42 hibernate-ehcache-3.6.10.Final.jar
-rw-r--r-- 1 tomcat tomcat  102661 Dec  5 13:42 hibernate-jpa-2.0-api-1.0.1.Final.jar
-rw-r--r-- 1 tomcat tomcat  287706 Dec  5 13:42 hibernate-validator-4.1.0.Final.jar
-rw-r--r-- 1 tomcat tomcat  659343 Dec  5 13:42 javassist-3.16.1-GA.jar
-rw-r--r-- 1 tomcat tomcat   17310 Dec  5 13:42 jcl-over-slf4j-1.6.2.jar
-rw-r--r-- 1 tomcat tomcat   20682 Dec  5 13:42 jstl-1.1.2.jar
-rw-r--r-- 1 tomcat tomcat   15071 Dec  5 13:42 jta-1.1.jar
-rw-r--r-- 1 tomcat tomcat    4544 Dec  5 13:42 jul-to-slf4j-1.6.2.jar
-rw-r--r-- 1 tomcat tomcat  196602 Mar 15  2012 lesscss-1.3.0.jar
-rw-r--r-- 1 tomcat tomcat  926426 May  2  2012 liquibase-core-2.0.5.jar
-rw-r--r-- 1 tomcat tomcat  481535 Dec  5 13:42 log4j-1.2.16.jar
-rw-r--r-- 1 tomcat tomcat  144607 Nov 20  2010 lucene-analyzers.jar
-rw-r--r-- 1 tomcat tomcat  822794 Nov 20  2010 lucene-core.jar
-rw-r--r-- 1 tomcat tomcat   91152 Nov 20  2010 lucene-highlighter.jar
-rw-r--r-- 1 tomcat tomcat   33033 Nov 20  2010 lucene-queries.jar
-rw-r--r-- 1 tomcat tomcat  113732 Nov 20  2010 lucene-snowball.jar
-rw-r--r-- 1 tomcat tomcat   18505 Nov 20  2010 lucene-spellchecker.jar
-rw-r--r-- 1 tomcat tomcat   65261 Dec  5 13:42 oro-2.0.8.jar
-rw-r--r-- 1 tomcat tomcat  539705 Nov 23  2011 postgresql-9.1-901.jdbc4.jar
-rw-r--r-- 1 tomcat tomcat 1094805 Jul 20  2011 rhino-1.7R3.jar
-rw-r--r-- 1 tomcat tomcat  181191 Dec  5 13:42 sitemesh-2.4.jar
-rw-r--r-- 1 tomcat tomcat   25689 Dec  5 13:42 slf4j-api-1.6.2.jar
-rw-r--r-- 1 tomcat tomcat  332641 Dec  5 13:42 spring-aop-3.1.2.RELEASE.jar
-rw-r--r-- 1 tomcat tomcat   53082 Dec  5 13:42 spring-asm-3.1.2.RELEASE.jar
-rw-r--r-- 1 tomcat tomcat   50567 Dec  5 13:42 spring-aspects-3.1.2.RELEASE.jar
-rw-r--r-- 1 tomcat tomcat  592232 Dec  5 13:42 spring-beans-3.1.2.RELEASE.jar
-rw-r--r-- 1 tomcat tomcat  832018 Dec  5 13:42 spring-context-3.1.2.RELEASE.jar
-rw-r--r-- 1 tomcat tomcat  107014 Dec  5 13:42 spring-context-support-3.1.2.RELEASE.jar
-rw-r--r-- 1 tomcat tomcat  449649 Dec  5 13:42 spring-core-3.1.2.RELEASE.jar
-rw-r--r-- 1 tomcat tomcat  176087 Dec  5 13:42 spring-expression-3.1.2.RELEASE.jar
-rw-r--r-- 1 tomcat tomcat  404535 Dec  5 13:42 spring-jdbc-3.1.2.RELEASE.jar
-rw-r--r-- 1 tomcat tomcat  199112 Dec  5 13:42 spring-jms-3.1.2.RELEASE.jar
-rw-r--r-- 1 tomcat tomcat  379860 Dec  5 13:42 spring-orm-3.1.2.RELEASE.jar
-rw-r--r-- 1 tomcat tomcat  312352 Sep  6  2011 spring-security-core-3.0.7.RELEASE.jar
-rw-r--r-- 1 tomcat tomcat  244183 Sep  6  2011 spring-security-web-3.0.7.RELEASE.jar
-rw-r--r-- 1 tomcat tomcat  245031 Dec  5 13:42 spring-tx-3.1.2.RELEASE.jar
-rw-r--r-- 1 tomcat tomcat  548703 Dec  5 13:42 spring-web-3.1.2.RELEASE.jar
-rw-r--r-- 1 tomcat tomcat  577502 Dec  5 13:42 spring-webmvc-3.1.2.RELEASE.jar
-rw-r--r-- 1 tomcat tomcat   47433 Dec  5 13:42 validation-api-1.0.0.GA.jar
-rw-r--r-- 1 tomcat tomcat   24956 Dec  5 13:42 xpp3_min-1.1.4c.jar


 grails -version

Grails version: 2.1.2

TOMCAT is version 7.0.34
It was a fresh install so I do not have anything special installed. I am not using AJP.



Am 16.01.2013 13:41, schrieb Sergio Michels:
Me either, but maybe more info can help others to find the issue, such as:
  • Witch jar's you have in WEB-INF\lib, in the generated war?
  • Version of Grails
  • Version of tomcat
  • Did you have any shared library in Tomcat?

--
Sérgio Michels



dev
Reply | Threaded
Open this post in threaded view
|

Re: Cannot deploy grails application to tomcat on CentOS

dev
In reply to this post by dev
Hi guys, I just postet my environment, but the BaseController is from me!

I have added a new BaseClass for Controllers and one for Domains (named BaseDomain). I put in things I use in all controlers / domains and do not want to rewrite all the time. So I do things like

class myControler extends BaseControler {

...
}

and

class myDomain extends BaseDomain {
   ....
}

I put BaseDomain in src/groovy/[package name]/BaseDomain.groovy

BUT I left BaseController in grails-app/controllers/[packagename]/BaseControler.groovy. It has nothing usefull in it yet, just used BaseDomain sofar.

Could that be the problem??? Do I have to put this file also in src/groovy??


Tom

---------------

This is where you want to look:

     at org.grailstestspace.BaseController.<clinit>(BaseController.groovy)

<clinit> is usually a static field - is there a static variable in that
class that is causing this?





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: Cannot deploy grails application to tomcat on CentOS

sergiomichels
I'm using something similar a BaseController and I left in the controllers folder. Can you post your controller code?

--
Sérgio Michels


On Wed, Jan 16, 2013 at 11:22 AM, dev <[hidden email]> wrote:
Hi guys, I just postet my environment, but the BaseController is from me!

I have added a new BaseClass for Controllers and one for Domains (named BaseDomain). I put in things I use in all controlers / domains and do not want to rewrite all the time. So I do things like

class myControler extends BaseControler {

...
}

and

class myDomain extends BaseDomain {
  ....
}

I put BaseDomain in src/groovy/[package name]/BaseDomain.groovy

BUT I left BaseController in grails-app/controllers/[packagename]/BaseControler.groovy. It has nothing usefull in it yet, just used BaseDomain sofar.

Could that be the problem??? Do I have to put this file also in src/groovy??


Tom

---------------


This is where you want to look:

    at org.grailstestspace.BaseController.<clinit>(BaseController.groovy)

<clinit> is usually a static field - is there a static variable in that
class that is causing this?





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email



dev
Reply | Threaded
Open this post in threaded view
|

Re: Cannot deploy grails application to tomcat on CentOS

dev
In reply to this post by burtbeckwith
Hi Burt and Ian,

Thanks a thousand time!! Found the crap in my code! There is a line:

static showSubnav = Boolean.true

I guess my problem has gone. I will recompile, create the war and upload
it to the datacenter.

Many thanks again!

Tom

Am 16.01.2013 13:56, schrieb burtbeckwith:

> This is where you want to look:
>
>      at org.grailstestspace.BaseController.<clinit>(BaseController.groovy)
>
> <clinit> is usually a static field - is there a static variable in that
> class that is causing this?
>
> Burt
>
>
> dev wrote
>> I hate to send such big messages but since I am completely lost, maybe
>> somebody can help when the full stacktrace is available. Removing the
>> latest added plugins does not help. I use on Windows and on Linux Sun
>> JDK 1.7.10 64-bit.  Here is the stacktrace as it is written to my
>> applications log file:
>
>
>
>
> --
> View this message in context: http://grails.1312388.n4.nabble.com/Cannot-deploy-grails-application-to-tomcat-on-CentOS-tp4640248p4640263.html
> Sent from the Grails - user mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>      http://xircles.codehaus.org/manage_email
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


dev
Reply | Threaded
Open this post in threaded view
|

Re: Cannot deploy grails application to tomcat on CentOS

dev
In reply to this post by sergiomichels
Hi Sergio

This was the line causing the problem:

static showSubnav = Boolean.true

Crap, thats not used anywhere. And of course, the compiler does not complain....

Thanks for your help anyway!

Tom


Am 16.01.2013 14:31, schrieb Sergio Michels:
I'm using something similar a BaseController and I left in the controllers folder. Can you post your controller code?

--
Sérgio Michels


On Wed, Jan 16, 2013 at 11:22 AM, dev <[hidden email]> wrote:
Hi guys, I just postet my environment, but the BaseController is from me!

I have added a new BaseClass for Controllers and one for Domains (named BaseDomain). I put in things I use in all controlers / domains and do not want to rewrite all the time. So I do things like

class myControler extends BaseControler {

...
}

and

class myDomain extends BaseDomain {
  ....
}

I put BaseDomain in src/groovy/[package name]/BaseDomain.groovy

BUT I left BaseController in grails-app/controllers/[packagename]/BaseControler.groovy. It has nothing usefull in it yet, just used BaseDomain sofar.

Could that be the problem??? Do I have to put this file also in src/groovy??


Tom

---------------


This is where you want to look:

    at org.grailstestspace.BaseController.<clinit>(BaseController.groovy)

<clinit> is usually a static field - is there a static variable in that
class that is causing this?





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email