Olá galera, to a um tempo tentando descubrir o porque dessas exceptions mas tá dificil.
Bom, to tentando fazer um simples Wizard de cadastro com o Primefaces, Do nada não to conseguindo mais rodar a aplicação, starta o servidor já dando altos erros.
vi no primefaces showcase um exemplo de wizard e logo no <p:wizard> passam 2 parametros, é obrigado por eles?? pois não estou colocando, já tentei colocar e tudo mas continua dando erro…
Porque dessas exceptions estarem ocorrendo?
segue as exceptions:
INFO: Unsanitized stacktrace from failed start...
com.sun.faces.config.ConfigurationException: java.lang.Exception: No Function Found on type: org.primefaces.util.ComponentUtils with signature: java.lang.String getWidgetVar(java.lang.String)
at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processFunctions(FaceletTaglibConfigProcessor.java:620)
at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTagLibrary(FaceletTaglibConfigProcessor.java:318)
at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.process(FaceletTaglibConfigProcessor.java:263)
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:337)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:223)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4521)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5004)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:4999)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)
Caused by: java.lang.Exception: No Function Found on type: org.primefaces.util.ComponentUtils with signature: java.lang.String getWidgetVar(java.lang.String)
at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.createMethod(FaceletTaglibConfigProcessor.java:659)
at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processFunctions(FaceletTaglibConfigProcessor.java:617)
... 12 more
02/02/2011 14:24:02 org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! No Function Found on type: org.primefaces.util.ComponentUtils with signature: java.lang.String getWidgetVar(java.lang.String)
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:354)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:223)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4521)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5004)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:4999)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)
Caused by: java.lang.Exception: No Function Found on type: org.primefaces.util.ComponentUtils with signature: java.lang.String getWidgetVar(java.lang.String)
at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.createMethod(FaceletTaglibConfigProcessor.java:659)
at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processFunctions(FaceletTaglibConfigProcessor.java:617)
at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.processTagLibrary(FaceletTaglibConfigProcessor.java:318)
at com.sun.faces.config.processor.FaceletTaglibConfigProcessor.process(FaceletTaglibConfigProcessor.java:263)
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:337)
... 9 more
02/02/2011 14:24:02 org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
02/02/2011 14:24:02 org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/lioneletronicos] startup failed due to previous errors
02/02/2011 14:24:02 com.sun.faces.config.ConfigureListener contextDestroyed
SEVERE: Unexpected exception when attempting to tear down the Mojarra runtime
java.lang.IllegalStateException: O aplicativo não foi iniciado corretamente na inicialização. Não foi possível encontrar Fábrica: javax.faces.application.ApplicationFactory
at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:804)
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:306)
at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:104)
at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:309)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4561)
at org.apache.catalina.core.StandardContext$4.call(StandardContext.java:5233)
at org.apache.catalina.core.StandardContext$4.call(StandardContext.java:5212)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)
[code]<h:form>
<p:wizard>
<p:tab title=“Informações Pessoais”>
<p:panel header=“Informações Pessoais:”>
<h:panelGrid columns=“2”>
<h:outputLabel value=“Nome:” for=“nome”/>
<h:inputText id=“nome” value="#{usuarioBean.usuario.nome}"/>
<h:outputLabel value="E-mail:" for="email"/>
<h:inputText id="email" value="#{usuarioBean.usuario.email}"/>
<h:outputLabel value="Senha:" for="senha"/>
<h:inputSecret id="senha" value="#{usuarioBean.usuario.senha}"/>
<h:outputLabel value="RG:" for="rg"/>
<h:inputText id="rg" value="#{usuarioBean.usuario.rg}"/>
<h:outputLabel value="CPF:" for="cpf"/>
<h:inputText id="cpf" value="#{usuarioBean.usuario.cpf}"/>
<h:outputLabel value="Telefone:" for="telefone"/>
<h:inputText id="telefone" value="#{usuarioBean.usuario.telefone}"/>
<h:outputLabel value="Celular:" for="celular"/>
<h:inputText id="celular" value="#{usuarioBean.usuario.celular}"/>
</h:panelGrid>
</p:panel>
</p:tab>
<p:tab title="Endereço">
<p:panel header="Endereço:">
<h:panelGrid columns="2">
<h:outputLabel value="CEP:" for="cep"/>
<h:inputText id="cep" value="#{usuarioBean.usuario.endereco.cep}"/>
<h:outputLabel value="Endereço:" for="endereco"/>
<h:inputText id="endereco" value="#{usuarioBean.usuario.endereco.endereco}"/>
<h:outputLabel value="Bairro:" for="bairro"/>
<h:inputText id="bairro" value="#{usuarioBean.usuario.endereco.bairro}"/>
<h:outputLabel value="Complemento:" for="complemento"/>
<h:inputText id="complemento" value="#{usuarioBean.usuario.endereco.complemento}"/>
<h:outputLabel value="Número:" for="numero"/>
<h:inputText id="numero" value="#{usuarioBean.usuario.endereco.numero}"/>
<h:outputLabel value="Estado:" for="estado"/>
<h:selectOneMenu value="#{usuarioBean.idEstado}">
<f:selectItems id="estado" value="#{usuarioBean.listaDeEstados}" var="e" itemValue="#{e.id}" itemLabel="#{e.estado}"/>
</h:selectOneMenu>
<h:outputLabel value="Cidade:" for="cidade"/>
<h:selectOneMenu value="#{usuarioBean.usuario.endereco.cidade.cidade}">
<f:selectItems id="cidade" value="#{usuarioBean.listaCidadesDoEstado}" var="c" itemValue="#{c.cidade}" itemLabel="#{c.cidade}"/>
</h:selectOneMenu>
</h:panelGrid>
</p:panel>
</p:tab>
</p:wizard>
</h:form>[/code]
Grato!