今天看着视频,开始研究spring,在用dom4j读取配置文件,模仿spring的控制反转功能的时候,出现了如下错误
Exception in thread "main" java.lang.NoClassDefFoundError: org/jaxen/JaxenException
at org.dom4j.DocumentFactory.createXPath(DocumentFactory.java:230)
at org.dom4j.tree.AbstractNode.createXPath(AbstractNode.java:207)
at junit.test.ItcastClassPathXMLApplicationContext.readXML(ItcastClassPathXMLApplicationContext.java:53)
at junit.test.ItcastClassPathXMLApplicationContext.<init>(ItcastClassPathXMLApplicationContext.java:24)
at junit.test.test.main(test.java:10)
错误的原因是 少了jar包

被折叠的 条评论
为什么被折叠?



