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 July 12th, 2007, 09:11 PM
Registered User
Join Date: Jul 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help with JAXP (NoClassDefFoundError)

I copied a program SimpleJaxp.java (from Java & XSLT, OReilly) and ran it successfully within Eclipse, as a standalone prog. Now I wanted to use the same prog within my JBoss ear project - when I wrote the prog in Eclipse, there was no compile error and build was successful. However, once I deploy&run it in JBoss, I get the following NoClassDefFound error:

2007-07-12 17:59:32,623 ERROR [STDERR] java.lang.NoClassDefFoundError: javax/xml/transform/Result

The snippet of code, where it seems to be failing is:

javax.xml.transform.Source xmlSource = new
javax.xml.transform.Source xsltSource = new
javax.xml.transform.Result result = new
    javax.xml.transform.stream.StreamResult(System.out );

Both Eclipse and JBoss are using the same JDK on the same machine (Win XP), and when I look into rt.jar within [JDK]/bin, I see the path to javax/xml/transform/Result.class.
So then where is the problem??
I have spent just too many hours to resolve this!!! Driving me nuts.
Old July 13th, 2007, 03:53 AM
mhkay's Avatar
Wrox Author
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts

javax.xml.transform.Result has been part of the standard library since JDK 1.4 IIRC, so it looks to me as if you are using an environment that is older than this.

This is really a Java/JBoss question, you are unlikely to find help on an XSLT forum.

Michael Kay
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference

Similar Threads
Thread Thread Starter Forum Replies Last Post
JAXP and XSLT 2.0 / XPATH 2.0 ojasrege XSLT 2 November 27th, 2007 10:40 AM
jaxp and xslt2 multiple output aowss XSLT 2 October 10th, 2007 01:21 AM
JAXP without source document Hendrik XSLT 1 September 28th, 2004 03:31 AM
NoClassDefFoundError Crava J2EE 3 January 30th, 2004 12:48 PM
Java NoClassDefFoundError wireblock JSP Basics 1 August 19th, 2003 01:22 AM

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