Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp error

 
Jithesh Kumar
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am getting the below error for this code:



Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64858
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read: TellTheDetails

Where did you place the JSTL jar files (for 1.1) or file (for 1.2)?
 
Jithesh Kumar
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have placed jstl.jar and standard.jar in lib folder of web appplication. i am using jboss-5.1.0.GA
Also i am getting the following error while executing the jsp file

javax.servlet.ServletException: java.lang.LinkageError: Class javax/servlet/http/HttpServletRequest violates loader constraints
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:257)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

Below is the sample jsp file

 
Sita Marivada
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cannot find the tag library descriptor for “http://java.sun.com/jsp/jstl/core”‘ is an error message that you might have seen while executing your JSTL code. So if you are getting this error message, the first thing you need to do is to make sure that you have all the JSTL jar files are in your class path. If you have the JSTL libraries in your class path and still you are getting the same error, you will have an older version of JSTL in your class path."
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64858
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Be sure that the JSTL jar files that you used are for JSTL 1.1, not JSTL 1.0.

For the latter problem, you didn't put copies of the servlet and JSP jars in WEB-INF/lib, did you?
 
Jithesh Kumar
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sita Marivada wrote:Cannot find the tag library descriptor for “http://java.sun.com/jsp/jstl/core”‘ is an error message that you might have seen while executing your JSTL code. So if you are getting this error message, the first thing you need to do is to make sure that you have all the JSTL jar files are in your class path. If you have the JSTL libraries in your class path and still you are getting the same error, you will have an older version of JSTL in your class path."


class path in the sense the jdk path or jboss path
 
Jithesh Kumar
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Be sure that the JSTL jar files that you used are for JSTL 1.1, not JSTL 1.0.

For the latter problem, you didn't put copies of the servlet and JSP jars in WEB-INF/lib, did you?


i have put servlet-api.jar and standard.jar in the WEB-INF/lib folder...jsp jar means which jars..

do i need to put jstl.jar also in the lib folder?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64858
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
bon jith wrote:i have put servlet-api.jar

Why? Remove it. Also the jsp-api.jar if you put it there too.

do i need to put jstl.jar also in the lib folder?

Yes, both jar files are need for JSTL 1.1.

JSTL setup is covered in the JSP FAQ. Have you not read it?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic