Tema: Error Grails
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/06/2010, 10:06
Huzebio
 
Fecha de Ingreso: junio-2010
Mensajes: 3
Antigüedad: 14 años, 5 meses
Puntos: 0
Error Grails

Buenas, estoy trabajando con Groovy & Grails en Netbeans 6.8, iba todo bien hasta que una de las veces que he refrescado el explorador para comprobar lo que había hecho, me ha petado y ha dejado de funcionar. He recuperado el código de la aplicación antes de que dejara de funcionar y no hay manera. La salida de Netbeans me da el siguiente error:


Cita:
ERROR context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'messageSource': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.hibernate.MappingException: Type [null] is not a basic type or a domain class and cannot be mapped. Either specify a type within the [mapping] block or use a basic type (String, Integer etc.)
at java.security.AccessController.doPrivileged(Native Method)
at grails.web.container.EmbeddableServer$start.call(U nknown Source)
at _GrailsRun_groovy$_run_closure5_closure11.doCall(_ GrailsRun_groovy:145)
at _GrailsRun_groovy$_run_closure5_closure11.doCall(_ GrailsRun_groovy)
at _GrailsSettings_groovy$_run_closure10.doCall(_Grai lsSettings_groovy:274)
at _GrailsSettings_groovy$_run_closure10.call(_Grails Settings_groovy)
at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_ groovy:137)
at _GrailsRun_groovy$_run_closure5.call(_GrailsRun_gr oovy)
at _GrailsRun_groovy.runInline(_GrailsRun_groovy:104)
at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groo vy)
at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_ groovy:58)
at RunApp$_run_closure1.doCall(RunApp.groovy:33)
at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:32 4)
at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:33 4)
at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
at gant.Gant.withBuildListeners(Gant.groovy:344)
at gant.Gant.this$2$withBuildListeners(Gant.groovy)
at gant.Gant$this$2$withBuildListeners.callCurrent(Un known Source)
at gant.Gant.dispatch(Gant.groovy:334)
at gant.Gant.this$2$dispatch(Gant.groovy)
at gant.Gant.invokeMethod(Gant.groovy)
at gant.Gant.processTargets(Gant.groovy:495)
at gant.Gant.processTargets(Gant.groovy:480)
Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.hibernate.MappingException: Type [null] is not a basic type or a domain class and cannot be mapped. Either specify a type within the [mapping] block or use a basic type (String, Integer etc.)
at java.security.AccessController.doPrivileged(Native Method)
... 23 more
Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.hibernate.MappingException: Type [null] is not a basic type or a domain class and cannot be mapped. Either specify a type within the [mapping] block or use a basic type (String, Integer etc.)
at java.security.AccessController.doPrivileged(Native Method)
... 24 more
Caused by: org.hibernate.MappingException: Type [null] is not a basic type or a domain class and cannot be mapped. Either specify a type within the [mapping] block or use a basic type (String, Integer etc.)
... 25 more
2010-06-10 17:51:36,911 [main] ERROR mortbay.log - Failed startup of context org.mortbay.jetty.webapp.WebAppContext@381172c5{/ntsi,/Volumes/HUZEBIO/NTSI/ntsi/web-app}
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'messageSource': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.hibernate.MappingException: Type [null] is not a basic type or a domain class and cannot be mapped. Either specify a type within the [mapping] block or use a basic type (String, Integer etc.)
at java.security.AccessController.doPrivileged(Native Method)
at grails.web.container.EmbeddableServer$start.call(U nknown Source)
at _GrailsRun_groovy$_run_closure5_closure11.doCall(_ GrailsRun_groovy:145)
at _GrailsRun_groovy$_run_closure5_closure11.doCall(_ GrailsRun_groovy)
at _GrailsSettings_groovy$_run_closure10.doCall(_Grai lsSettings_groovy:274)
at _GrailsSettings_groovy$_run_closure10.call(_Grails Settings_groovy)
at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_ groovy:137)
at _GrailsRun_groovy$_run_closure5.call(_GrailsRun_gr oovy)
at _GrailsRun_groovy.runInline(_GrailsRun_groovy:104)
at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groo vy)
at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_ groovy:58)
at RunApp$_run_closure1.doCall(RunApp.groovy:33)
at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:32 4)
at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:33 4)
at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
at gant.Gant.withBuildListeners(Gant.groovy:344)
at gant.Gant.this$2$withBuildListeners(Gant.groovy)
at gant.Gant$this$2$withBuildListeners.callCurrent(Un known Source)
at gant.Gant.dispatch(Gant.groovy:334)
at gant.Gant.this$2$dispatch(Gant.groovy)
at gant.Gant.invokeMethod(Gant.groovy)
at gant.Gant.processTargets(Gant.groovy:495)
at gant.Gant.processTargets(Gant.groovy:480)

(... sigue en el siguiente mensaje ...)


A ver si alguien me da una idea de cómo solucionarlo.
Muchas gracias!!