java.lang.NoClassDefFoundError: org/openxmlformats/schemas/wordprocessingml/x2006/main/impl/CTStylesImpl$1StyleList

Stack Overflow | Raied Raafat | 4 months ago
  1. 1

    How to convert .docx to pdf in java using apache poi?

    Stack Overflow | 4 months ago | Raied Raafat
    java.lang.NoClassDefFoundError: org/openxmlformats/schemas/wordprocessingml/x2006/main/impl/CTStylesImpl$1StyleList
  2. 0

    I ran import maven projects from SCM against this version of maven...>> http://svn.apache.org/repos/asf/maven/components/tags/maven-2.1.0-M1/ in a command shell, i went to the top level directory of the project and typed mvn clean install The project built successfully as shown in the output below.. I selected F5 (refresh) and rebuilt the project in Eclipse. I observed many red X's on the top level projects indicating compile problems (even though the command line build was fine)... Next I tried right clicking on the top level maven project and choosing run as / maven install. This result in the build errors you can see below. {noformat} [INFO] [jar:jar] [INFO] Building jar: C:\ebay\m2eclipse\workspace.tues2\maven\maven-plugin-registry\target\maven-plugin-registry-2.1.0-M1.jar [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Project Builder [INFO] [INFO] Id: org.apache.maven:maven-project:jar:2.1.0-M1 [INFO] task-segment: [package] [INFO] ------------------------------------------------------------------------ [INFO] [remote-resources:process] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Nothing to compile - all classes are up to date [INFO] [surefire:test] [INFO] Surefire report directory: C:\ebay\m2eclipse\workspace.tues2\maven\maven-project\target\surefire-reports org.apache.maven.surefire.booter.SurefireExecutionException: Scm; nested exception is java.lang.NoClassDefFoundError: Scm java.lang.NoClassDefFoundError: Scm at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) at java.lang.Class.getMethod0(Class.java:2670) at java.lang.Class.getMethod(Class.java:1603) at org.apache.maven.surefire.junit.JUnitTestSet.createInstanceFromSuiteMethod(JUnitTestSet.java:176) at org.apache.maven.surefire.junit.JUnitTestSet.constructTestObject(JUnitTestSet.java:140) at org.apache.maven.surefire.junit.JUnitTestSet.getTestCount(JUnitTestSet.java:247) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:104) at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:150) at org.apache.maven.surefire.Surefire.run(Surefire.java:111) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818) Caused by: java.lang.ClassNotFoundException: Scm at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.apache.maven.surefire.booter.IsolatedClassLoader.loadClass(IsolatedClassLoader.java:103) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) ... 16 more {noformat}

    Sonatype JIRA | 8 years ago | Deleted User
    java.lang.NoClassDefFoundError: Scm
  3. 0

    Cannot find class [com.springdemo] for bean with name 'helloworld' defined in class path resource [bean.xml]

    Stack Overflow | 3 years ago | Laxmi Kadariya
    org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.springdemo] for bean with name 'helloworld' defined in class path resource [bean.xml]; nested exception is java.lang.ClassNotFoundException: com.springdemo
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Why Jandex and Classmate Libraries Used in Hibernate 4.2 Core

    javabeat.net | 7 months ago
    java.lang.NoClassDefFoundError: com/fasterxml/classmate/TypeResolver
  6. 0

    java.lang.NoClassDefFoundError: How to resolve – Part 2 ~ Java EE Support Patterns

    blogspot.com | 2 months ago
    java.lang.NoClassDefFoundError: com/lowagie/text/SplitCharacter

  1. andyglick 2 times, last 5 days ago
  2. richard77 1 times, last 1 week ago
  3. musketyr 2 times, last 1 week ago
  4. michallos 2 times, last 1 week ago
  5. batwalrus76 2 times, last 1 week ago
67 more registered users
28 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    org.openxmlformats.schemas.wordprocessingml.x2006.main.impl.CTStylesImpl$1StyleList

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(Unknown Source)
    2. java.security.AccessController.doPrivileged(Native Method)
    3. java.net.URLClassLoader.findClass(Unknown Source)
    4. java.lang.ClassLoader.loadClass(Unknown Source)
    5. sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    6. java.lang.ClassLoader.loadClass(Unknown Source)
    6 frames
  3. Apache POI
    CTStylesImpl.getStyleList
    1. org.openxmlformats.schemas.wordprocessingml.x2006.main.impl.CTStylesImpl.getStyleList(Unknown Source)
    1 frame
  4. org.apache.poi
    AbstractXWPFConverter.convert
    1. org.apache.poi.xwpf.converter.core.styles.XWPFStylesDocument.initialize(XWPFStylesDocument.java:188)
    2. org.apache.poi.xwpf.converter.core.styles.XWPFStylesDocument.<init>(XWPFStylesDocument.java:181)
    3. org.apache.poi.xwpf.converter.core.styles.XWPFStylesDocument.<init>(XWPFStylesDocument.java:170)
    4. org.apache.poi.xwpf.converter.core.XWPFDocumentVisitor.createStylesDocument(XWPFDocumentVisitor.java:153)
    5. org.apache.poi.xwpf.converter.core.XWPFDocumentVisitor.<init>(XWPFDocumentVisitor.java:147)
    6. org.apache.poi.xwpf.converter.pdf.internal.PdfMapper.<init>(PdfMapper.java:135)
    7. org.apache.poi.xwpf.converter.pdf.PdfConverter.doConvert(PdfConverter.java:54)
    8. org.apache.poi.xwpf.converter.pdf.PdfConverter.doConvert(PdfConverter.java:37)
    9. org.apache.poi.xwpf.converter.core.AbstractXWPFConverter.convert(AbstractXWPFConverter.java:45)
    9 frames
  5. com.siparadigm.tiger
    test.main
    1. com.siparadigm.tiger.annotate.test.doGenerate(test.java:25)
    2. com.siparadigm.tiger.annotate.test.main(test.java:15)
    2 frames