https://bz.apache.org/bugzilla/show_bug.cgi?id=61389
--- Comment #9 from Stefan Bodewig <[email protected]> --- (In reply to Sarika Sinha from comment #8) > When we run Eclipse in headless mode we are getting this exception - > [xslt] Failed to load org.apache.xalan.processor.TransformerFactoryImpl via > the configured classpath, will try Ant's classpath instead. > [xslt] Failed to process null This means the class "org.apache.xalan.processor.TransformerFactoryImpl" hasn't been found. This seems to be the "name" attribute you've provided to the factory element of your xslt task. This is not the class name of the transformer provided by JDK9 as far as I know. It is the name Apache Xalan would use when you add Xalan to your task's classpath. > So problem I suppose is that > java.xml/com.sun.org.apache.xalan.internal.xsltc.trax containing > TransformerFactoryImpl in Java 9 is not exported in java.xml module. > So we tried adding --add-exports > java.xml/com.sun.org.apache.xalan.internal.xsltc.trax=ALL-UNNAMED where we > call Eclipse java program in headless mode. If you anted to use that, you must certainly use the correct package in the name attribute as well. > Can you suggest where to set this attribute or how to provide this > information to xslt? My first suggestion is to not specify a name attribute for the factory at all but rather do with the default provided by the Jvaa runtime. I must admit I haven't got any idea why things should be different in headless mode. -- You are receiving this mail because: You are the assignee for the bug.
