salve!
ao rodar um projeto web deu o seguinte erro:
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 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:316)
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:149)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:386)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:450)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1397)
org.apache.jasper.compiler.Parser.parse(Parser.java:130)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:185)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:347)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:326)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
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.32 logs.
Apache Tomcat/6.0.32
jsp:
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Consulta de Setores</title>
</head>
<body>
<input type="hidden" id="acao" value="Consultar" />
<form action="SetoresSrv?Consultar" method="post">
<table>
<thead>
<td>
<tr>ID</tr>
</td>
<td>
<tr>Nome</tr>
</td>
<td>
<tr>Utiliza agenda?</tr>
</td>
</thead>
<tbody>
<c:forEach var="setores" items="${listaSetor}">
<td>
<tr><c:out value="${setores.idSetor}">${setores.idSetor}</c:out></tr>
</td>
<td>
<tr><c:out value="${setores.nomeSetor}">${setores.nomeSetor}</c:out></tr>
</td>
<td>
<tr><c:out value="${setores.agenda}">${setores.agenda}</c:out></tr>
</td>
</c:forEach>
</tbody>
</table>
</form>
</body>
</html>
vi que na mensagem é citado o web.xml
dei uma olhada nele e nao vi nada de taglib declarado nele entao dei uma pesquisada e vi alguns dizerem que tinha que colocar o seguinte
<taglib>
<taglib-uri>/WEB-INF/c.tld</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
coloquei mas deu erro dizendo que é inválido!
ja configurei o build path certinho do projeto e ja copiei os .jar’s pra pasta lib do WEB-INF
esta faltando algo ou eu fiz bestera msm?
abs