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

前端 未结 14 988
醉酒成梦
醉酒成梦 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:58

    There are two ways.

    1 You create a META-INF folder in webapp folder. Later create jboss-deployment-structure.xml in META-INF folder.

    jboss-deployment-structure.xml

    
    
        
            
                
            
        
    
    

    or

    2 if you added hibernate-core in pom xml then you edit this.

        
            org.hibernate
            hibernate-core
            4.3.1.Final
            jar
            provided
        
    

提交回复
热议问题