- 
        1. Re: ClassNotFoundException: com.sun.xml.internal.txw2.output.IndentingXMLStreamWritermarcial.atienzar Feb 6, 2015 2:20 AM (in response to marcial.atienzar)it is rare that this class is on rt.jar of jdk. 
- 
        2. Re: ClassNotFoundException: com.sun.xml.internal.txw2.output.IndentingXMLStreamWritermarcial.atienzar Feb 11, 2015 7:24 AM (in response to marcial.atienzar)I see that this class, IndentingXMLStreamWriter is on jaxb-core.jar with this package name: com.sun.xml.txw2.output, that is distinct from rt.jar (jre/lib), com.sun.xml.internal.txw2.output. I've include IndentingXMLStreamWriter and DelegatingXMLStreamWriter on my project as classes, and package them in war, I've the same error, I don't understand 
- 
        3. Re: Re: ClassNotFoundException: com.sun.xml.internal.txw2.output.IndentingXMLStreamWritermarcial.atienzar Feb 16, 2015 6:36 AM (in response to marcial.atienzar)1 of 1 people found this helpfulI've solved it with this code: Process proceso = Runtime.getRuntime().exec("java -jar retencion.jar /E:" + entrada.getAbsolutePath() + " /R:" + error.getAbsolutePath() + " /S:" + salida.getAbsolutePath(), null, new File("/opt/retenciones")); int salidaProceso = proceso.waitFor();
- 
        4. Re: ClassNotFoundException: com.sun.xml.internal.txw2.output.IndentingXMLStreamWriterdnovo Feb 24, 2015 12:30 PM (in response to marcial.atienzar)Hi Marcial, I have the same issue. I'm using wildfly 8.2 with jdk1.7.0_75. And using Módulo de cálculo de Retenciones 2015 My code: ModuloCalculo.procesarFicheroXml(fileIn.getAbsolutePath(), fileErrors.getAbsolutePath(), "", fileOut.getAbsolutePath()); Error: Caused by: java.lang.ClassNotFoundException: com.sun.xml.internal.txw2.output.IndentingXMLStreamWriter from [Module "deployment.nxgen.ear:main" from Service Module Loader] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.3.Final] at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final] at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final] at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final] at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final] Do you found another solution? Thanks 
- 
        5. Re: ClassNotFoundException: com.sun.xml.internal.txw2.output.IndentingXMLStreamWritermarcial.atienzar Feb 24, 2015 12:52 PM (in response to dnovo)no,only executing it as external Java application. Sorry 
- 
        6. Re: ClassNotFoundException: com.sun.xml.internal.txw2.output.IndentingXMLStreamWriterdnovo Feb 25, 2015 4:39 AM (in response to marcial.atienzar)Hi Marcial, I found another solution without changing my code. In wildfly-8.2.0.Final\modules\system\layers\base\sun\jdk\main Edit module.xml and add this entry to paths: <path name="com/sun/xml/internal/txw2/output"/> 
 
    