Erro estranho

5 views
Skip to first unread message

Rafael Rossignol Felipe

unread,
Aug 1, 2008, 12:26:11 PM8/1/08
to jav...@googlegroups.com
fala ae pessoal, percebo que as vezes quando estou subindo a aplicação  (tanto no tomcat quanto no jboss) esse erro abaixo acontece. Ai é só parar e subir de novo q volta tudo ao normal, as vezes tem q parar umas duas vezes.
Achei algo no google sobre um erro q já foi resolvido, mas eu uso a ultima versão do facelets, não da pra entender

com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! Unable to parse document 'jar:file:/C:/Java/apache-tomcat-6.0.14/lib/jsf-facelets.jar!/META-INF/faces-config.xml': cvc-enumeration-valid: Value '1.1' is not facet-valid with respect to enumeration '[1.2]'. It must be a value from the enumeration.
    at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:212)
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:174)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

Rafael Ponte

unread,
Aug 1, 2008, 2:10:43 PM8/1/08
to jav...@googlegroups.com
Parece que sobrou resquicios do Jsf1.1 nas configurações do projeto :P Bem, eu acho!

2008/8/1 Rafael Rossignol Felipe <ogra...@gmail.com>



--
Rafael Ponte
http://www.rponte.com.br

Rafael Rossignol Felipe

unread,
Aug 1, 2008, 2:15:07 PM8/1/08
to jav...@googlegroups.com
pior é q não tem (eu acho, rs)
as libs são todas as últimas versões
e as confs nem mudam de uma versão pra outra


2008/8/1 Rafael Ponte <rpo...@gmail.com>

Rafael Ponte

unread,
Aug 1, 2008, 2:20:01 PM8/1/08
to jav...@googlegroups.com
Alterou os cabeçalhos do web.xml, faces-config.xml e tal?

Rafael Rossignol Felipe

unread,
Aug 1, 2008, 2:29:05 PM8/1/08
to jav...@googlegroups.com
web.xml

<?xml version="1.0"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

faces-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xi="http://www.w3.org/2001/XInclude"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">

apesar q tenho  muitos faces-config aqui vou olhar todos

2008/8/1 Rafael Ponte <rpo...@gmail.com>

Rafael Rossignol Felipe

unread,
Aug 1, 2008, 2:33:44 PM8/1/08
to jav...@googlegroups.com
Santo Rafael Ponte

alguns dos meus cabeçalhos tavam zuados

como uso alguns jars na aplicação, cada um tem um faces-config.xml
fiz uns testes aqui e deu tudo certo

o estranho é q isso não deveria funcionar ao meu ver, e o sistema funciona numa boa

Rafael Ponte

unread,
Aug 1, 2008, 2:50:05 PM8/1/08
to jav...@googlegroups.com
Massa :)))

Rafael Rossignol Felipe

unread,
Aug 1, 2008, 3:23:38 PM8/1/08
to jav...@googlegroups.com
O problema não foi resolvido não
oq ta dando problema é o faces-config.xml do facelets
que ta dentro do jar q vem com o facelets
baixei a versão mais recente agora
e o cabecalho ta errado
vejam

<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE faces-config PUBLIC
 "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
 "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">

versão facelets-1.0.14

é dose, acho q o meu ta dando erro pq ta limpo
os projetos sujos talvez consigam validar esse XML ai!

2008/8/1 Rafael Ponte <rpo...@gmail.com>

Rafael Ponte

unread,
Aug 1, 2008, 3:36:46 PM8/1/08
to jav...@googlegroups.com
Você tá usando servlets 2.4 ae?

Rafael Rossignol Felipe

unread,
Aug 1, 2008, 3:41:41 PM8/1/08
to jav...@googlegroups.com
Não estou não, percebi esse problema também, vou mexer

mas não é esse o caso agora, fiz um jar do facelets mutante, mexendo no cabeçalho e vou fazer um teste, já aviso!

2008/8/1 Rafael Ponte <rpo...@gmail.com>
Reply all
Reply to author
Forward
0 new messages