← Back to team overview

dhis2-devs team mailing list archive

Re: Starting Tomcat problem

 

Did you create this war-file yourself? if you did, can you try out
http://apps.dhis2.org/ci/job/dhis-web-trunk/lastSuccessfulBuild/artifact/dhis-2/dhis-web/dhis-web-portal/target/dhis.war
? remember to clean everything before trying out new war..

Also, are you sure your hibernate.properties file is correct? I see it
complains about sessionFactory..

--
Morten



On Wed, Mar 14, 2012 at 4:44 AM, Hieu Dang Duy
<hieu.hispvietnam@xxxxxxxxx> wrote:
> Hi,
>
> I've got the problem when starting Tomcat (version 6 and 7 also). With the
> same as dhis.war file, it's run successfully in other but mine is failed.
> Any one likes me and any thought ?
>
> * INFO  2012-03-14 10:39:34,173 Environment variable DHIS2_HOME points to
> d:\wor
> king\DHIS2OH-2.0\config (DefaultLocationManager.java [main])
> * ERROR 2012-03-14 10:39:44,310 Context initialization failed
> (ContextLoader.jav
> a [main])
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> wit
> h name 'org.hisp.dhis.resourcetable.ResourceTableService' defined in URL
> [jar:fi
> le:/C:/Apache%20Software%20Foundation/Tomcat%206.0/webapps/dhis/WEB-INF/lib/dhis
> -service-administration-2.8-SNAPSHOT.jar!/META-INF/dhis/beans.xml]: Cannot
> resol
> ve reference to bean
> 'org.hisp.dhis.organisationunit.OrganisationUnitService' wh
> ile setting bean property 'organisationUnitService'; nested exception is
> org.spr
> ingframework.beans.factory.BeanCreationException: Error creating bean with
> name
> 'org.hisp.dhis.organisationunit.OrganisationUnitService' defined in URL
> [jar:fil
> e:/C:/Apache%20Software%20Foundation/Tomcat%206.0/webapps/dhis/WEB-INF/lib/dhis-
> service-core-2.8-SNAPSHOT.jar!/META-INF/dhis/beans.xml]: Cannot resolve
> referenc
> e to bean 'org.hisp.dhis.organisationunit.OrganisationUnitStore' while
> setting b
> ean property 'organisationUnitStore'; nested exception is
> org.springframework.be
> ans.factory.BeanCreationException: Error creating bean with name
> 'org.hisp.dhis.
> organisationunit.OrganisationUnitStore' defined in URL
> [jar:file:/C:/Apache%20So
> ftware%20Foundation/Tomcat%206.0/webapps/dhis/WEB-INF/lib/dhis-service-core-2.8-
> SNAPSHOT.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean
> 'sessio
> nFactory' while setting bean property 'sessionFactory'; nested exception is
> org.
> springframework.beans.factory.BeanCreationException: Error creating bean
> with na
> me 'sessionFactory' defined in URL
> [jar:file:/C:/Apache%20Software%20Foundation/
> Tomcat%206.0/webapps/dhis/WEB-INF/lib/dhis-support-hibernate-2.8-SNAPSHOT.jar!/M
> ETA-INF/dhis/beans.xml]: Invocation of init method failed; nested exception
> is j
> ava.lang.NoClassDefFoundError: org/hibernate/cache/TimestampsRegion
>         at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver
> .resolveReference(BeanDefinitionValueResolver.java:328)
>
> --
> "Expert By Chance"
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>


Follow ups

References