This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JSP and the fly likes jsp error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "jsp error" Watch "jsp error" New topic
Author

jsp error

Jithesh Kumar
Ranch Hand

Joined: Mar 09, 2010
Posts: 46
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

Joined: Jan 10, 2002
Posts: 61310
    
  66

Please read: TellTheDetails

Where did you place the JSTL jar files (for 1.1) or file (for 1.2)?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Jithesh Kumar
Ranch Hand

Joined: Mar 09, 2010
Posts: 46
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

Joined: Apr 01, 2010
Posts: 14
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."


Sita Putta
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61310
    
  66

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

Joined: Mar 09, 2010
Posts: 46
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

Joined: Mar 09, 2010
Posts: 46
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

Joined: Jan 10, 2002
Posts: 61310
    
  66

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?
 
GeeCON Prague 2014
 
subject: jsp error