Announcement Announcement Module
Collapse
No announcement yet.
grails run-app Error creating bean with name 'transa ctionManager' Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • grails run-app Error creating bean with name 'transa ctionManager'

    C:\Users\idor\Documents\workspace\hello\helloworld >grails run-app
    | Running Grails application
    | Error 2011-08-21 03:02:27,820 [Thread-7] ERROR context.GrailsContextLoader - Error executing bootstraps: Error creating bean with name 'messageSour
    ce': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'transa
    ctionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework
    .beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.spring
    framework.beans.BeanInstantiationException: Could not instantiate bean class [org.codehaus.groovy.grails.orm.hibernate.cfg.Grail sAnnotationConfigurati
    on]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/cfg/annotations/reflection/JPAMetadataProvider
    Line | Method
    ->> 303 | innerRun in java.util.concurrent.FutureTask$Sync
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    | 138 | run in java.util.concurrent.FutureTask
    | 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
    | 908 | run in ''
    ^ 662 | run . . in java.lang.Thread

    Caused by BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting b
    ean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'sessionFact
    ory': Invocation of init method failed; nested exception is org.springframework.beans.BeanInstantiationExcepti on: Could not instantiate bean class [or
    g.codehaus.groovy.grails.orm.hibernate.cfg.GrailsA nnotationConfiguration]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundE
    rror: org/hibernate/cfg/annotations/reflection/JPAMetadataProvider
    ->> 303 | innerRun in java.util.concurrent.FutureTask$Sync
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    | 138 | run in java.util.concurrent.FutureTask
    | 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
    | 908 | run in ''
    ^ 662 | run . . in java.lang.Thread

    Caused by BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.springframe
    work.beans.BeanInstantiationException: Could not instantiate bean class [org.codehaus.groovy.grails.orm.hibernate.cfg.Grail sAnnotationConfiguration]:
    Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/cfg/annotations/reflection/JPAMetadataProvider
    ->> 303 | innerRun in java.util.concurrent.FutureTask$Sync
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    | 138 | run in java.util.concurrent.FutureTask
    | 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
    | 908 | run in ''
    ^ 662 | run . . in java.lang.Thread

    Caused by BeanInstantiationException: Could not instantiate bean class [org.codehaus.groovy.grails.orm.hibernate.cfg.Grail sAnnotationConfiguration]: C
    onstructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/cfg/annotations/reflection/JPAMetadataProvider
    ->> 303 | innerRun in java.util.concurrent.FutureTask$Sync
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    | 138 | run in java.util.concurrent.FutureTask
    | 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
    | 908 | run in ''
    ^ 662 | run . . in java.lang.Thread

    Caused by NoClassDefFoundError: org/hibernate/cfg/annotations/reflection/JPAMetadataProvider
    ->> 303 | innerRun in java.util.concurrent.FutureTask$Sync
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    | 138 | run in java.util.concurrent.FutureTask
    | 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
    | 908 | run in ''
    ^ 662 | run . . in java.lang.Thread

    Caused by ClassNotFoundException: org.hibernate.cfg.annotations.reflection.JPAMetada taProvider
    ->> 202 | run in java.net.URLClassLoader$1
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    | 190 | findClass in java.net.URLClassLoader
    | 307 | loadClass in java.lang.ClassLoader
    | 248 | loadClass in ''
    | 303 | innerRun in java.util.concurrent.FutureTask$Sync
    | 138 | run in java.util.concurrent.FutureTask
    | 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
    | 908 | run in ''
    ^ 662 | run . . in java.lang.Thread


    my os :win7
    jdk 1.6.24
    grails:2.0M1
Working...
X