Gimana nih hari ini kabarnya sobat semua ?, he he yang pastinya lagi bahagia dan sehat kan sobat semua !. Topik kita kali ini adalah JBoss 7 - Caused by: org.dom4j.DocumentException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory."Simple solution to fix this issue:
You do not need to do any of the following:
Source : http://canjur.blogspot.com/2012/07/jboss-7-caused-by-orgdom4jdocumentexcep.html
https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7
If you do not want to read the above URL, which is really not giving the straight forward solution:
1 - Open {your war}/META-INF/MANIFEST.MF
2 - Add this line at the end -�Dependencies: org.dom4j export
You do not need to do any of the following:
1 -�jboss-deployment-structure.xml - exclussions
2 - Adding subsystem to include org.dom4j as global modules
3 - Remove your dom4j-1.6.1.jar from your WEB-INF/lib directory
Most of the time you hit this problem when you try to deploy a war that has hibernate 4 included in it. In this case you may want to do the following for JBoss 7:
To your persistence.xml add the following properties, which is not need for tomcat (assuming you are using oracle > 10g).
��>
� � <property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect"/�>
� � <property name="hibernate.listeners.envers.autoRegister" value="false"/�>
</properties�>
"� � <property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect"/�>
� � <property name="hibernate.listeners.envers.autoRegister" value="false"/�>
</properties�>
Source : http://canjur.blogspot.com/2012/07/jboss-7-caused-by-orgdom4jdocumentexcep.html
         Kepada para pembaca, saya memohon maaf apabila terdapat kekurangan dan kekeliruan bagi tulisan yang saya buat ini. Karena penulis sendiri hanyalah manusia yang bisa melakukan kesalahan. Akhir kata semoga kupasan tentang JBoss 7 - Caused by: org.dom4j.DocumentException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory yang saya buat ini dapat bermanfaat untuk saya khususnya dan pembaca sekalian.
0 comments:
Posting Komentar