Bug 50021 - ExceptionUtils class missing from bootstrap.jar
ExceptionUtils class missing from bootstrap.jar
Product: Tomcat 7
Classification: Unclassified
Component: Catalina
PC All
: P2 critical (vote)
: ---
Assigned To: Tomcat Developers Mailing List
Depends on:
  Show dependency tree
Reported: 2010-09-29 03:43 UTC by Tim Whittington
Modified: 2010-09-29 06:16 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Tim Whittington 2010-09-29 03:43:11 UTC
o.a.c.startup.Bootstrap uses o.a.jasper.util.ExceptionUtils, but this class is not placed in bootstrap.jar, causing rather nasty failures if anything goes wrong during initial bootstrapping.

This should be a fairly simple matter of updating build.xml to include it, but I wasn't sure whether including Jasper classes in the bootstrap was the done thing.
There's an o.a.tomcat.util.ExceptionUtils that is identical, but that too looks like the wrong thing to grab.
Comment 1 Mark Thomas 2010-09-29 05:52:55 UTC
It shouldn't be using the Jasper version of this class, it should be using the Catalina one if any. For a similar situation previously we copied the method to the affected class so bootstrap remained as minimal as possible.

I'll try and take a look since it was almost certainly my recent changes that broke this.
Comment 2 Mark Thomas 2010-09-29 06:16:17 UTC
Fixed the wider issue of using the wrong ExceptionUtils as well as this specific issue. Will be in 7.0.3 onwards.