java.lang.NoClassDefFoundError

org/openxmlformats/schemas/wordprocessingml/x2006/main/DocumentDocument$Factory

Samebug tips8

A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.

If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add to your dependencies. To add it, the groupId is com.fasterxml and artifactId is Classmate.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web19163

  • via docfetcher by *anonymous
    , 6 months ago
    org/openxmlformats/schemas/wordprocessingml/x2006/main/DocumentDocument$Factory
  • org/openxmlformats/schemas/wordprocessingml/x2006/main/SettingsDocument$Factory
  • via nabble.com by Unknown author, 1 year ago
    org/openxmlformats/schemas/wordprocessingml/x2006/main/CTCustomXmlRun
  • Stack trace

    • java.lang.NoClassDefFoundError: org/openxmlformats/schemas/wordprocessingml/x2006/main/DocumentDocument$Factory at org.apache.poi.xwpf.usermodel.XWPFDocument.onDocumentRead(XWPFDocument.java:158) at org.apache.poi.POIXMLDocument.load(POIXMLDocument.java:177) at org.apache.poi.xwpf.usermodel.XWPFDocument.<init>(XWPFDocument.java:119) at org.apache.poi.xwpf.extractor.XWPFWordExtractor.<init>(XWPFWordExtractor.java:58) at org.apache.poi.extractor.ExtractorFactory.createExtractor(ExtractorFactory.java:204) at net.sourceforge.docfetcher.model.parse.MSOffice2007Parser.extractText(MSOffice2007Parser.java:182) at net.sourceforge.docfetcher.model.parse.MSOffice2007Parser.parse(MSOffice2007Parser.java:72) at net.sourceforge.docfetcher.model.parse.ParseService.doParse(ParseService.java:309) at net.sourceforge.docfetcher.model.parse.ParseService.parse(ParseService.java:218) at net.sourceforge.docfetcher.model.index.outlook.OutlookContext$1.handleAttachment(OutlookContext.java:141) at net.sourceforge.docfetcher.model.index.outlook.AttachmentVisitor.run(AttachmentVisitor.java:91) at net.sourceforge.docfetcher.model.index.outlook.OutlookContext.createLuceneDoc(OutlookContext.java:127) at net.sourceforge.docfetcher.model.index.outlook.OutlookContext.index(OutlookContext.java:69) at net.sourceforge.docfetcher.model.index.outlook.OutlookIndex.visitFolder(OutlookIndex.java:229) at net.sourceforge.docfetcher.model.index.outlook.OutlookIndex.visitFolder(OutlookIndex.java:275) at net.sourceforge.docfetcher.model.index.outlook.OutlookIndex.visitFolder(OutlookIndex.java:275) at net.sourceforge.docfetcher.model.index.outlook.OutlookIndex.visitFolder(OutlookIndex.java:275) at net.sourceforge.docfetcher.model.index.outlook.OutlookIndex.doUpdate(OutlookIndex.java:111) at net.sourceforge.docfetcher.model.TreeIndex.update(TreeIndex.java:148) at net.sourceforge.docfetcher.model.index.Task.update(Task.java:98) at net.sourceforge.docfetcher.model.index.IndexingQueue.threadLoop(IndexingQueue.java:193) at net.sourceforge.docfetcher.model.index.IndexingQueue.access$100(IndexingQueue.java:46) at net.sourceforge.docfetcher.model.index.IndexingQueue$2.run(IndexingQueue.java:118) Caused by: java.lang.ClassNotFoundException: org.openxmlformats.schemas.wordprocessingml.x2006.main.DocumentDocument$Factory at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 23 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 1 month ago
    Unknown user
    2 times, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 month ago
    Unknown user
    Once, 2 months ago
    2430 more bugmates