I was constantly trying to pin sources for javax. libs properly without result, until it found that in some cases, for some reason, Eclipse messed up the connection between .jar and its classes. For example. when I clicked on Attach Source ... for HttpServlet.class this option to provide sources for my gwt-user.jar lib confused me a bit.
Therefore, you can try playing with the priority of your libraries in Project> Properties> Java Build Path> Order and Export to place your kit on top of the rest (for example, put the Apache Tomcat v7.0 library higher than the GWT SDK ). Also, on the Libraries tab, specify the correct source archive for servlet-api.jar , for example apache-tomcat-7.0.22-src.zip . Magically the problem is solved in the end.
vitrums
source share