aspose file tools*
The moose likes JSP and the fly likes can't find file tad lib descriptor: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "can Watch "can New topic
Author

can't find file tad lib descriptor:"http://java.sun.com/jstl/core"

karthik ekantha
Ranch Hand

Joined: Feb 08, 2012
Posts: 78


can't find file tad lib descriptor:"http://java.sun.com/jstl/core" ??
what i can do??


Saurabh Pillai
Ranch Hand

Joined: Sep 12, 2008
Posts: 509
Do you have necessary lib files in classpath? jstl.jar, standard.jar etc.
Prasad Krishnegowda
Ranch Hand

Joined: Apr 25, 2010
Posts: 560
    
    3

Saurabh Pillai wrote:jstl.jar, standard.jar etc.


Only jstl.jar and standard.jar are needed.. so no etc should be there...
karthik ekantha
Ranch Hand

Joined: Feb 08, 2012
Posts: 78
Prasad Krishnegowda wrote:
Saurabh Pillai wrote:jstl.jar, standard.jar etc.


Only jstl.jar and standard.jar are needed.. so no etc should be there...



after the jsp getting error???



HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: /cout.jsp(12,8) According to TLD or attribute directive in tag file, attribute value does not accept any expressions
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)
org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1174)
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:821)
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1512)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2393)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2399)
org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343)
org.apache.jasper.compiler.Validator.validate(Validator.java:1739)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:166)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

Saurabh Pillai
Ranch Hand

Joined: Sep 12, 2008
Posts: 509
Can you show us your web.xml file?

According to this http://dev-answers.blogspot.com/2006/12/according-to-tld-or-attribute.html, it looks like your servlet specification is wrong.
karthik ekantha
Ranch Hand

Joined: Feb 08, 2012
Posts: 78
web.xml


karthik ekantha
Ranch Hand

Joined: Feb 08, 2012
Posts: 78
Saurabh Pillai wrote:Can you show us your web.xml file?

According to this http://dev-answers.blogspot.com/2006/12/according-to-tld-or-attribute.html, it looks like your servlet specification is wrong.



i changed in the web.xml.but same error happend.what can i do??

below my web.xml this
Prasad Krishnegowda
Ranch Hand

Joined: Apr 25, 2010
Posts: 560
    
    3

change your URI in JSP from http://java.sun.com/jstl/core to http://java.sun.com/jsp/jstl/core..
karthik ekantha
Ranch Hand

Joined: Feb 08, 2012
Posts: 78
Prasad Krishnegowda wrote:change your URI in JSP from http://java.sun.com/jstl/core to http://java.sun.com/jsp/jstl/core..


now i am got the error








HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core %>
<!DOCTYPE html PUBLIC cannot be resolved in either web.xml or the jar files deployed with this application
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)
org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:315)
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:148)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:431)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:494)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1444)
org.apache.jasper.compiler.Parser.parse(Parser.java:138)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:154)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.

Prasad Krishnegowda
Ranch Hand

Joined: Apr 25, 2010
Posts: 560
    
    3

Just saw your web.xml, you are using 2.4 version, please change it to 2.5, as shown below.



EDIT: JSTL-1.2 is supported from servlet 2.5 only, and the URI i gave refers to JSTL-1.2, you should not be using JSTL-1.1 at this point of time, especially, if you are developing newly.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61648
    
  67

Remove the goop from the web.xml -- it is not necessary and could just get in the way. All you need to do is to put the JSTL jar files in WEB-INF/lib.

And make sure that you do not have there servlet and JSP API jar files there. That's a common mistake that can screw up the classpath.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
karthik ekantha
Ranch Hand

Joined: Feb 08, 2012
Posts: 78
Bear Bibeault wrote:Remove the goop from the web.xml -- it is not necessary and could just get in the way. All you need to do is to put the JSTL jar files in WEB-INF/lib.

And make sure that you do not have there servlet and JSP API jar files there. That's a common mistake that can screw up the classpath.


please help me.same error came here


org.apache.jasper.JasperException: /cout.jsp(12,8) According to TLD or attribute directive in tag file, attribute value does not accept any expressions
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61648
    
  67

Are you now using the correct URI? Are you using the EL and not scriptlets?
karthik ekantha
Ranch Hand

Joined: Feb 08, 2012
Posts: 78
i'm using this program only .but i cant output

check link i can use this program only
karthik ekantha
Ranch Hand

Joined: Feb 08, 2012
Posts: 78
Prasad Krishnegowda wrote:Just saw your web.xml, you are using 2.4 version, please change it to 2.5, as shown below.



EDIT: JSTL-1.2 is supported from servlet 2.5 only, and the URI i gave refers to JSTL-1.2, you should not be using JSTL-1.1 at this point of time, especially, if you are developing newly.



thank you .for your response
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61648
    
  67

karthik ekantha wrote:i'm using this program only .but i cant output

check link i can use this program only


Avoid roseindia like the plague. It's a horrible site.

Pots your code here. Be sure to use code tags.
Raja mca
Greenhorn

Joined: Feb 29, 2012
Posts: 2
Hi
I get problem with taglib.I placed two jar files jst.jar and standard.jar files in eclipse WEB-INF/lib folder then add to build path.But in web.xml file taglib gets error.
I used tomcat6.0 server ,jstl1.2.jar and standard1.1.2.jar and java version 5.
Please give any suggestions to resolve this problem.


<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>jprct</display-name>

<servlet>
<description></description>
<display-name>Jpt</display-name>
<servlet-name>Jpt</servlet-name>
<servlet-class>com.aquila.Jpt</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Jpt</servlet-name>
<url-pattern>/Jpt</url-pattern>
</servlet-mapping>
<taglib>-----------------------------------------------------------------I got problem this place.
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
</web-app>
Prasad Krishnegowda
Ranch Hand

Joined: Apr 25, 2010
Posts: 560
    
    3

There is no need to declare taglibs in web.xml..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can't find file tad lib descriptor:"http://java.sun.com/jstl/core"