Where can I get the source code of the servlet-api.jar?

Viewed 20185

I have a project that uses servlet-api.jar. When debugging, I wanted to step into its classes (such as HttpServlet), but I got "Source not found attach source ".

Is there a way to get the source like all the Java sources? It would be good to have so I would be able to debug it and to step into the code.

7 Answers
  • When you download the binary distribution of the apache tomcat, you can also download the corresponding source code distribution(on the same page).
  • Simply download the source code distribution zip.
  • move it to somewhere inside tomcat apache folder
  • Point to source code distribution zip when Eclipse asks you for the source code attachment.
Related