• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSTL Newbie Question  RSS feed

 
Steven Sow
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have JSTL working locally just fine on Tomcat 5.5.27. I put jstl.jar and standard.jar into the shared/lib folder, and then dropped a simple JSP into the webapps folder, and everything works great.

However, when I do the same on my server (Tomcat 5.5.20 as well) I get the error:
org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application

I have seen several examples of this error on the web, and most solutions revolve around editing of the web.xml file, however in this case, there is no web.xml file. Just a JSP dropped in.

Why would it work locally but not on the server? My environments are almost identical...What am I missing?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No web.xml == malformed web app.

You should at least have a minimal web.xml for every web app.

However, there needs to be no declarations in the web.xml with regards to the JSTL.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!