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

前端 未结 14 1023
醉酒成梦
醉酒成梦 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 04:53

    I just made all hibernate dependencies provided scope and problem solved!

            
                org.hibernate
                hibernate-core
                5.1.0.Final
                provided
            
    
            
                org.hibernate
                hibernate-validator
                5.2.4.Final
                provided
            
    
            
            
                org.hibernate
                hibernate-entitymanager
                5.1.0.Final
                provided
            
    
            
                org.hibernate
                hibernate-ehcache
                5.1.0.Final
                provided
            
    

提交回复
热议问题