Galera blz!?
Estou fazendo uma aplicação com javascript e apareceu esse erro e não estou conseguindo identificar onde! Quando colocao pra rodar a pag. principal dar esse erro…
type Exception report
message Error Parsing /includes/menu.xhtml: Error Traced[line: 2] A declaração do tipo de documento do tipo de elemento "html" deve terminar com '>'.
description The server encountered an internal error that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Error Parsing /includes/menu.xhtml: Error Traced[line: 2] A declaração do tipo de documento do tipo de elemento "html" deve terminar com '>'.
javax.faces.webapp.FacesServlet.service(Unknown Source)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
root cause
javax.faces.view.facelets.FaceletException: Error Parsing /includes/menu.xhtml: Error Traced[line: 2] A declaração do tipo de documento do tipo de elemento "html" deve terminar com '>'.
com.sun.faces.facelets.compiler.SAXCompiler.doCompile(Unknown Source)
com.sun.faces.facelets.compiler.SAXCompiler.doCompile(Unknown Source)
com.sun.faces.facelets.compiler.Compiler.compile(Unknown Source)
com.sun.faces.facelets.impl.DefaultFaceletFactory.createFacelet(Unknown Source)
com.sun.faces.facelets.impl.DefaultFaceletFactory.access$100(Unknown Source)
com.sun.faces.facelets.impl.DefaultFaceletFactory$1.newInstance(Unknown Source)
com.sun.faces.facelets.impl.DefaultFaceletFactory$1.newInstance(Unknown Source)
com.sun.faces.facelets.impl.DefaultFaceletCache$1.newInstance(Unknown Source)
com.sun.faces.facelets.impl.DefaultFaceletCache$1.newInstance(Unknown Source)
com.sun.faces.util.ExpiringConcurrentCache$1.call(Unknown Source)
java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
com.sun.faces.util.ExpiringConcurrentCache.get(Unknown Source)
com.sun.faces.facelets.impl.DefaultFaceletCache.getFacelet(Unknown Source)
com.sun.faces.facelets.impl.DefaultFaceletCache.getFacelet(Unknown Source)
com.sun.faces.facelets.impl.DefaultFaceletFactory.getFacelet(Unknown Source)
com.sun.faces.facelets.impl.DefaultFacelet.include(Unknown Source)
com.sun.faces.facelets.impl.DefaultFacelet.include(Unknown Source)
com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(Unknown Source)
com.sun.faces.facelets.tag.ui.IncludeHandler.apply(Unknown Source)
com.sun.faces.facelets.tag.ui.DefineHandler.applyDefinition(Unknown Source)
com.sun.faces.facelets.tag.ui.CompositionHandler.apply(Unknown Source)
com.sun.faces.facelets.impl.DefaultFaceletContext$TemplateManager.apply(Unknown Source)
com.sun.faces.facelets.impl.DefaultFaceletContext.includeDefinition(Unknown Source)
com.sun.faces.facelets.tag.ui.InsertHandler.apply(Unknown Source)
javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(Unknown Source)
com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(Unknown Source)
javax.faces.view.facelets.DelegatingMetaTagHandler.apply(Unknown Source)
javax.faces.view.facelets.CompositeFaceletHandler.apply(Unknown Source)
javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(Unknown Source)
com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(Unknown Source)
javax.faces.view.facelets.DelegatingMetaTagHandler.apply(Unknown Source)
javax.faces.view.facelets.CompositeFaceletHandler.apply(Unknown Source)
com.sun.faces.facelets.compiler.NamespaceHandler.apply(Unknown Source)
com.sun.faces.facelets.compiler.EncodingHandler.apply(Unknown Source)
com.sun.faces.facelets.impl.DefaultFacelet.include(Unknown Source)
com.sun.faces.facelets.impl.DefaultFacelet.include(Unknown Source)
com.sun.faces.facelets.impl.DefaultFacelet.include(Unknown Source)
com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(Unknown Source)
com.sun.faces.facelets.tag.ui.CompositionHandler.apply(Unknown Source)
com.sun.faces.facelets.compiler.NamespaceHandler.apply(Unknown Source)
com.sun.faces.facelets.compiler.EncodingHandler.apply(Unknown Source)
com.sun.faces.facelets.impl.DefaultFacelet.apply(Unknown Source)
com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(Unknown Source)
com.sun.faces.lifecycle.RenderResponsePhase.execute(Unknown Source)
com.sun.faces.lifecycle.Phase.doPhase(Unknown Source)
com.sun.faces.lifecycle.LifecycleImpl.render(Unknown Source)
javax.faces.webapp.FacesServlet.service(Unknown Source)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.69 logs.
PAGINA PRINCIPAL
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
template="/templates/modeloSistema.xhtml"
>
<ui:define name="menu">
<ui:include src="/includes/menu.xhtml">
</ui:include>
</ui:define>
</ui:composition>