In fact, you never want to ship the servlet.jar as part of your WAR file--it
causes havoc with ClassLoaders in some of the containers, and serves as an
unnecessary distraction the rest of the time. It's only something you need
Java, .NET, XML Services
Consulting, Teaching, Speaking, Writing
> -----Original Message-----
> From: java-dev-bounces+ted=email@hidden [mailto:java-
> dev-bounces+ted=email@hidden] On Behalf Of David
> Sent: Tuesday, August 11, 2009 1:41 PM
> To: email@hidden
> Cc: email@hidden
> Subject: Re: Where do I find a .jar file with javax.servlet package
> I don't think this was answered properly on list.
> Miguel Muñoz wrote:
> > From what I can tell, the javax.servlet package used to be a part
> > of the standard distribution, but it isn't anymore. If I say
> > import javax.servlet.*;
> > my IDE can't find the servlet package. I can't figure out what jar
> > file I need to download that will have it. Does anybody know where I
> > can get a Jar file with this package?
> The javax.servlet package was never part of the the standard
> distribution. You can download it from: http://java.sun.com/products/
> The different versions seem to be setup differently. I'm still using
> v.2.2 which contains a zipped version of servlet.jar. You need to be
> careful as if you double-click the files in the Mac Finder they will
> automatically unzip and unjar and delete the jar file. Use the
> command line or Stuffit. The later versions (2.3 at least) contains
> the javax directory found within servlet.jar 2.2, so I'd probably put
> it in a folder entitled servlet and jar it (may not be necessary).
> Although it is true that you don't need the servlet.jar when you run
> your servlet in servlet engines such as Tomcat, or in the (imho
> awful) Eclipse JEE IDE, you may need it with other IDEs - certainly
> you did with CodeWarrior, and I would imagine with X-code.
> Do not post admin requests to the list. They will be ignored.
> Java-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> This email sent to email@hidden
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden