History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GRAILS-1659
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Graeme Rocher
Reporter: Maxwell Chiareli
Votes: 1
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Grails

Error on generate, using java entity beans

Created: 01/Oct/07 03:20 PM   Updated: 01/Oct/07 03:20 PM
Component/s: Scaffolding
Affects Version/s: 0.6
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. Zip Archive tuscadmin.zip (729 kb)

Environment: Using grails 0.6, eclipse 3.3, java 1.6

Patch Submitted: Yes


 Description  « Hide
When i try generate controller, view or all to my java entity class (with annotation) the error occurs

My project is attached

C:\java\workspace\tuscadmin>grails generate-controller

Welcome to Grails 0.6 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: C:\java\grails-0.6

Base Directory: C:\java\workspace\tuscadmin
Environment set to development
Note: No plugin scripts found
Running script C:\java\grails-0.6\scripts\GenerateController.groovy
Caching script GenerateController_groovy to dir C:\Documents and Settings\saomxand\.grails\0.6\scriptCache
Caching script GenerateAll_groovy to dir C:\Documents and Settings\saomxand\.grails\0.6\scriptCache
Domain Class name not specified. Please enter:
tuscadmin.entity.Location
Domain class not found in grails-app/domain, trying hibernate mapped classes...
Error creating bean with name 'jspViewResolver': Cannot resolve reference to bean 'pluginMetaManager' while setting bean
property 'pluginMetaManager'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No b
ean named 'pluginMetaManager' is defined
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jspViewResolver': Cannot resolve
reference to bean 'pluginMetaManager' while setting bean property 'pluginMetaManager'; nested exception is org.springfr
amework.beans.factory.NoSuchBeanDefinitionException: No bean named 'pluginMetaManager' is defined
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'pluginMetaManager' is defined

at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFac
tory.java:340)
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.jav
a:906)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueRes
olver.java:242)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionV
alueResolver.java:124)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAuto
wireCapableBeanFactory.java:1019)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCap
ableBeanFactory.java:809)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapab
leBeanFactory.java:425)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:250)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegis
try.java:141)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:247)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListable
BeanFactory.java:273)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346)
at org.codehaus.groovy.grails.commons.spring.DefaultRuntimeSpringConfiguration.getApplicationContext(DefaultRunt
imeSpringConfiguration.java:90)
at org.codehaus.groovy.grails.commons.spring.GrailsRuntimeConfigurator.configure(GrailsRuntimeConfigurator.java:
261)
at org.codehaus.groovy.grails.commons.spring.GrailsRuntimeConfigurator.configure(GrailsRuntimeConfigurator.java:
232)
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.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:58)
at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:678)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:689)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:894)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:531)
at org.codehaus.groovy.runtime.Invoker.invokePojoMethod(Invoker.java:104)
at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:77)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:85)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:159)
at GenerateAll_groovy$_run_closure2.doCall(GenerateAll_groovy:73)
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.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:58)
at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:678)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:689)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:894)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:531)
at groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java:128)
at org.codehaus.groovy.gant.GantMetaClass.invokeMethod(GantMetaClass.java:70)
at org.codehaus.groovy.gant.GantMetaClass.invokeMethod(GantMetaClass.java:81)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:67)
at GenerateAll_groovy$_run_closure2.doCall(GenerateAll_groovy)
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.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:58)
at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:678)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:689)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:894)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:531)
at groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java:128)
at org.codehaus.groovy.gant.GantMetaClass.invokeMethod(GantMetaClass.java:70)
at groovy.lang.Closure.call(Closure.java:290)
at groovy.lang.Script.invokeMethod(Script.java:87)
at groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.java:721)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:671)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:894)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:531)
at groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java:128)
at org.codehaus.groovy.gant.GantMetaClass.invokeMethod(GantMetaClass.java:70)
at org.codehaus.groovy.gant.GantMetaClass.invokeMethod(GantMetaClass.java:81)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:67)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrent0(ScriptBytecodeAdapter.java:100)
at GenerateController_groovy$_run_closure1.doCall(GenerateController_groovy:38)
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.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:58)
at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:678)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:689)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:894)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:531)
at groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java:128)
at org.codehaus.groovy.gant.GantMetaClass.invokeMethod(GantMetaClass.java:70)
at org.codehaus.groovy.gant.GantMetaClass.invokeMethod(GantMetaClass.java:81)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:67)
at GenerateController_groovy$_run_closure1.doCall(GenerateController_groovy)
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.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:58)
at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:678)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:689)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:894)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:531)
at groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java:128)
at org.codehaus.groovy.gant.GantMetaClass.invokeMethod(GantMetaClass.java:70)
at groovy.lang.Closure.call(Closure.java:290)
at groovy.lang.Closure.call(Closure.java:285)
at groovy.lang.Closure.run(Closure.java:366)
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.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:58)
at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:678)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:689)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:894)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:531)
at groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java:128)
at org.codehaus.groovy.gant.GantMetaClass.invokeMethod(GantMetaClass.java:70)
at org.codehaus.groovy.runtime.Invoker.invokePogoMethod(Invoker.java:115)
at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:81)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:85)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:159)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod0(ScriptBytecodeAdapter.java:202)
at gant.Gant.dispatch(Gant.groovy:152)
at gant.Gant.this$2$dispatch(Gant.groovy)
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.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:58)
at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:678)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:689)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:894)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:531)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:505)
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.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:58)
at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:678)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:689)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:531)
at org.codehaus.groovy.runtime.Invoker.invokePogoMethod(Invoker.java:115)
at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:81)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:85)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:159)
at gant.Gant.invokeMethod(Gant.groovy)
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.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:58)
at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:678)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:689)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:894)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:67)
at gant.Gant.process(Gant.groovy:287)
at gant.Gant.this$2$process(Gant.groovy)
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.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:58)
at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:678)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:689)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:894)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:531)
at org.codehaus.groovy.runtime.Invoker.invokePogoMethod(Invoker.java:115)
at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:81)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:85)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:159)
at gant.Gant.main(Gant.groovy:298)
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.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:58)
at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:678)
at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:831)
at groovy.lang.ExpandoMetaClass.invokeStaticMethod(ExpandoMetaClass.java:905)
at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:71)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:85)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:159)
at org.codehaus.groovy.grails.cli.GrailsScriptRunner.callPluginOrGrailsScript(GrailsScriptRunner.groovy:184)
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.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:58)
at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:678)
at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:831)
at groovy.lang.ExpandoMetaClass.invokeStaticMethod(ExpandoMetaClass.java:905)
at org.codehaus.groovy.runtime.Invoker.invokeStaticMethod(Invoker.java:138)
at org.codehaus.groovy.runtime.InvokerHelper.invokeStaticMethod(InvokerHelper.java:100)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeStaticMethodN(ScriptBytecodeAdapter.java:219)
at org.codehaus.groovy.grails.cli.GrailsScriptRunner.main(GrailsScriptRunner.groovy:123)
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.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:101)
at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:130)
No domain class found for name tuscadmin.entity.Location. Please try again and enter a valid domain class name
C:\java\workspace\tuscadmin>



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.