I am working to set up grails on a local system and am working through the tutorials at: http://www.youtube.com/watch?v=PXHxo43hn34&feature=relmfu
然而,所有控制器和域名类文件都正确编译, 但我每次尝试执行应用程序时都会收到以下错误:
我安装插件有困难, 因为无法访问commonnets, 安装了所有我能找到的必要的插件, 但不确定这些插件是否是问题的根源。
| Loading Grails 2.0.4
| Configuring classpath.
| Environment set to development.....
| Packaging Grails application.....
| Compiling 1 source files.....
| Running Grails application
| Error 2012-05-24 10:24:21,801 [pool-7-thread-1] ERROR context.GrailsContextLoader - Error executing bootstraps: Error creating bean with name transactionManagerPostProcessor : Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name transactionManager : 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.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: org.example.pomodoro.Task.details() is applicable for argument types: (java.util.LinkedHashMap) values: [[blank:false]]
Possible solutions: getAll(), getDetials(), getTags(), getId(), equals(java.lang.Object), setDetials(java.lang.String)
Message: Error creating bean with name transactionManagerPostProcessor : Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name transactionManager : 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.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: org.example.pomodoro.Task.details() is applicable for argument types: (java.util.LinkedHashMap) values: [[blank:false]]
Possible solutions: getAll(), getDetials(), getTags(), getId(), equals(java.lang.Object), setDetials(java.lang.String)
Line | Method
->> 334 | innerRun in java.util.concurrent.FutureTask$Sync
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 166 | run in java.util.concurrent.FutureTask
| 1110 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 603 | run in java.util.concurrent.ThreadPoolExecutor$Worker
^ 722 | run . . . in java.lang.Thread
Caused by BeanCreationException: Error creating bean with name transactionManager : 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.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: org.example.pomodoro.Task.details() is applicable for argument types: (java.util.LinkedHashMap) values: [[blank:false]]
Possible solutions: getAll(), getDetials(), getTags(), getId(), equals(java.lang.Object), setDetials(java.lang.String)
->> 334 | innerRun in java.util.concurrent.FutureTask$Sync
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 166 | run in java.util.concurrent.FutureTask
| 1110 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 603 | run in java.util.concurrent.ThreadPoolExecutor$Worker
^ 722 | run . . . in java.lang.Thread
Caused by BeanCreationException: Error creating bean with name sessionFactory : Invocation of init method failed; nested exception is org.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: org.example.pomodoro.Task.details() is applicable for argument types: (java.util.LinkedHashMap) values: [[blank:false]]
Possible solutions: getAll(), getDetials(), getTags(), getId(), equals(java.lang.Object), setDetials(java.lang.String)
->> 334 | innerRun in java.util.concurrent.FutureTask$Sync
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 166 | run in java.util.concurrent.FutureTask
| 1110 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 603 | run in java.util.concurrent.ThreadPoolExecutor$Worker
^ 722 | run . . . in java.lang.Thread
Caused by InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: org.example.pomodoro.Task.details() is applicable for argument types: (java.util.LinkedHashMap) values: [[blank:false]]
Possible solutions: getAll(), getDetials(), getTags(), getId(), equals(java.lang.Object), setDetials(java.lang.String)
->> 334 | innerRun in java.util.concurrent.FutureTask$Sync
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 166 | run in java.util.concurrent.FutureTask
| 1110 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 603 | run in java.util.concurrent.ThreadPoolExecutor$Worker
^ 722 | run . . . in java.lang.Thread
Caused by MissingMethodException: No signature of method: org.example.pomodoro.Task.details() is applicable for argument types: (java.util.LinkedHashMap) values: [[blank:false]]
Possible solutions: getAll(), getDetials(), getTags(), getId(), equals(java.lang.Object), setDetials(java.lang.String)
->> 16 | doCall in org.example.pomodoro.Task$__clinit__closure1
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 334 | innerRun in java.util.concurrent.FutureTask$Sync
| 166 | run . . . in java.util.concurrent.FutureTask
| 1110 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 603 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^ 722 | run in java.lang.Thread
谢谢你的帮助