Failed to parse - org.dom4j.DocumentException: org.dom4j.DocumentFactory could not be passed to org.dom4j.DocumentFactory

I am deploying my application in Tomcat 6.0.20.

The application uses Hibernate as ORM, Spring, and JSF for the web tier.

I also made a simple runner from the main () method to test Spring-Hibernate collaboration. And it works fine, and hibernate.cfg.xml understands pretty well.

I can add a code snippet or a full stack, but I'm not sure if this is necessary because Google says this is a typical problem and it is easy to recognize from the name. Unfortunately, I could not find a solution.

So who knows how to fix this problem?

+5
source share
3

, dom4j .

+13

, dom4j hibernate entitymanager.

, mvn clean .

    <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-entitymanager</artifactId>
        <version>4.1.5.SP1</version>
        <scope>compile</scope>
        <exclusions> 
            <exclusion>
                <groupId>dom4j</groupId>
                <artifactId>dom4j</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
+8

, dom4j pom.xml

<dependency>
    <groupId>dom4j</groupId>
    <artifactId>dom4j</artifactId>
    <version>1.6.1</version>
    <scope>provided</scope>
</dependency>
+2

All Articles