Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with XSL on Solaris, works fine on NT  RSS feed

Muthu Subramaniam
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a program that works fine on Windows NT which I want to deploy it on Solaris but facing problem when I try to acquire an instance of TransformerFactory. Here is the snippet of code I have problem with and the error message.
I use JDK1.2.2 and JAXP for the Transformation. I copied jaxp.jar, crimson.jar and xalan.jar into jdk1.2.2/jre/lib/ext directory to avoid specifing CLASSPATH. The program works fine on NT but throws error on Solaris.
Will appreciate any help on this.
import javax.xml.transform.*;
public class TestXSL {
public static void main(String[] args) {

TransformerFactory factory = TransformerFactory.newInstance();

Here is the error
bash-2.03$ /usr/bin/Solaris_JDK_1.2.2_08/bin/java -cp .:/usr/bin/Solaris_JDK_1.2.2_08/jre/lib/ext/jaxp.jar:/usr/bin/Solaris_JDK_1.2.2_08/jre/lib/ext/xalan.jar:/usr/bin/Solaris_JDK_1.2.2_08/jre/lib/ext/crimson.jar TestXSL
Exception in thread "main" javax.xml.transform.TFactoryConfigurationError: org.apache.xalan.processor.TransformerFactoryImpl
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.<init>(
at java.lang.Error.<init>(
at javax.xml.transform.TFactoryConfigurationError.<init>(
at javax.xml.transform.TransformerFactory.newInstance(
at TestXSL.main(
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!