views:

1400

answers:

0

Hi guys! I upgraded my Grails 1.0.4 application to 1.1. I also upgraded from acegi 0.4.1 to 0.5.1!

I had some problems but i'm working on it and i think this is my last problem. When i start my grails application i get the following error message:

 loading security config ...                                                                                                                                                         
2009-04-23 17:07:01,731 [main] ERROR context.ContextLoader  - Context initialization failed                                                                                         
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSource': 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 java.lang.NullPointerException                                                                                                                                                       
        at java.security.AccessController.doPrivileged(Native Method)                                                                                                               
        at grails.web.container.EmbeddableServer$start.call(Unknown 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(_GrailsSettings_groovy:269)                                                                                                 
        at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:137)                                                                                                            
        at _GrailsRun_groovy.runInline(_GrailsRun_groovy:104)                                                                                                                       
        at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)                                                                                                                    
        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:324)                                                                                                                     
        at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334)                                                                                                                     
        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(Unknown 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.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 java.lang.NullPointerException                                                                                                                   
        at java.security.AccessController.doPrivileged(Native Method)                                                                                                               
        ... 21 more                                                                                                                                                                 
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NullPointerException                                                                                                                                                                
        at java.security.AccessController.doPrivileged(Native Method)                                                                                                               
        ... 22 more                                                                                                                                                                 
Caused by: java.lang.NullPointerException                                                                                                                                           
        ... 23 more                                                                                                                                                                 
2009-04-23 17:07:01,732 [main] ERROR mortbay.log  - Failed startup of context org.mortbay.jetty.webapp.WebAppContext@50d7c5{/scooter,/home/whitenexx/Projekte/scootermarket/web-app}
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSource': 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 java.lang.NullPointerException                                                                                                                                                       
        at java.security.AccessController.doPrivileged(Native Method)                                                                                                               
        at grails.web.container.EmbeddableServer$start.call(Unknown 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(_GrailsSettings_groovy:269)                                                                                                 
        at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:137)                                                                                                            
        at _GrailsRun_groovy.runInline(_GrailsRun_groovy:104)                                                                                                                       
        at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)                                                                                                                    
        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:324)                                                                                                                     
        at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334)                                                                                                                     
        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(Unknown 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.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 java.lang.NullPointerException                                                                                                                   
        at java.security.AccessController.doPrivileged(Native Method)
        ... 21 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is java.lang.NullPointerException
        at java.security.AccessController.doPrivileged(Native Method)
        ... 22 more
Caused by: java.lang.NullPointerException
        ... 23 more
2009-04-23 17:07:01,733 [main] ERROR mortbay.log  - Nested in org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSource': 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 java.lang.NullPointerException:
java.lang.NullPointerException
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessController.doPrivileged(Native Method)
        at grails.web.container.EmbeddableServer$start.call(Unknown 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(_GrailsSettings_groovy:269)
        at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:137)
        at _GrailsRun_groovy.runInline(_GrailsRun_groovy:104)
        at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)
        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:324)
        at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334)
        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(Unknown 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)

I think there is a problem with acegi plugin. Maybe someone knows what to do now? I can't find my mistake.