spring报错。求大神指教

DEBUGorg.springframework.beans.factory.support.DefaultListableBeanFactory-Creatingsha... DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'tagChangeMapper'
2014-06-21 09:40:12 [Thread-1] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating instance of bean 'tagChangeMapper'
2014-06-21 09:40:12 [Thread-1] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Eagerly caching bean 'tagChangeMapper' to allow for resolving potential circular references
2014-06-21 09:40:12 [Thread-1] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Ignoring bean creation exception on FactoryBean type check: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'tagChangeMapper' defined in file [D:\apache-tomcat-7.0.21\wtpwebapps\eemp\WEB-INF\classes\eemp\sysinfo\taginfo\mapper\TagChangeMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': : Error creating bean with name 'sysDictionaryService' defined in file [D:\apache-tomcat-7.0.21\wtpwebapps\eemp\WEB-INF\classes\eemp\sysinfo\sysmaintain\service\SysDictionaryService.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.mybatis.spring.mapper.MapperFactoryBean]: Constructor threw exception; nested exception is java.lang.StackOverflowError; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sysDictionaryService' defined in file [D:\apache-tomcat-7.0.21\wtpwebapps\eemp\WEB-INF\classes\eemp\sysinfo\sysmaintain\service\SysDictionaryService.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.mybatis.spring.mapper.MapperFactoryBean]: Constructor threw exception; nested exception is java.lang.StackOverflowError
展开
 我来答
百度网友22f310a4
2018-03-31 · TA获得超过8921个赞
知道小有建树答主
回答量:57
采纳率:100%
帮助的人:9700
展开全部
  1. 报这类错误经常的原因是没有导入对应的jar包。如果你不确定,可以找下相关的jar包中是否有对应的xsd文件。

  2. 如果上面确认有xsd文件,确定你spring xmlns引入的版本在jar包中有。否则更正版本。

3.运行时报错如下 

schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/tx/spring-tx-2.5.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. 

Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 34 in XML document from class path resource [applicationContext.xml] is invalid; nested 

exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'tx:advice'. 
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'tx:advice'.

百度网友f77eb01
2014-06-21 · TA获得超过407个赞
知道小有建树答主
回答量:615
采纳率:100%
帮助的人:422万
展开全部
重点是下面这段异常信息:
nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.mybatis.spring.mapper.MapperFactoryBean]: Constructor threw exception; nested exception is java.lang.StackOverflowError; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sysDictionaryService' defined in file [D:\apache-tomcat-7.0.21\wtpwebapps\eemp\WEB-INF\classes\eemp\sysinfo\sysmaintain\service\SysDictionaryService.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.mybatis.spring.mapper.MapperFactoryBean]: Constructor threw exception; nested exception is java.lang.StackOverflowError

你是不是用单例模式了?!
追问
公司其他人的代码。我更新下来就开始报错。eclipse起不来。这种情况一般问题都出在哪?
追答
java.lang.StackOverflowError   应该是构造方法无限递归了。
本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式