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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]