org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [spring.xml]; nested exception is java.lang.NoClassDefFoundError


这个异常是服务器在解析spring.xml文件时出现的异常,另外JVM又报了一个找不到此类的异常

出现原因:

1.spring.xml配置文件配置错误

2.lib文件夹下缺少了spring相关的jar包

可能是如下jar包:

aopalliance-1.0.jar

aspectjweaver-1.8.7.jar

spring-aop-4.2.4.RELEASE.jar

spring-aspects-4.2.4.RELEASE.jar


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



猜您在找 org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [applicationContext.xml]; nested exception is java.io.FileNotFoundException: c org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [applictionContext.xml]; nested exception is java.io.FileNotFoundException: cl Spring出现Unexpected exception parsing XML document from class path resource [applicationBeans.xml]; nested exception is java.lang.NoClassDefFoundError: org/springframework/aop/TargetSource异常 org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL Spring AOP遇到Unexpected exception parsing XML document from class path resource [Beans.xml] ERROR [localhost-startStop-1] - Context initialization failed org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/WEB-INF/ap Line 23 in XML document from class path resource [spring-mvc.xml] is invalid; nested exception is org.xml.sax.SAXParseException: spring和mybatis整合报错:org.springframework.beans.MethodInvocationException: Property 'dataSource' threw exception; nested exception is java.lang.NoClassDefFoundError org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [bean.xml]: Invocation of init method failed; nested exception is Spring Error BeanDefinitionStoreException: IOException parsing XML document from class path resource *
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM