I'm trying to create a very basic custom tag that behaves like a c:if tag but with a built-in condition. The problem is that when I try to load a page that uses this custom tag, I get a NoSuchMethodError when it tries to call setJspContext(). As far as I understand, that only applies to simple tags (i.e. classes that extend SimpleTagSupport). However, as you can see, I extend TagSupport because I need the JSP body-content type. I'm hoping someone might be able to spot a problem in what I've done or shed some light on the situation. All code and stack traces are in the gist linked in the first sentence above. Thanks.