looking at the hibernate module.xml it has a dependency to 'org.dom4j' . If you want the dom4j.jar from your deployments lib directory to be used you can add an exclusion for the 'org.dom4j' module:
<jboss-deployment-structure> <deployment> <exclusions> <module name="org.jdom4j"/> </exclusions> </deployment> </jboss-deployment-structure>
You can find more information about the jboss-depoyment-structure.xml file in the section "JBoss Deployment Structure File" of the Developer Guide.
Thanks for your reply
I did what you suggested me but it still fails.
i followed the steps below:
1 - I created the file: jboss-deployment-structure.xml
2 - with the content you gave me:
The error kept happening.
so I tried to enter the directory and manually delete the module dom4j but then I eventually get the error ClassNotFoundError: dom4j
dom4j.jar also tried to delete my / lib folder and had the same error. is it possible to disable the hibernate validator 4?
Do you have any other suggestions for me. I'm sorry for my english I'm learning.
line into your manifest, and remove dom4j from your war file.
Guys i resolve change my project to EJB+ + CDI + JSF using jboss examples projects and works fine i change my structure projects.