<< Jonathan Schwartz: Web Services May Collapse Under Its Own Weight | Home | We Found The Bug >>

Java 5 Odditty, Seeking The Right(TM) Fix

I attempted to upgrade my weblog from Red Hat 7.2/JDK 1.4.2_02/JBoss 3.2.2 (Tomcat 4.1.12)/Pebble 1.4 to Fedora Core 3/JDK 1.5.0_01/Tomcat 5.0.30/Pebble 1.7 this weekend. The transition is pretty smooth with one show stopper bug:

2005-03-06 21:44:27 StandardWrapperValve[SecureBlogController]: Servlet.service(
) for servlet SecureBlogController threw exception
javax.xml.transform.TransformerFactoryConfigurationError: Provider for javax.xml
.transform.TransformerFactory cannot be found
        at javax.xml.transform.TransformerFactory.newInstance(Unknown Source)
        at pebble.blog.persistence.file.FileBlogEntryDAO.store(FileBlogEntryDAO.
java:382)

A little Googling brought me to this page at sun.com, which says the error can be eliminated by setting the system property javax.xml.transform.TransformerFactory to com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.

The big question, of course, is, "How?"

Tags :


Re: Java 5 Odditty, Seeking The Right(TM) Fix

Maybe try to add: -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl to your Tomcat's CATALINA_OPTS environment variable?

Re: Java 5 Odditty, Seeking The Right(TM) Fix

Thank you. That's exactly what I'm looking for. And it worked. In a JPackage based installation of Tomcat 5. I can set this in the /etc/tomcat5/tomcat5.conf file.

Re: Java 5 Odditty, Seeking The Right(TM) Fix

We have installed Tomcat 5.### on JDK 1.4## as a service. to have pebble properly working, we had to set the jvmoptions with the definition mentioned above.

Add a comment Send a TrackBack