第一個異常
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [file:/fs/webapp/WEB-INF/classes/bean-config.xml]; nested exception is javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
在我下載了dom3-xercesImpl- 2002-08-17 .jar之後,將它放到類路徑下,上面的異常沒有了,出現了下面的異常.
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [file:/F:/MyFile/work-source/CaiWu/Workspace/financial/webapp/WEB-INF/classes/bean-config.xml]; nested exception is java.lang.NoClassDefFoundError: org/w 3c /dom/ls/DocumentLS
我又下載了xerces- 2.4.0 - 2003-03-27 .jar, 將它放到類路徑下,上面的異常沒有了,出現了下面的異常.
[org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/dom4j/DocumentException
我又下載了dom4j-1.6- 2005-04-15 .jar, 將它放到類路徑下,上面的異常沒有了,出現的是green bar.