当前位置: 代码迷 >> J2EE >> 新手 shh整合有关问题
  详细解决方案

新手 shh整合有关问题

热度:299   发布时间:2016-04-17 23:13:00.0
新手求助 shh整合问题
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [applicationContext.xml]; nested exception is java.lang.NoSuchMethodError: org.springframework.beans.MutablePropertyValues.add(Ljava/lang/String;Ljava/lang/Object;)Lorg/springframework/beans/MutablePropertyValues;
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212)
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:113)
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:80)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
at cn.itcast.oa.test.TestSpring.<init>(TestSpring.java:12)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at org.junit.internal.runners.JUnit4ClassRunner.createTest(JUnit4ClassRunner.java:72)
at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:79)
at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.lang.NoSuchMethodError: org.springframework.beans.MutablePropertyValues.add(Ljava/lang/String;Ljava/lang/Object;)Lorg/springframework/beans/MutablePropertyValues;
at org.springframework.transaction.config.AnnotationDrivenBeanDefinitionParser.registerTransactionManager(AnnotationDrivenBeanDefinitionParser.java:102)
at org.springframework.transaction.config.AnnotationDrivenBeanDefinitionParser.access$000(AnnotationDrivenBeanDefinitionParser.java:50)
at org.springframework.transaction.config.AnnotationDrivenBeanDefinitionParser$AopAutoProxyConfigurer.configureAutoProxyCreator(AnnotationDrivenBeanDefinitionParser.java:129)
at org.springframework.transaction.config.AnnotationDrivenBeanDefinitionParser.parse(AnnotationDrivenBeanDefinitionParser.java:84)
at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:69)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1297)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1287)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)
... 31 more


jar:
/OAItcast/WebRoot/META-INF
/OAItcast/WebRoot/WEB-INF/lib/hibernate_3.6.0/antlr-2.7.6.jar
/OAItcast/WebRoot/WEB-INF/lib/hibernate_3.6.0/c3p0-0.9.1.jar
/OAItcast/WebRoot/WEB-INF/lib/hibernate_3.6.0/commons-collections-3.1.jar
/OAItcast/WebRoot/WEB-INF/lib/hibernate_3.6.0/commons-logging-1.1.1.jar
/OAItcast/WebRoot/WEB-INF/lib/hibernate_3.6.0/dom4j-1.6.1.jar
/OAItcast/WebRoot/WEB-INF/lib/hibernate_3.6.0/hibernate-jpa-2.0-api-1.0.0.Final.jar
/OAItcast/WebRoot/WEB-INF/lib/hibernate_3.6.0/hibernate3.jar
/OAItcast/WebRoot/WEB-INF/lib/hibernate_3.6.0/javassist-3.9.0.GA.jar
/OAItcast/WebRoot/WEB-INF/lib/hibernate_3.6.0/jta-1.1.jar
/OAItcast/WebRoot/WEB-INF/lib/hibernate_3.6.0/ojdbc14.jar
/OAItcast/WebRoot/WEB-INF/lib/hibernate_3.6.0/slf4j-api-1.5.8.jar
/OAItcast/WebRoot/WEB-INF/lib/hibernate_3.6.0/slf4j-nop-1.5.8.jar
/OAItcast/WebRoot/WEB-INF/lib/hibernate_3.6.0/spring-orm-3.2.4.RELEASE.jar
/OAItcast/WebRoot/WEB-INF/lib/hibernate_3.6.0/spring-tx-3.2.4.RELEASE.jar
/OAItcast/WebRoot/WEB-INF/lib/junit_4.4/junit-4.4.jar
/OAItcast/WebRoot/WEB-INF/lib/spring_2.5.6/aspectjrt.jar
/OAItcast/WebRoot/WEB-INF/lib/spring_2.5.6/aspectjweaver.jar
/OAItcast/WebRoot/WEB-INF/lib/spring_2.5.6/cglib-nodep-2.1_3.jar
/OAItcast/WebRoot/WEB-INF/lib/spring_2.5.6/commons-codec.jar
/OAItcast/WebRoot/WEB-INF/lib/spring_2.5.6/commons-lang.jar
/OAItcast/WebRoot/WEB-INF/lib/spring_2.5.6/commons-logging.jar
/OAItcast/WebRoot/WEB-INF/lib/spring_2.5.6/log4j-1.2.15.jar
/OAItcast/WebRoot/WEB-INF/lib/spring_2.5.6/spring.jar
/OAItcast/WebRoot/WEB-INF/lib/struts_2.1.8.1/commons-fileupload-1.2.1.jar
/OAItcast/WebRoot/WEB-INF/lib/struts_2.1.8.1/commons-io-1.3.2.jar
/OAItcast/WebRoot/WEB-INF/lib/struts_2.1.8.1/freemarker-2.3.15.jar
/OAItcast/WebRoot/WEB-INF/lib/struts_2.1.8.1/ognl-2.7.3.jar
/OAItcast/WebRoot/WEB-INF/lib/struts_2.1.8.1/struts-2.1.7.dtd
/OAItcast/WebRoot/WEB-INF/lib/struts_2.1.8.1/struts2-core-2.1.8.1.jar
/OAItcast/WebRoot/WEB-INF/lib/struts_2.1.8.1/xwork-core-2.1.6.jar
------解决思路----------------------
applicationContext.xml的路径错了吧
------解决思路----------------------
 nested exception is java.lang.NoSuchMethodError:  
看看applicationContext.xml中bean定义中的方法是否有误
本站暂不开放注册!
内测阶段只得通过邀请码进行注册!
 
  • 最近登录:Mon Feb 19 13:51:33 CST 2018
  • 最近登录:Mon Feb 19 13:51:33 CST 2018
  • 最近登录:Mon Feb 19 13:51:33 CST 2018
  • 最近登录:Mon Feb 19 13:51:33 CST 2018
  • 最近登录:Mon Feb 19 13:51:33 CST 2018