无法解析 - org.dom4j.DocumentException:org.dom4j.DocumentFactory无法转换为org.dom4j.DocumentFactory [英] Could not parse - org.dom4j.DocumentException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory
问题描述
我将应用程序部署到Tomcat 6.0.20。
$ b
应用程序使用Hibernate作为ORM,Spring和JSF用于web层。
我也从main()方法做了简单的runner来测试Spring-Hibernate协作。它可以正常工作,并且hibernate.cfg.xml被解析得非常好。
我可以附加一些代码或完整的堆栈跟踪,但我不确定这是否必要,因为Google说这是典型的问题,很容易从标题中识别出来。不幸的是,我找不到解决方案。所以,谁知道如何解决这个问题?
I am deploying my application to Tomcat 6.0.20.
Application uses Hibernate as ORM, Spring, and JSF for web-tier.
I also made simple runner from main() method to test Spring-Hibernate collaboration. And it does work fine and hibernate.cfg.xml is parsed pretty well.
I can append some code or full stack trace but I'm not sure that it's necessary because Google says that it's typical problem and it's easy to recognize it from the title. Unfortunately, I couldn't find the solution..
So, who knows how to fix this problem?
Make sure you don't have two different dom4j jars on your classpath.
这篇关于无法解析 - org.dom4j.DocumentException:org.dom4j.DocumentFactory无法转换为org.dom4j.DocumentFactory的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!