Announcement Announcement Module
Collapse
No announcement yet.
Can't find grails-gorm for Grails 2.1.1 anywhere Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can't find grails-gorm for Grails 2.1.1 anywhere

    I am having problems running my Grails 2.1.1 app on JBoss 4.2.3 GA.

    This time I am getting the exception below.

    This line:
    Caused by: groovy.lang.MissingPropertyException: No such property: onChange for class:
    org.codehaus.groovy.grails.plugins.orm.hibernate.H ibernatePluginSupport
    tells me that I am using the wrong version of grails-gorm.jar.

    This it true, since the latest version I could find anywhere is 1.3.7.
    However what I really need is a version compatible with Grails 2.1.1.
    The one the contains a version of class HibernatePluginSupport that has the property onChange.

    There are clues that this version exists somewhere...
    http://grails.org/doc/latest/guide/GORM.html
    http://grails.org/doc/latest/api/org....html#onChange
    So, where can I get grails-gorm 2.1.1?

    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'pluginManager' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.codehaus.groovy.grails.exceptions.NewInstanceC reationException: Could not create a new instance of class [HibernateGrailsPlugin]!
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1455)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:519)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:456)
    at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 94)
    at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:225)
    at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:291 )
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:193)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:591)
    at org.springframework.context.support.AbstractApplic ationContext.finishBeanFactoryInitialization(Abstr actApplicationContext.java:918)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:469)
    at org.springframework.web.context.ContextLoader.conf igureAndRefreshWebApplicationContext(ContextLoader .java:383)
    at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:283)
    at org.codehaus.groovy.grails.web.context.GrailsConte xtLoader.initWebApplicationContext(GrailsContextLo ader.java:66)
    ...
    Caused by: org.codehaus.groovy.grails.exceptions.NewInstanceC reationException: Could not create a new instance of class [HibernateGrailsPlugin]!
    at org.codehaus.groovy.grails.commons.AbstractGrailsC lass.newInstance(AbstractGrailsClass.java:120)
    at org.codehaus.groovy.grails.plugins.DefaultGrailsPl ugin.initialisePlugin(DefaultGrailsPlugin.java:139 )
    at org.codehaus.groovy.grails.plugins.DefaultGrailsPl ugin.<init>(DefaultGrailsPlugin.java:117)
    at org.codehaus.groovy.grails.plugins.DefaultGrailsPl ugin.<init>(DefaultGrailsPlugin.java:264)
    at org.codehaus.groovy.grails.plugins.DefaultGrailsPl uginManager.createGrailsPlugin(DefaultGrailsPlugin Manager.java:350)
    at org.codehaus.groovy.grails.plugins.DefaultGrailsPl uginManager.findUserPlugins(DefaultGrailsPluginMan ager.java:375)
    at org.codehaus.groovy.grails.plugins.DefaultGrailsPl uginManager.attemptLoadPlugins(DefaultGrailsPlugin Manager.java:287)
    at org.codehaus.groovy.grails.plugins.DefaultGrailsPl uginManager.loadPlugins(DefaultGrailsPluginManager .java:240)
    at org.codehaus.groovy.grails.plugins.GrailsPluginMan agerFactoryBean.afterPropertiesSet(GrailsPluginMan agerFactoryBean.java:105)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:1514)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1452)
    ... 145 more
    Caused by: groovy.lang.MissingPropertyException: No such property: onChange for class: org.codehaus.groovy.grails.plugins.orm.hibernate.H ibernatePluginSupport
    at groovy.lang.MetaClassImpl.invokeStaticMissingPrope rty(MetaClassImpl.java:876)
    at groovy.lang.MetaClassImpl.getProperty(MetaClassImp l.java:1609)
    at groovy.lang.ExpandoMetaClass.getProperty(ExpandoMe taClass.java:1099)
    at groovy.lang.MetaClassImpl.getProperty(MetaClassImp l.java:1585)
    at groovy.lang.ExpandoMetaClass.getProperty(ExpandoMe taClass.java:1099)
    at groovy.lang.MetaClassImpl.getProperty(MetaClassImp l.java:3311)
    at groovy.lang.ExpandoMetaClass.getProperty(ExpandoMe taClass.java:1111)
    at org.codehaus.groovy.runtime.callsite.ClassMetaClas sGetPropertySite.getProperty(ClassMetaClassGetProp ertySite.java:48)
    at org.codehaus.groovy.runtime.callsite.AbstractCallS ite.callGetProperty(AbstractCallSite.java:235)
    at HibernateGrailsPlugin.<init>(HibernateGrailsPlugin .groovy:45)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Construc tor.java:513)
    at org.codehaus.groovy.grails.commons.AbstractGrailsC lass.newInstance(AbstractGrailsClass.java:110)
    ... 155 more

    Thanks,
    Shai
    Last edited by shaiw; Dec 6th, 2012, 10:17 AM.

  • #2
    It appears I was looking in the wrong place.
    According to findjar.com the class org.codehaus.groovy.grails.plugins.orm.hibernate.H ibernatePluginSupport was in grails-gorm jar.
    However in Grails version 2.1.1 it was found in grails-hibernate-2.1.1.jar.
    After adding this dependency to .war/lib the problem was solved.

    Cheers,
    Shai

    Comment

    Working...
    X