aspose file tools*
The moose likes Servlets and the fly likes Problem with taglib and web.xml file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem with taglib and web.xml file" Watch "Problem with taglib and web.xml file" New topic
Author

Problem with taglib and web.xml file

Alex Florentino
Ranch Hand

Joined: Dec 12, 2006
Posts: 48
Hi all,

I need install http://www.jamwiki.org/, ok I make download and make war file... the problem is that my tomcat version is 4.1 and in original web.xml file is:



when I access the application I get error:

org.apache.jasper.JasperException: /WEB-INF/jsp/setup.jsp(26,0) This absolute uri (http://java.sun.com/jstl/fmt) cannot be resolved in either web.xml or the jar files deployed with this application.

but when I change web.xml with :



then the page seen work fine. Is it correct ? or I'm crazy

I suppose that :

is for apache 5.0 ?

and
is for apache 4.0 ?

somebody explanation about it ?

thanks a lot.

[ August 06, 2007: Message edited by: Alex Florentino ]
[ August 06, 2007: Message edited by: Alex Florentino ]
Prem Kashyap
Ranch Hand

Joined: Oct 10, 2006
Posts: 52
It depends on which Servlet version you are using. Tomcat 4.1 supports Servlet 2.3 specification, so if you trying to use 2.4 specification inside web.xml, it wont work.

Tomact 5 supports Servlet Specification 2.4.

Regards

Prem Kashyap

SCJP 1.4 - 88%
Alex Florentino
Ranch Hand

Joined: Dec 12, 2006
Posts: 48
Originally posted by Prem Kashyap:
It depends on which Servlet version you are using. Tomcat 4.1 supports Servlet 2.3 specification, so if you trying to use 2.4 specification inside web.xml, it wont work.

Tomact 5 supports Servlet Specification 2.4.



ok, but only difference is web.xml file ? It make very bad... because is hard newbie found this issue.

another question servlet 2.4 is compatible with servlet 2.3
[ August 06, 2007: Message edited by: Alex Florentino ]
Prem Kashyap
Ranch Hand

Joined: Oct 10, 2006
Posts: 52
Also can you paste the contents of the JSP file which is throwing this error. Just the first 3 lines of page directive.

Try giving this URI instead of the one you are giving :

http://java.sun.com/jsp/jstl/fmt

Also which JSTL version jar you are using? Is it 1.0 or 1.1
?
Regards

Prem Kashyap
Alex Florentino
Ranch Hand

Joined: Dec 12, 2006
Posts: 48
the jsp code:


the jstl is 1.0.6
[ August 06, 2007: Message edited by: Alex Florentino ]
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by Alex Florentino:


ok, but only difference is web.xml file ? It make very bad... because is hard newbie found this issue.

another question servlet 2.4 is compatible with servlet 2.3

[ August 06, 2007: Message edited by: Alex Florentino ]


No, it's not just the web.xml file.
Tomcat 4.1 does not support the features of servlet spec 2.4.
If the third party product you're using requires 2.4 (which seems to be the case) then it will not work in Tomcat 4.1.
You'll need to upgrade to 5.0 or better.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with taglib and web.xml file