org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionInterceptor' defined in ServletContext resource [/ WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error ; creating bean with name 'transactionManager' defined in ServletContext resource [/ WEB-INF/applicationContext.xml]: 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' defined in ; ServletContext resource [/ WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: An association from the table bulletin refers to an unmapped class: com.topwalk.oa.personnel.bulletin.bo.Department
------ Solution --------- -----------------------------------
hibernate.MappingException: An association from the table bulletin refers to an unmapped class: com.topwalk.oa.personnel.bulletin.bo.Department
Department mapping file in question , carefully compare the bean and mapping files and the table in the database .
------ Solution ---------------------------------------- ----
com.topwalk.oa.personnel.bulletin.bo.Department
remember to write on the default constructor public Department () {}
------ For reference only ---------------- -----------------------
spring initialization error , you check under your database connection , it should be you're not connected to the database was reported this wrong. Check whether the database is open , see url, username, password , database name connection.
------ For reference only -------------------------------------- -
View sessionFactory bean that is generated by LocalSessionFactoryBean do
------ For reference only ---------------------. ------------------
with seeking ...
------ For reference only ------------ ---------------------------
same problem, following ...
------ For reference only ---------------------------------------
my problem solved
javax / persistence / Entity class can not be found . Is less ejb3-persistence.jar this package. Added like , you want to have a useful
------ For reference only --------------------------- ------------
upstairs for me also a
------ For reference only ---------------------------------------
how to solve this problem it? Do the project encountered this problem two days
------ For reference only ------------------------------ ---------
upstairs problem solved it? How to solve ah solving
------ For reference only -------------------------------- -------
result? ? ? Why did not bear stickers, not solve the problem ah ? ? ?
------ For reference only -------------------------------------- -
bridging package into yet
------ For reference only ----------------------------? -----------
I was such a problem , ah, and no solution to it?
------ For reference only ---------------------------------- -----
trying to solve ah , I am also the same problem
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [E: \ apache-tomcat-6.0.35 \ apache -tomcat-6.0.35 \ webapps \ SpringMvcDemo \ WEB-INF \ classes \ applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: could not instantiate RegionFactory [org.hibernate.cache.internal.NoCachingRegionFactory]
------ For reference only ---------------------------------- -----
thanks, I just Mapper , which has a data type of mistake ! Awoken .
------ For reference only -------------------------------------- -
I have encountered this problem
------ For reference only ------------------------- --------------
solve ah , check the configuration really feel a lot of times without any problems , and how this error has been reported previously to take this time frame did not appear too ah
------ For reference only --------------------------------------- < br> I have encountered this problem today , and indeed, as the upstairs , mappingResource mapping configuration file wrong place , will report this error, because I
没有评论:
发表评论