Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Wed May 04, 2022 1:35 pm

I use doc.loadFromStream(),but it doesn't work,i don't konw how to slove

org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal

yheo_wuy
 
Posts: 1
Joined: Wed May 04, 2022 1:31 pm

Thu May 05, 2022 3:36 am

Hello,

Thanks for your inquiry.
Please confirm the following points.
1. The lastest version of Spire.Doc For Java is 5.4.10. Please upgrade and test again.
2. If you are using the lastest version, Please make sure that you are not using Spire.Doc For Java with our other products (eg Spire.Pdf For Java) in your project. If you are using multiple products at the same time, please remove them all first, then download and use Spire.Office For Java.

If the above points are all confirmed and you still encounter this error in your project. Please provide us with your test Word documents for verification and testing. You can upload them here or send them to us via email (support@e-iceblue.com).
Sincerely,
Andy
E-iceblue support team
User avatar

Andy.Zhou
 
Posts: 483
Joined: Mon Mar 29, 2021 3:03 am

Return to Spire.Doc