File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes Problem with XSL on Solaris, works fine on NT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Problem with XSL on Solaris, works fine on NT" Watch "Problem with XSL on Solaris, works fine on NT" New topic

Problem with XSL on Solaris, works fine on NT

Muthu Subramaniam

Joined: Jun 29, 2001
Posts: 1
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(
I agree. Here's the link:
subject: Problem with XSL on Solaris, works fine on NT
It's not a secret anymore!