Link to home
Start Free TrialLog in
Avatar of RaghupalReddy
RaghupalReddyFlag for India

asked on

how to add taglib of jsf in jsp pages

i got  this exception while running this jsp code how to handle it please help me

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/jsf/facelets 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:312)
      org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:147)
      org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:420)
      org.apache.jasper.compiler.Parser.parseDirective(Parser.java:476)
      org.apache.jasper.compiler.Parser.parseElements(Parser.java:1426)
      org.apache.jasper.compiler.Parser.parse(Parser.java:133)
      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:167)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
      org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

note The full stack trace of the root cause is available in the JBossWeb/2.0.1.GA logs.
JBossWeb/2.0.1.GA
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"  "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/facelets" prefix="ui" %>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
<html>
 
 <body>
 
  <script type="text/javascript" src="swfobject1.js"></script>
 
 
 
  </tbody></table>
  <h3><%=session.getAttribute("flv")%></h3>
</body>
</html>

Open in new window

Avatar of Manish
Manish
Flag of India image

I think u canonot use
<%@ taglib uri="http://java.sun.com/jsf/facelets" prefix="ui" %>

in jsp.
ASKER CERTIFIED SOLUTION
Avatar of Gibu George
Gibu George
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial