Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

where to download servlet-api-2.5.jar

 
William Stafford
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We just moved from java 1.4 to java 6 an we are seeing deprecation warnings for methods in HttpServletResponse. In our 1.4 environment we compiled with servletapi-2.3.jar. I suppose we need to move to the latest servlet api.
Based on a web search it appears that servlet-api-2.5.jar is the latest but I can not find a download site.

Can someone point me to a source for this jar.

Thanks,
-=beeky
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64613
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What servlet container are you using? It should contain the implementation that it supports.
 
William Stafford
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear,

Thanks for the pointer, the correct servlet-api.jar is in the Tomcat5.5 common/lib.

As long as we are on the subject of missing jar files do you know what and where the jar file containing javax.servlet.jsp.* might be? When I replaced servlet-api-2.3 with the one from Tomcat 5 my deprecation warnings went away only to be replaced by errors saying javax.servlet.jsp can not be found.

Thanks again for the prompt reply,
-=beeky
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a blue table on the front page of Tomcat's site that shows the correlation between Tomcat version and the JSP/Servlet spec versions.

It shows that Tomcat 6 supports Servlet Spec 2.5.
Tomcat always ships with a servlet-api.jar file.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by William Stafford:
...
As long as we are on the subject of missing jar files do you know what and where the jar file containing javax.servlet.jsp.* might be? When I replaced servlet-api-2.3 with the one from Tomcat 5 my deprecation warnings went away only to be replaced by errors saying javax.servlet.jsp can not be found.
...


There is a jsp-api.jar file in the same directory as servlet-api.jar in Tomcat.
 
William Stafford
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ben and Bear!

I'll describe what I needed to deal with my situation in case someone comes upon this thread via a search.

When I moved to Tomcat5 I needed to update the jars in my development lib directory. I originally created the new project from an old one that had used Tomcat1.4. The jar files from that project are now out of date.

The jars I needed were in the Tomcat common/lib directory. In addition to servlet-api.jar I also needed jsp-api.jar. Apparently the old servlet-api.jar also contained jsp-api.jar but the newer ones don't.

Thanks again for the quick response.

-=beeky
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64613
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does your IDE not allow you to add the jar file to your project from their original location? I never copy jar files around unless I have to.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic