title: custom taglibs cause "PWC6033: Unable to compile class for JSP"
body: <p>When I try to use custom taglibs in my webapp it doesn't work on OS X (or Windows), using Eclipse, and Run Jetty Run. When I WAR up the files and run them on my linux server running apache-tomcat-6.0.20, there is no problem. I'm using 3rd party custom taglibs without problems in both environments.</p>
  
  <pre><code>org.apache.jasper.JasperException: PWC6033: Unable to compile class for JSP
  
  PWC6197: An error occurred at line: 6 in the jsp file: /temp.jsp
  PWC6199: Generated servlet error:
  com.test cannot be resolved to a type
   at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:107)
   at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:280)
   at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:350)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:411)
   ...
  </code></pre>
  
  <p>The custom taglib tld looks like</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1" ?&gt;
  &lt;!DOCTYPE taglib PUBLIC 
   "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
   "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"&gt;
  &lt;taglib&gt;
   &lt;tlib-version&gt;1.0&lt;/tlib-version&gt;
   &lt;jsp-version&gt;2.0&lt;/jsp-version&gt;
   &lt;short-name&gt;test&lt;/short-name&gt;
   &lt;uri&gt;http://test.com/test.tld&lt;/uri&gt;
   &lt;description&gt;Test&lt;/description&gt;
  
   &lt;tag&gt;
    &lt;name&gt;custom&lt;/name&gt;
    &lt;tag-class&gt;com.test.CustomTag&lt;/tag-class&gt;
    &lt;body-content&gt;empty&lt;/body-content&gt;
    &lt;description&gt;Custom tag&lt;/description&gt;
   &lt;/tag&gt;
  &lt;/taglib&gt;
  </code></pre>
  
  <p>And the Tag handler</p>
  
  <pre><code>package com.test;
  
  import javax.servlet.jsp.tagext.TagSupport;
  
  public class CustomTag extends TagSupport {
  
   private static final long serialVersionUID = 1L;
  
  }
  </code></pre>
  
  <p>And finally temp.jsp</p>
  
  <pre><code>&lt;%@ taglib uri="http://test.com/test.tld" prefix="test" %&gt;
  Hi
  &lt;test:custom/&gt;
  </code></pre>
  
  <p>I think my taglib definition / configuration is correct since the whole thing works when deployed to tomcat, but I've been trying things all day to make this work in Jetty to no avail.</p>