Eu tenho uma pagina index.jsp que redireciona para uma xhtml
jsp:
<%response.sendRedirect("inicio.jsf");%>
xhtml:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"xmlns:h="http://java.sun.com/jsf/html"xmlns:f="http://java.sun.com/jsf/core"xmlns:ui="http://java.sun.com/jsf/facelets"xmlns:composite="http://java.sun.com/jsf/composite"><head></head><body><h:form><table><tr><td><h:outputLabelvalue="TESTE VIVO"/></td></tr></table></h:form></body></html>
Agora fiz a alteração e quando acesso a URL da o seguinte erro:
Error 500--Internal Server Error
java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config
at com.sun.faces.application.view.JspViewHandlingStrategy.executePageToBuildView(JspViewHandlingStrategy.java:340)
at com.sun.faces.application.view.JspViewHandlingStrategy.buildView(JspViewHandlingStrategy.java:150)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:96)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:309)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3393)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
Que lib é essa?
E
evertonsilvagomesjav
Coloquei o jar jstl-api-1.2-jar em WEB-INF/lib e agora voltou o erro anterior, não quer achar a pagina
H
Hebert_Coelho
na sua JSP faça algo tipo assim:<%System.out.println(“Chegou”);response.sendRedirect(“inicio.jsf”);%>
Veja se vai aparecer essa mensagem no console.
Outra coisa, a página inicio.xhtml está no mesmo diretório dessa página de redirecionamento?
Tive um problema semelhantes agora a pouco e consegui resolver:
Fui na pasta libs que estava no meu ApacheTomcat e coloquei
o ojdbc14.jar.
Depois disso não tive mais erros.
Espero ter ajudado.