• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with taglib and web.xml file

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the jsp code:


the jstl is 1.0.6
[ August 06, 2007: Message edited by: Alex Florentino ]
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic