Luciano Resende wrote:

I was checking the various pom.xml that had a reference to
servlet-api, and noticed that we have multiple versions around.
What should be the servlet-api version we should be using ? Currently
we have servlet-api-2.5.jar in our binary distribution, some webapps
built with maven have servlet-api-2.3.jar, etc.

I did some investigations into this some time ago and started a
discussion thread.  See [1].

My recommendation at the time was to use the servlet-api-2.5 from
Geronimo and I believe this is the best approach.  The servlet-api-2.5
from Sun omits some files and these cause warning messages from
Tomcat.  Also, the servlet-api-2.5 from Geronimo is under the
Apache license, not the Sun license.

In the earlier discussion there were some suggestions to use the
2.4 API everywhere instead of 2.5 so that Tuscany is able to run
on 2.4 level servlet containers.  Using the 2.5 API doesn't prevent
this as long as we don't call any methods of the 2.5 API that fall
outside the 2.4 subset.  The compiler would not enforce this, so we
would need to be careful.

This flip side to this concern is that if we use the 2.4 API
everywhere, we might not work correctly with 2.5 containers.
There are ways to code around this (see my last post to thread [1]
for a suggestion) but these techniques are not in common use and
seem to me to be more risky than using the 2.5 API and only
calling 2.4 methods.

If everyone is OK with this, I am willing to upgrade all our usage
to the 2.5 API jar from Geronimo.  I did this in experimental mode
back in November and I still have the changes that I made then.

  Simon

[1] http://www.mail-archive.com/[email protected]/msg25672.html



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to