installing jaxp transformer for Oxygen Editor 16.1
Posted: Thu Feb 05, 2015 1:26 am
Hello,
I am working on a java application that transforms XML documents using the "default" JAXP/javax transformer (javax.xml.transform.TransformerFactory). I am using Oxygen Editor 16.1 to develop the stylesheets and want to test my stylesheets in Oxygen with the same transformer that the java application uses. I've selected the JAXP transformer in the transformation scenario dialog but I got the error message
'A JAXP transformer implementation could not be instantiated! Please install it in the folder: file:/C:/Program Files/Oxygen XML Editor 16/lib/ and set the transformer factory property in Preferences -> XML -> XSLT-FO-XQuery -> XSLT. Original error was: class java.lang.IllegalAccessException with message: Class ro.sync.xml.transformer.c can not access a member of class javax.xml.transform.TransformerFactory with modifiers "protected"'
I then tried setting the "javax.xml.transform.TransformerFactory" system property to "javax.xml.transform.TransformerFactory" (that seems weird but I believe it is the right class name), changing the validation engine to JAXP, and putting one or both of the following jars in the specified location:
JAXP_160.jar (downloaded from https://jaxp.java.net/downloads.html)
javax.xml_1.3.4.v201005080400.jar (copied from my Eclipse installation)
but I get the same error. Does anyone know how I should configure the JAXP transformer? Thanks for any help.
I am working on a java application that transforms XML documents using the "default" JAXP/javax transformer (javax.xml.transform.TransformerFactory). I am using Oxygen Editor 16.1 to develop the stylesheets and want to test my stylesheets in Oxygen with the same transformer that the java application uses. I've selected the JAXP transformer in the transformation scenario dialog but I got the error message
'A JAXP transformer implementation could not be instantiated! Please install it in the folder: file:/C:/Program Files/Oxygen XML Editor 16/lib/ and set the transformer factory property in Preferences -> XML -> XSLT-FO-XQuery -> XSLT. Original error was: class java.lang.IllegalAccessException with message: Class ro.sync.xml.transformer.c can not access a member of class javax.xml.transform.TransformerFactory with modifiers "protected"'
I then tried setting the "javax.xml.transform.TransformerFactory" system property to "javax.xml.transform.TransformerFactory" (that seems weird but I believe it is the right class name), changing the validation engine to JAXP, and putting one or both of the following jars in the specified location:
JAXP_160.jar (downloaded from https://jaxp.java.net/downloads.html)
javax.xml_1.3.4.v201005080400.jar (copied from my Eclipse installation)
but I get the same error. Does anyone know how I should configure the JAXP transformer? Thanks for any help.