StackOverflowError em página chamando template (FACELETS)

2 respostas
Tiburcio_Mancha
Algúem sabe pq ocorre este erro? Minha página chama está assim:
<?xml version="1.0" encoding="ISO-8859-1"?>
<html xmlns="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">

<ui:composition template="/attributes/templates/template.xhtml">
	<ui:define name="content">
		<f:view contentType="text/html">
			<h:form>
				<h:outputText value="Teste" />
			</h:form>
		</f:view>
	</ui:define>
</ui:composition>
</html>
Na hora que a chamo, é disparado o StackOverflowError . A seguir o log:
javax.servlet.ServletException: Servlet execution threw an exception
	org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
	org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
	org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
	org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)

root cause

java.lang.StackOverflowError
	com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:58)
	com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:58)
	com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:58)
	com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:58)
	com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:58)
	com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:58)
	com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:58)

A configuração do web.xml está correta, alguém pode me ajuda?Ah, o caminho do template tb esta correto!

2 Respostas

guilhermehbueno

Tente sem o f:view…

Caso não resolva verifique se está fazendo uma chamada recursiva dos templates

Tiburcio_Mancha

bom, eu só tenho um template e ele é chamado como mostrado no código acima.

tirando o f:view não resolveu tb…

Criado 9 de setembro de 2010
Ultima resposta 9 de set. de 2010
Respostas 2
Participantes 2