ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 31672] New: - TRaX XSLT processor ClassNotFoundException not shown
Date Tue, 12 Oct 2004 16:18:22 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31672>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31672

TRaX XSLT processor ClassNotFoundException not shown

           Summary: TRaX XSLT processor ClassNotFoundException not shown
           Product: Ant
           Version: 1.6.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: jsweeney@recruitsoft.com


When the TRaX liaison class is not available, the try/catch construct does not
correctly process the exception and the net result is that it is not shown to
the user.  When none of the processors are available, only the
ClassNotFoundExceptions for the xslp and xalan1 are shown.  This makes debugging
very difficult.

The solution is very easy however, simply add the new line below in the
org.apache.tools.ant.taskdefs.XSLTProcess class

    protected XSLTLiaison getLiaison() {

                try {
                    resolveProcessor("trax");
                } catch (Throwable e1) {
                    try {
                        resolveProcessor("xalan");
                    } catch (Throwable e2) {
                        try {
                            resolveProcessor("xslp");
                        } catch (Throwable e3) {
                            e3.printStackTrace();
                            e2.printStackTrace();
*** NEW ***                 e1.printStackTrace();
                            throw new BuildException(e1);
                        }
                    }
                }

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message