wildfly 10: java.lang.ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory

前端 未结 14 997
醉酒成梦
醉酒成梦 2020-11-29 04:25

I have a maven application that works fine in wildfly 8.2, but when Ideployed it in wildfly 10 this error happened:

[2016-02-21 11:22:08,411] Artifact Sarama         


        
14条回答
  •  温柔的废话
    2020-11-29 05:00

    Exclude dependency dom4j out of hibernate ones.

    Check in resulting acme.war/WEB-INF/lib that there is no dom***.jar

    
        org.hibernate
        hibernate-core
        4.3.8.Final
        
            
                dom4j
                dom4j
            
        
    
    
        org.hibernate
        hibernate-entitymanager
        4.3.8.Final
        
            
                dom4j
                dom4j
            
        
    
    

提交回复
热议问题