The paths in /usr/share/tomcat-servlet-api-3.0/sources/tomcat-servlet-api-src.zip don't have the javax/-prefix. e.g: 20276 07-02-2013 10:01 servlet/http/HttpServletRequest.java Reproducible: Always Steps to Reproduce: 1. Install tomcat-servlet-api-7.0.47 with use flag "source". 2. unzip -l /usr/share/tomcat-servlet-api-3.0/sources/tomcat-servlet-api-src.zip | grep HttpServletRequest.java Actual Results: 20276 07-02-2013 10:01 servlet/http/HttpServletRequest.java Expected Results: 20276 07-02-2013 10:01 javax/servlet/http/HttpServletRequest.java Fixed this for me by changing the line use source && java-pkg_dosrc java/javax/servlet/ in the ebuild to use source && java-pkg_dosrc java/javax/
Several years have elapsed, I don't use this package anymore and the current version apparently doesn't have this problem.