Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 29th, 2007, 03:46 AM
Registered User
 
Join Date: Dec 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Exception in thread "main" javax.xml.transform.Tra

I'm using SimpleTransform.java (renamed as ReceiptTransformer.java for custom use) found in xalan-j_2_7_0 samples directory for transformations in my custom application. The program compiles successfully but gives the following error during runtime:

ERROR: 'org/apache/avalon/framework/configuration/Configuration'
FATAL ERROR: 'Could not compile stylesheet'
Exception in thread "main" javax.xml.transform.TransformerConfigurationExcept ion: Could not compile stylesheet
        at com.sun.org.apache.xalan.internal.xsltc.trax.Trans formerFactoryImpl.newTemplates(TransformerFactoryI mpl.java:824)
        at com.sun.org.apache.xalan.internal.xsltc.trax.Trans formerFactoryImpl.newTransformer(TransformerFactor yImpl.java:619)
        at ReceiptTransformer.main(ReceiptTransformer.java:29 )


Any help in this regard is greatly appreciated.

 
Old December 29th, 2007, 04:59 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

The processor presumably couldn't compile the stylesheet because it (the stylesheet) contained errors; we can't tell you how to fix those errors without seeing the stylesheet and the error messages. If you didn't see any error messages (other than the exception) then you need to fix ReceiptTransformer.java to make sure the errors are displayed somewhere or written to a log. By default they probably go to System.err; if you need to, you can supply your own ErrorListener to catch them and log them somewhere.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
<?javax.xml.transform.disable-output-escaping ?> robbert XSLT 5 January 5th, 2011 07:28 PM
javax.xml.transform.TransformerConfigurationExcept ashok.andena XSLT 9 March 7th, 2008 08:14 AM
"Exception in thread main java.lang.Noclass Def Fo anwarraja Java Databases 1 September 4th, 2007 07:19 AM
error:exception in thread main java.lang.noclassde sara.j JSP Basics 0 December 13th, 2006 12:35 AM
ERROR "Exception in thread "main" java.lang.NoClas nitinnishi BOOK: Beginning Java 2 3 June 17th, 2006 07:07 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.