[jboss-jira] [JBoss JIRA] (WFLY-6137) org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory

Andreas Engvall (JIRA) issues at jboss.org
Mon Sep 25 12:52:00 EDT 2017


    [ https://issues.jboss.org/browse/WFLY-6137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13468125#comment-13468125 ] 

Andreas Engvall commented on WFLY-6137:
---------------------------------------

I would argue that since dom4j-1.6.1.jar contains no java. or javax. packages it should not have the provided scope, cause any conflicts or ClassCastExceptions. We have the same problem with wildfly-10.x but not with wildfly-9.x or jboss-eap-7 (only the dom4j problem, we are not including hibernate in our app) and it's annoying that we have to treat the different wildfly versions differently.

> org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory
> ---------------------------------------------------------------------
>
>                 Key: WFLY-6137
>                 URL: https://issues.jboss.org/browse/WFLY-6137
>             Project: WildFly
>          Issue Type: Bug
>          Components: Application Client, EE, JPA / Hibernate, Server
>    Affects Versions: 10.0.0.Final
>            Reporter: Karl Nicholas
>            Assignee: Stuart Douglas
>
> Including hibernate-entitymanager (up to version 5.0.7.Final) into a project causes dom4j-1.6.1.jar to be included which causes the application to fail to deploy in Wildfly 10.0.0.Final.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list