I want to write a simple Java library - I mean, a Java project which I want to make available via a JAR - that will be used in a Java EE context. My library needs javax.servlet.* packages. Is there a jar which exposes only javax.servlet.* interfaces ? Thanks.
If you download Tomcat's binary ZIP file, it includes servlet-api.jar. That contains all you need. If you want to also develop for JSP then you'll also need jsp-api.jar that also available in the same ZIP file.