当前位置:编程学习 > JAVA >>

myeclipse8.5 搭建ssh框架的问题!求高手


用myeclipse8.5搭建的 ssh 框架 总是报这个错:
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerorg.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: Association references unmapped class: com.bean.MMail
同样的配置和搭建方法别人就可以运行。我的启动tomcat就报错 框架 ssh myeclipse --------------------编程问答-------------------- .BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource 

看看web。xml配置和其他的配置 --------------------编程问答-------------------- 你的实体文件中关联了一个com.bean.MMail类,它没有被映射。 --------------------编程问答-------------------- Association references unmapped class: com.bean.MMail 
提示你了MMail。  --------------------编程问答--------------------
引用 1 楼 proteinboy007 的回复:
.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource 

看看web。xml配置和其他的配置



引用 2 楼 forgetsam 的回复:
你的实体文件中关联了一个com.bean.MMail类,它没有被映射。


我搭建完框架就运行了啊 压根就没创建实体文件 这个是我之前的一个项目做的一个映射文件 --------------------编程问答-------------------- 那这个报错和你当前的项目就没有关系。 --------------------编程问答-------------------- 你把旧项目部署的删掉,再部署你自己的新项目。或者你清下缓存试下 --------------------编程问答-------------------- 能把你那个applicationContext.xml的代码贴出来我们先瞅瞅啊??
补充:Java ,  Java相关
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,