问题描述
这个问题怎么解决咯,大侠们...500ServletExceptionjava.lang.NoSuchMethodError:org.springframework.beans.factory.xml.XmlReaderContext.getReader()Lorg/springframework/beans/factory/xml/XmlBeanDefinitionReader;atorg.apache.xbean.spring.context.v2c.XBeanQNameHelper.loadClass(XBeanQNameHelper.java:91)atorg.apache.xbean.spring.context.v2c.XBeanQNameHelper.getBeanInfo(XBeanQNameHelper.java:72)atorg.apache.xbean.spring.context.v2c.XBeanQNameHelper.coerceNamespaceAwarePropertyValues(XBeanQNameHelper.java:54)atorg.apache.xbean.spring.context.v2c.XBeanBeanDefinitionParserDelegate.parseBeanDefinitionElement(XBeanBeanDefinitionParserDelegate.java:63)atorg.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:341)atorg.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parsePropertySubElement(BeanDefinitionParserDelegate.java:784)atorg.apache.xbean.spring.context.v2c.XBeanBeanDefinitionParserDelegate.parsePropertySubElement(XBeanBeanDefinitionParserDelegate.java:57)atorg.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseMapElement(BeanDefinitionParserDelegate.java:1022)atorg.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parsePropertySubElement(BeanDefinitionParserDelegate.java:863)atorg.apache.xbean.spring.context.v2c.XBeanBeanDefinitionParserDelegate.parsePropertySubElement(XBeanBeanDefinitionParserDelegate.java:57)atorg.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parsePropertySubElement(BeanDefinitionParserDelegate.java:769)atorg.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parsePropertyValue(BeanDefinitionParserDelegate.java:759)atorg.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parsePropertyElement(BeanDefinitionParserDelegate.java:695)atorg.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parsePropertyElements(BeanDefinitionParserDelegate.java:584)atorg.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:494)atorg.apache.xbean.spring.context.v2c.XBeanBeanDefinitionParserDelegate.parseBeanDefinitionElement(XBeanBeanDefinitionParserDelegate.java:62)atorg.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:341)atorg.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:310)atorg.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.processBeanDefinition(DefaultBeanDefinitionDocumentReader.java:235)atorg.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:151)atorg.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:130)atorg.apache.xbean.spring.context.v2.XBeanBeanDefinitionDocumentReader.parseBeanDefinitions(XBeanBeanDefinitionDocumentReader.java:63)atorg.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:90)atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:458)atorg.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader.registerBeanDefinitions(XBeanXmlBeanDefinitionReader.java:79)atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:353)atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280)atorg.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:185)atorg.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:145)atorg.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:130)atorg.apache.xbean.spring.context.v2.XBeanBeanDefinitionDocumentReader.parseBeanDefinitions(XBeanBeanDefinitionDocumentReader.java:63)atorg.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:90)atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:458)atorg.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader.registerBeanDefinitions(XBeanXmlBeanDefinitionReader.java:79)atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:353)atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)atorg.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280)atorg.codehaus.xfire.spring.XFireConfigLoader.getXFireApplicationContext(XFireConfigLoader.java:79)atorg.codehaus.xfire.spring.XFireConfigLoader.loadContext(XFireConfigLoader.java:41)atorg.codehaus.xfire.transport.http.XFireConfigurableServlet.loadConfig(XFireConfigurableServlet.java:86)atorg.codehaus.xfire.transport.http.XFireConfigurableServlet.createXFire(XFireConfigurableServlet.java:54)atorg.codehaus.xfire.transport.http.XFireServlet.init(XFireServlet.java:45)atjavax.servlet.GenericServlet.init(GenericServlet.java:69)atcom.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:600)atcom.caucho.server.dispatch.ServletManager.init(ServletManager.java:154)atcom.caucho.server.webapp.Application.start(Application.java:1604)atcom.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)atcom.caucho.server.deploy.DeployController.restartImpl(DeployController.java:584)atcom.caucho.server.deploy.StartAutoRedeployAutoStrategy.request(StartAutoRedeployAutoStrategy.java:125)atcom.caucho.server.deploy.DeployController.request(DeployController.java:554)atcom.caucho.server.hmux.HmuxDispatchRequest.sendQuery(HmuxDispatchRequest.java:290)atcom.caucho.server.hmux.HmuxDispatchRequest.queryAll(HmuxDispatchRequest.java:266)atcom.caucho.server.hmux.HmuxDispatchRequest.handleRequest(HmuxDispatchRequest.java:176)atcom.caucho.server.hmux.HmuxRequest.scanHeaders(HmuxRequest.java:650)atcom.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:350)atcom.caucho.server.port.TcpConnection.run(TcpConnection.java:389)atcom.caucho.util.ThreadPool.runTasks(ThreadPool.java:507)atcom.caucho.util.ThreadPool.run(ThreadPool.java:433)atjava.lang.Thread.run(Thread.java:595)
解决方案
解决方案二:
帮你UP,好长
解决方案三:
解决方案四:
java.lang.NoSuchMethodError:org.springframework.beans.factory.xml.XmlReaderContext.getReader()Lorg/springframework/beans/factory/xml/XmlBeanDefinitionReader;这不是报错的信息么是没有找到这个方法
解决方案五:
这个方法是spring框架自带的,我就是不知道这个类在哪个包里面啊网上我也找了,说是spring-bean.jar的问题但是我替换了jar也还是出现这个问题啊.
解决方案六:
可能是jar包冲突,检查下工程依赖
解决方案七:
您能再说具体点么,java.lang.NoSuchMethodError:这个错误肯定是jar包的问题但是我不知道org.springframework.beans.factory.xml.XmlReaderContext.getReader()是属于哪个jar下的网上说是spring-bean.jar的,但是这个jar我也替了还是照常报错刚开始这个项目是部署在另一台服务器上的,是能够运行的但是现在转移到这个服务器上就报这样的错误了我能保证服务器的环境和jdk的版本都是一样的...