IBM Support

javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.xsltc.trax.TransformerFactoryImpl not found

Troubleshooting


Problem

The org.apache.xalan.xsltc.trax.TransformerFactoryImpl was available in Java 5, but was removed in Java 6. Thus, if an application is hard-coded to use that transformer factory, it will fail. There is a new compiler implementation in Java 6 which is used by default. Java 6 is included in WebSphere Application Server v7, v8, v8.5, and v8.5.5

Cause

The org.apache.xalan.xsltc.* package does not exist in Java 6. It was replaced by another implementation called XL TXE.

Resolving The Problem

Applications should fix any hard-coded dependencies they had on the old implementation.

Migrating to the XL-TXE-J
http://publib.boulder.ibm.com/infocenter/javasdk/v6r0/topic/com.ibm.java.doc.user.win32.60/user/xml/xslt_migrate.html


To continue using the XSLT4J interpreter as your XSLT processor, set the javax.xml.transform.TransformerFactory service provider to org.apache.xalan.processor.TransformerFactoryImpl.

1. Log into the WebSphere Application Server administrative console.

2. Go to Servers --> Application servers --> select the appropriate server.

3. Under Server Infrastructure, expand Java and Process Management --> Process Definition.

4. Click Java Virtual Machine --> Additional Properties --> Custom Properties.

5. Create the javax.xml.transform.TransformerFactory property and set it to org.apache.xalan.processor.TransformerFactoryImpl.

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"--","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF014","label":"iOS"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF035","label":"z\/OS"}],"Version":"7.0;8.0;8.5;8.5.5","Edition":"Base;Network Deployment","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg21661696