In JspC the context classloader is set (initClassLoader() in processFile()), but never reset to the original. This may cause serious (and hard to find ;-)) classloader trouble when JspC is used as an Ant task. For example, in my case ant crashes during an xdoclet task (!) that is executed after the jspc task with the following message: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log. I think the fix is fairly simple: just set back the original classloader after JspC is done - that is, for me this works fine. I'll attach a patch. Peter Doornbosch Luminis - The Art of Software Engineering web: http://www.luminis.nl
Created attachment 13509 [details] fix for this bug: set back original ClassLoader just before returning from processFile()
Not only is this good for your issue, it solves another one which I'd close as not reproducible. So this is great. Thank you for submitting this patch. Done for 5.5.5 and 5.0.30.
*** Bug 29904 has been marked as a duplicate of this bug. ***