Each vendor implements Java EE in their own way. What you will have to do is download the source code for an application server (or just
Tomcat, for the HTTP classes) and use those.
Also, Java EE is a conglomeration of many specs. Each spec is described on the JCP web site as a JSR. Some of the JSRs provide source code for the reference implementation.