首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Eclipse开发 >

eclipse + maven +tomcat,该怎么解决

2012-10-16 
eclipse + maven +tomcatorg.springframework.beans.factory.BeanCreationException:Error creating bean

eclipse + maven +tomcat
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'sqlSessionFactory' defined in ServletContext resource
[/WEB-INF/config/spring/appcontext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 
'file [C:\Users\dzh\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\fundPortfolio\WEB-INF\classes\com\gw\resource\mapper\FundAssetsDetailMapper.xml]';
nested exception is java.lang.RuntimeException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException:
Error resolving class . Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'com.gw.model.FundAssetsDetailInfo'. 
Cause: java.lang.ClassNotFoundException: Cannot find class: com.gw.model.FundAssetsDetailInfo

[解决办法]
楼主,错误里不是说了吗

没有找到 com.gw.model.FundAssetsDetailInfo 这个class

如果确实有定义这个类,那确认下是否install到maven仓库

并确认你的webapp项目有没有依赖com.gw.model.FundAssetsDetailInfo定义的这个包

热点排行