context.ContextLoader Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'basicProcessingFilter': Cannot resolve reference to bean 'authentication
Manager' while setting bean property 'authenticationManager'; nested exception i
s org.springframework.beans.factory.BeanCreationException: Error creating bean w
ith name 'authenticationManager': Cannot resolve reference to bean 'daoAuthentic
ationProvider' while setting bean property 'providers' with key [0]; nested exce
ption is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'daoAuthenticationProvider': Cannot resolve reference to bean 'u
serDetailsService' while setting bean property 'userDetailsService'; nested exce
ption is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'userDetailsService': Cannot resolve reference to bean 'authenti
cateService' while setting bean property 'authenticateService'; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'authenticateService': Initialization of bean failed; nested exceptio
n is org.springframework.beans.factory.BeanCreationException: Error creating bea
n with name 'objectDefinitionSource': Invocation of init method failed; nested e
xception is java.lang.IllegalArgumentException: sessionFactory is required
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1305)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.populateBean(AbstractAutowireCapableBeanFactory.java:1067)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
at org.codehaus.groovy.grails.commons.spring.ReloadAwareAutowireCapableB
eanFactory.doCreateBean(ReloadAwareAutowireCapableBeanFactory.java:129)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
an(AbstractBeanFactory.java:287)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:189)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:557)
at org.springframework.context.support.AbstractApplicationContext.finish
BeanFactoryInitialization(AbstractApplicationContext.java:842)
at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:416)
at org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext
.refresh(GrailsWebApplicationContext.java:153)
at org.codehaus.groovy.grails.commons.spring.DefaultRuntimeSpringConfigu
ration.getApplicationContext(DefaultRuntimeSpringConfiguration.java:154)
at org.codehaus.groovy.grails.commons.spring.GrailsRuntimeConfigurator.c
onfigure(GrailsRuntimeConfigurator.java:170)
at org.codehaus.groovy.grails.commons.spring.GrailsRuntimeConfigurator.c
onfigure(GrailsRuntimeConfigurator.java:131)
at org.codehaus.groovy.grails.web.context.GrailsConfigUtils.configureWeb
ApplicationContext(GrailsConfigUtils.java:102)
at org.codehaus.groovy.grails.web.context.GrailsContextLoader.createWebA
pplicationContext(GrailsContextLoader.java:69)
at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:192)
at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:47)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3934)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
429)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
1)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:987)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:909)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:314)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
at org.apache.catalina.core.StandardService.start(StandardService.java:5
16)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creati
ng bean with name 'authenticationManager': Cannot resolve reference to bean 'dao
AuthenticationProvider' while setting bean property 'providers' with key [0]; ne
sted exception is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'daoAuthenticationProvider': Cannot resolve reference t
o bean 'userDetailsService' while setting bean property 'userDetailsService'; ne
sted exception is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'userDetailsService': Cannot resolve reference to bean
'authenticateService' while setting bean property 'authenticateService'; nested
exception is org.springframework.beans.factory.BeanCreationException: Error crea
ting bean with name 'authenticateService': Initialization of bean failed; nested
exception is org.springframework.beans.factory.BeanCreationException: Error cre
ating bean with name 'objectDefinitionSource': Invocation of init method failed;
nested exception is java.lang.IllegalArgumentException: sessionFactory is requi
red
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveManagedList(BeanDefinitionValueResolver.java:355)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1305)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.populateBean(AbstractAutowireCapableBeanFactory.java:1067)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
at org.codehaus.groovy.grails.commons.spring.ReloadAwareAutowireCapableB
eanFactory.doCreateBean(ReloadAwareAutowireCapableBeanFactory.java:129)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
an(AbstractBeanFactory.java:287)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:189)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveReference(BeanDefinitionValueResolver.java:322)
... 45 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creati
ng bean with name 'daoAuthenticationProvider': Cannot resolve reference to bean
'userDetailsService' while setting bean property 'userDetailsService'; nested ex
ception is org.springframework.beans.factory.BeanCreationException: Error creati
ng bean with name 'userDetailsService': Cannot resolve reference to bean 'authen
ticateService' while setting bean property 'authenticateService'; nested excepti
on is org.springframework.beans.factory.BeanCreationException: Error creating be
an with name 'authenticateService': Initialization of bean failed; nested except
ion is org.springframework.beans.factory.BeanCreationException: Error creating b
ean with name 'objectDefinitionSource': Invocation of init method failed; nested
exception is java.lang.IllegalArgumentException: sessionFactory is required
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1305)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.populateBean(AbstractAutowireCapableBeanFactory.java:1067)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
at org.codehaus.groovy.grails.commons.spring.ReloadAwareAutowireCapableB
eanFactory.doCreateBean(ReloadAwareAutowireCapableBeanFactory.java:129)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
an(AbstractBeanFactory.java:287)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:189)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveReference(BeanDefinitionValueResolver.java:322)
... 58 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creati
ng bean with name 'userDetailsService': Cannot resolve reference to bean 'authen
ticateService' while setting bean property 'authenticateService'; nested excepti
on is org.springframework.beans.factory.BeanCreationException: Error creating be
an with name 'authenticateService': Initialization of bean failed; nested except
ion is org.springframework.beans.factory.BeanCreationException: Error creating b
ean with name 'objectDefinitionSource': Invocation of init method failed; nested
exception is java.lang.IllegalArgumentException: sessionFactory is required
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1305)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.populateBean(AbstractAutowireCapableBeanFactory.java:1067)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
at org.codehaus.groovy.grails.commons.spring.ReloadAwareAutowireCapableB
eanFactory.doCreateBean(ReloadAwareAutowireCapableBeanFactory.java:129)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
an(AbstractBeanFactory.java:287)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:189)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveReference(BeanDefinitionValueResolver.java:322)
... 69 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creati
ng bean with name 'authenticateService': Initialization of bean failed; nested e
xception is org.springframework.beans.factory.BeanCreationException: Error creat
ing bean with name 'objectDefinitionSource': Invocation of init method failed; n
ested exception is java.lang.IllegalArgumentException: sessionFactory is require
d
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.codehaus.groovy.grails.commons.spring.ReloadAwareAutowireCapableB
eanFactory.doCreateBean(ReloadAwareAutowireCapableBeanFactory.java:129)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
an(AbstractBeanFactory.java:287)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:189)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveReference(BeanDefinitionValueResolver.java:322)
... 80 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creati
ng bean with name 'objectDefinitionSource': Invocation of init method failed; ne
sted exception is java.lang.IllegalArgumentException: sessionFactory is required
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1401)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)
at org.codehaus.groovy.grails.commons.spring.ReloadAwareAutowireCapableB
eanFactory.doCreateBean(ReloadAwareAutowireCapableBeanFactory.java:129)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
an(AbstractBeanFactory.java:287)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:189)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.autowireByName(AbstractAutowireCapableBeanFactory.java:1085)
at org.codehaus.groovy.grails.commons.spring.ReloadAwareAutowireCapableB
eanFactory.autowireByName(ReloadAwareAutowireCapableBeanFactory.java:175)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.populateBean(AbstractAutowireCapableBeanFactory.java:1035)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
... 87 more
Caused by: java.lang.IllegalArgumentException: sessionFactory is required
at org.springframework.util.Assert.notNull(Assert.java:112)
at org.codehaus.groovy.grails.plugins.springsecurity.RequestmapFilterInv
ocationDefinition.afterPropertiesSet(RequestmapFilterInvocationDefinition.java:1
66)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1460)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1398)
... 98 more
2010-7-30 10:50:42 org.apache.catalina.core.StandardContext start
GRAILS在发布成WAR包在TOMCAT6中运行出现这个错误,解决办法:
在grails>下输入clean
再重先生成WAR,问题解决
天苍苍,野茫茫,风吹草底见牛羊