users@glassfish.java.net

Re: javax.servlet API version?

From: Jason Lee <jason.d.lee_at_oracle.com>
Date: Wed, 25 Apr 2012 10:32:28 -0500

I'm not entirely sure why there's a 3.1.1 of the API jar, but, and I
could be wrong on this, I think 3.0.1, as Shing Wai points out, is the
correct version, as there is no Servlet 3.1 yet (see JSR 340,
http://jcp.org/en/jsr/detail?id=340).

On 04/24/2012 01:04 PM, Laird Nelson wrote:
> I'm in the process of upgrading some dependencies.
>
> In the past, I had used org.glassfish:javax.servlet:3.1.1. Now I want
> to depend on 3.1.2. This artifact has not been updated.
>
> I dug around in the Glassfish source code to see what the servlet
> container itself used. To my surprise I found it uses
> org.glassfish:javax.servlet-api:3.0.1 (unless mvn help:effective-pom
> from within the web/web-core area is the wrong way to get this
> definitive answer).
>
> If I wanted to depend on the canonical Servlet API 3.0 .jar file, what
> are the appropriate Maven coordinates to use?
>
> Best,
> Laird
>
> --
> http://about.me/lairdnelson
>


-- 
Jason Lee
Senior Member of Technical Staff
GlassFish Team
Oracle Corporation
Phone +1 405-216-3193
Blog http://blogs.steeplesoft.com