大神们快来帮帮小弟吧!!!java web项目采用的springMVC+spring+mybatis框架。开发这个项目很久了,框架配置都没问题啊,只是最近在开发新功能时候,需要对应新建一些package,在其下写controller,model,service等,但是只要新建写sql语句用的xml用的package,项目就报错。帮帮小弟吧,急死了,小弟没多少C币,今日助我度难关,一定感激不尽来日涌泉相报!具体报错如下:控制台开始报错的第一句话是:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'achievementsController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'achService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private cn.com.framework.Dao.Dao cn.com.kjxx.achievementsNew.service.impl.AchService.dao; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dao' defined in ServletContext resource [/WEB-INF/classes/conf/spring/applicationContext.xml]: Cannot resolve reference to bean 'sqlMapClient' while setting bean property 'sqlMapClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in ServletContext resource [/WEB-INF/classes/conf/spring/applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: ServletContext resource [/WEB-INF/classes/conf/ibatis/expert/sqlmapConfig-expert.xml]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/select'. Cause: com.ibatis.sqlmap.client.SqlMapException: Error. Could not initialize class. Cause: java.lang.ClassNotFoundException: tec
你的mybatits的配置文件配错了啊,看看你xml文件里哪里写了个tec
cxf-extension-soap.xml初始化失败好好检查一下
新建的包你在springmvcXML中添加你自动扫描的base-package了没?
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。