Exception sending context initialized event to listener instance of class Org.springframework.web.context.Contextloaderlistener
Org.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' useraction ': injection of Resource fields failed; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' Userse Rvice ': Injection of resource fields failed; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' Userdao ': Injection of resource fields failed; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' Hibernatetemplate ' defined in class path resource [Spring/applicationcontext-db.xml]: Cannot resolve reference to bean ' SE Ssionfactory ' while setting beans property ' sessionfactory '; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' Sessionfactory ' defined in class path resource [Spring/applicationcontext-db.xml]: Invocation of Init method failed; Nested exception is java.Lang. Noclassdeffounderror:javax/persistence/entity
By Noclassdeffounderror can know, obviously is missing package, then Baidu a javax/persistence/entity, the answer came out, less Hibernate-jpa-2.0-api-1.0.0.final.jar, after the import, it's okay.
Hibernate:initialized event to listener instance of class Org.springframework.web.context.ContextLoaderListener