Error: javax.xml.transform.TransformerFactoryConfigurationError] : [Provider com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl not found at javax.xml.transform.TransformerFactory.newInstance(Unknown Source).

Error: javax.xml.transform.TransformerFactoryConfigurationError] : [Provider com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl not found at javax.xml.transform.TransformerFactory.newInstance(Unknown Source).

book

Article ID: KB0090350

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Resolution:
Description:
========
When executing Java code in an AIX environmet, the following error is seen.

"javax.xml.transform.TransformerFactoryConfigurationError] : [Provider com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl not found at javax.xml.transform.TransformerFactory.newInstance(Unknown Source)."

Message code :BW-JAVA-100001
============
The same issue was reported under Windows, but after adding the following code at the beginning:

===========
System.setProperty("javax.xml.transform.TransformerFactory","com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl");
===========

The error was no loner reported, but continued to be seen under AIX.

Environment:
========
AIX

Cause:
=====

From Windows, the local machine in the following path "c:\hometibco\jre\1.6.0\lib\" does have a rt.jar that includes the required class in the issue "com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl". 
However this required the class does not exist in rt.jar in the AIX TIBCO bundled JRE. It appears we bundled the Sun JDK with TRA in Windows, but bundled the IBM JDK in AIX, after checking the TRA 5.7.3 Release Notes document. Copied here for reference:

===========
The following third-party software is now bundled with TIBCO Runtime Agent:


JRE 1.6 .

JRE 1.6 update 30 on Windows, Solaris, and Linux platforms.

JRE 1.6 update 13 on HP-UX platforms.
JRE 1.6 (SR10) on AIX platforms.
============

It appear there is no Sun JDK for AIX. IBM bundled their own JDK on AIX.

Resolution:
=======

Add the following at the beginning of the Java code:

System.setProperty("javax.xml.transform.TransformerFactory","org.apache.xalan.processor.TransformerFactoryImpl");

Issue/Introduction

Error: javax.xml.transform.TransformerFactoryConfigurationError] : [Provider com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl not found at javax.xml.transform.TransformerFactory.newInstance(Unknown Source).