dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #23933
startup error
hi,sir,
trunk version, got these errors :
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with
name 'org.hisp.dhis.report.ReportStore': Injection of autowired dependencies failed; nested
exception is org.springframework.beans.factory.BeanCreationException: Could not autowire fi
eld: private org.hisp.dhis.user.CurrentUserService org.hisp.dhis.hibernate.HibernateGenericS
tore.currentUserService; nested exception is org.springframework.beans.factory.BeanCreationE
xception: Error creating bean with name 'org.hisp.dhis.user.CurrentUserService' defined in U
RL [jar:file:/D:/tomcat/apache-tomcat-7.0.42/webapps/dhis/WEB-INF/lib/dhis-service-core-2.13
-SNAPSHOT.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean 'org.hisp.dhis.use
r.UserService' while setting bean property 'userService'; nested exception is org.springfram
ework.beans.factory.BeanCreationException: Error creating bean with name 'org.hisp.dhis.user
.UserService' defined in URL [jar:file:/D:/tomcat/apache-tomcat-7.0.42/webapps/dhis/WEB-INF/
lib/dhis-service-core-2.13-SNAPSHOT.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference
to bean 'org.hisp.dhis.user.UserStore' while setting bean property 'userStore'; nested excep
tion is org.springframework.beans.factory.BeanCreationException: Error creating bean with na
me 'org.hisp.dhis.user.UserStore' defined in URL [jar:file:/D:/tomcat/apache-tomcat-7.0.42/w
ebapps/dhis/WEB-INF/lib/dhis-service-core-2.13-SNAPSHOT.jar!/META-INF/dhis/beans.xml]: Canno
t resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; n
ested exception is org.springframework.beans.factory.BeanCreationException: Error creating b
ean with name 'sessionFactory' defined in URL [jar:file:/D:/tomcat/apache-tomcat-7.0.42/weba
pps/dhis/WEB-INF/lib/dhis-support-hibernate-2.13-SNAPSHOT.jar!/META-INF/dhis/beans.xml]: Inv
ocation of init method failed; nested exception is org.hibernate.InvalidMappingException: Co
uld not parse mapping document from input stream
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor
.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:288)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.popu
lateBean(AbstractAutowireCapableBeanFactory.java:1116)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCr
eateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.crea
teBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstrac
tBeanFactory.java:295)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSinglet
on(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractB
eanFactory.java:292)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBea
nFactory.java:194)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveRefe
rence(BeanDefinitionValueResolver.java:323)
... 84 more
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field
: private org.hisp.dhis.user.CurrentUserService org.hisp.dhis.hibernate.HibernateGenericStor
e.currentUserService; nested exception is org.springframework.beans.factory.BeanCreationExce
ption: Error creating bean with name 'org.hisp.dhis.user.CurrentUserService' defined in URL
[jar:file:/D:/tomcat/apache-tomcat-7.0.42/webapps/dhis/WEB-INF/lib/dhis-service-core-2.13-SN
APSHOT.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean 'org.hisp.dhis.user.U
serService' while setting bean property 'userService'; nested exception is org.springframewo
rk.beans.factory.BeanCreationException: Error creating bean with name 'org.hisp.dhis.user.Us
erService' defined in URL [jar:file:/D:/tomcat/apache-tomcat-7.0.42/webapps/dhis/WEB-INF/lib
/dhis-service-core-2.13-SNAPSHOT.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to
bean 'org.hisp.dhis.user.UserStore' while setting bean property 'userStore'; nested exceptio
n is org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'org.hisp.dhis.user.UserStore' defined in URL [jar:file:/D:/tomcat/apache-tomcat-7.0.42/weba
pps/dhis/WEB-INF/lib/dhis-service-core-2.13-SNAPSHOT.jar!/META-INF/dhis/beans.xml]: Cannot r
esolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nest
ed exception is org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'sessionFactory' defined in URL [jar:file:/D:/tomcat/apache-tomcat-7.0.42/webapps
/dhis/WEB-INF/lib/dhis-support-hibernate-2.13-SNAPSHOT.jar!/META-INF/dhis/beans.xml]: Invoca
tion of init method failed; nested exception is org.hibernate.InvalidMappingException: Could
not parse mapping document from input stream
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor
$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:514)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMe
tadata.java:87)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor
.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:285)
... 92 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with
name 'org.hisp.dhis.user.CurrentUserService' defined in URL [jar:file:/D:/tomcat/apache-tom
cat-7.0.42/webapps/dhis/WEB-INF/lib/dhis-service-core-2.13-SNAPSHOT.jar!/META-INF/dhis/beans
.xml]: Cannot resolve reference to bean 'org.hisp.dhis.user.UserService' while setting bean
property 'userService'; nested exception is org.springframework.beans.factory.BeanCreationEx
ception: Error creating bean with name 'org.hisp.dhis.user.UserService' defined in URL [jar:
file:/D:/tomcat/apache-tomcat-7.0.42/webapps/dhis/WEB-INF/lib/dhis-service-core-2.13-SNAPSHO
T.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean 'org.hisp.dhis.user.UserSt
ore' while setting bean property 'userStore'; nested exception is org.springframework.beans.
factory.BeanCreationException: Error creating bean with name 'org.hisp.dhis.user.UserStore'
defined in URL [jar:file:/D:/tomcat/apache-tomcat-7.0.42/webapps/dhis/WEB-INF/lib/dhis-servi
ce-core-2.13-SNAPSHOT.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean 'sessi
onFactory' while setting bean property 'sessionFactory'; nested exception is org.springframe
work.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' def
ined in URL [jar:file:/D:/tomcat/apache-tomcat-7.0.42/webapps/dhis/WEB-INF/lib/dhis-support-
hibernate-2.13-SNAPSHOT.jar!/META-INF/dhis/beans.xml]: Invocation of init method failed; nes
ted exception is org.hibernate.InvalidMappingException: Could not parse mapping document fro
m input stream
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveRefe
rence(BeanDefinitionValueResolver.java:329)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValu
eIfNecessary(BeanDefinitionValueResolver.java:107)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.appl
yPropertyValues(AbstractAutowireCapableBeanFactory.java:1387)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.popu
lateBean(AbstractAutowireCapableBeanFactory.java:1128)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCr
eateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.crea
teBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstrac
tBeanFactory.java:295)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSinglet
on(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractB
eanFactory.java:292)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBea
nFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowire
Candidates(DefaultListableBeanFactory.java:910)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDep
endency(DefaultListableBeanFactory.java:853)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDepen
dency(DefaultListableBeanFactory.java:768)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor
$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:486)
... 94 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with
name 'org.hisp.dhis.user.UserService' defined in URL [jar:file:/D:/tomcat/apache-tomcat-7.0
.42/webapps/dhis/WEB-INF/lib/dhis-service-core-2.13-SNAPSHOT.jar!/META-INF/dhis/beans.xml]:
Cannot resolve reference to bean 'org.hisp.dhis.user.UserStore' while setting bean property
'userStore'; nested exception is org.springframework.beans.factory.BeanCreationException: Er
ror creating bean with name 'org.hisp.dhis.user.UserStore' defined in URL [jar:file:/D:/tomc
at/apache-tomcat-7.0.42/webapps/dhis/WEB-INF/lib/dhis-service-core-2.13-SNAPSHOT.jar!/META-I
NF/dhis/beans.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean pro
perty 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationEx
ception: Error creating bean with name 'sessionFactory' defined in URL [jar:file:/D:/tomcat/
apache-tomcat-7.0.42/webapps/dhis/WEB-INF/lib/dhis-support-hibernate-2.13-SNAPSHOT.jar!/META
-INF/dhis/beans.xml]: Invocation of init method failed; nested exception is org.hibernate.In
validMappingException: Could not parse mapping document from input stream
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveRefe
rence(BeanDefinitionValueResolver.java:329)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValu
eIfNecessary(BeanDefinitionValueResolver.java:107)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.appl
yPropertyValues(AbstractAutowireCapableBeanFactory.java:1387)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.popu
lateBean(AbstractAutowireCapableBeanFactory.java:1128)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCr
eateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.crea
teBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstrac
tBeanFactory.java:295)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSinglet
on(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractB
eanFactory.java:292)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBea
nFactory.java:194)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveRefe
rence(BeanDefinitionValueResolver.java:323)
... 107 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with
name 'org.hisp.dhis.user.UserStore' defined in URL [jar:file:/D:/tomcat/apache-tomcat-7.0.4
2/webapps/dhis/WEB-INF/lib/dhis-service-core-2.13-SNAPSHOT.jar!/META-INF/dhis/beans.xml]: Ca
nnot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'
; nested exception is org.springframework.beans.factory.BeanCreationException: Error creatin
g bean with name 'sessionFactory' defined in URL [jar:file:/D:/tomcat/apache-tomcat-7.0.42/w
ebapps/dhis/WEB-INF/lib/dhis-support-hibernate-2.13-SNAPSHOT.jar!/META-INF/dhis/beans.xml]:
Invocation of init method failed; nested exception is org.hibernate.InvalidMappingException:
Could not parse mapping document from input stream
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveRefe
rence(BeanDefinitionValueResolver.java:329)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValu
eIfNecessary(BeanDefinitionValueResolver.java:107)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.appl
yPropertyValues(AbstractAutowireCapableBeanFactory.java:1387)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.popu
lateBean(AbstractAutowireCapableBeanFactory.java:1128)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCr
eateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.crea
teBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstrac
tBeanFactory.java:295)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSinglet
on(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractB
eanFactory.java:292)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBea
nFactory.java:194)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveRefe
rence(BeanDefinitionValueResolver.java:323)
... 117 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with
name 'sessionFactory' defined in URL [jar:file:/D:/tomcat/apache-tomcat-7.0.42/webapps/dhis
/WEB-INF/lib/dhis-support-hibernate-2.13-SNAPSHOT.jar!/META-INF/dhis/beans.xml]: Invocation
of init method failed; nested exception is org.hibernate.InvalidMappingException: Could not
parse mapping document from input stream
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.init
ializeBean(AbstractAutowireCapableBeanFactory.java:1482)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCr
eateBean(AbstractAutowireCapableBeanFactory.java:521)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.crea
teBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstrac
tBeanFactory.java:295)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSinglet
on(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractB
eanFactory.java:292)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBea
nFactory.java:194)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveRefe
rence(BeanDefinitionValueResolver.java:323)
... 127 more
Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from inpu
t stream
at org.hibernate.cfg.Configuration$MetadataSourceQueue.processHbmXml(Configuration.j
ava:3430)
at org.hibernate.cfg.Configuration$MetadataSourceQueue.processHbmXmlQueue(Configurat
ion.java:3419)
at org.hibernate.cfg.Configuration$MetadataSourceQueue.processMetadata(Configuration
.java:3407)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1336)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1737)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1788)
at org.springframework.orm.hibernate4.LocalSessionFactoryBuilder.buildSessionFactory
(LocalSessionFactoryBuilder.java:247)
at org.springframework.orm.hibernate4.LocalSessionFactoryBean.buildSessionFactory(Lo
calSessionFactoryBean.java:373)
at org.springframework.orm.hibernate4.LocalSessionFactoryBean.afterPropertiesSet(Loc
alSessionFactoryBean.java:358)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invo
keInitMethods(AbstractAutowireCapableBeanFactory.java:1541)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.init
ializeBean(AbstractAutowireCapableBeanFactory.java:1479)
... 134 more
Caused by: org.hibernate.DuplicateMappingException: Duplicate class/entity mapping org.hisp.
dhis.smscommand.SMSCode
at org.hibernate.cfg.Configuration$MappingsImpl.addClass(Configuration.java:2582)
at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:174)
at org.hibernate.cfg.Configuration$MetadataSourceQueue.processHbmXml(Configuration.j
ava:3427)
... 144 more
八月 15, 2013 4:21:18 下午 org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
八月 15, 2013 4:21:18 下午 org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/dhis] startup failed due to previous errors
* INFO 2013-08-15 16:21:18,230 De-registering jdbc driver: sun.jdbc.odbc.JdbcOdbcDriver@5ff
e49b5 (StartupListener.java [localhost-startStop-1])
八月 15, 2013 4:21:18 下午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapF
orLeaks
--
此致
莫愁前路无知己,天下谁人不识君。
Follow ups