当前位置: 代码迷 >> Eclipse >> eclipse + maven +tomcat,该怎么解决
  详细解决方案

eclipse + maven +tomcat,该怎么解决

热度:104   发布时间:2016-04-23 11:56:28.0
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定义的这个包
  相关解决方案