Seguinte. Estava utilizando JSF no projeto normalmente. Usando myfaces. AIh resolvi migrar para JSF 1.2 devido às necessidades (como o requiredMessage, validadeMessage, converterMessage, por exemplo).
Coloquei as libs e os tlds e funcionou. Mas estava funcionando como JSF 1.1. Foi quando mudei os DTD's do web.xml e faces-config.xml para ficarem assim:
web.xml:<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
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-app_2_5.xsd">
<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">
Quando realizeis essas mudanças deu os erros que se seguem ao startar o servidor (coloquei só as 3 primeiras linhas de cada um para legibilidade). Lembrando, é JBoss 4.0.5. Alguma sugestão?
08:17:02,245 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml
08:17:10,398 ERROR [Digester] Parse Error at line 141 column 33: src-resolve: Cannot resolve the name 'xml:lang' to a(n) 'attribute declaration' component.
org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'xml:lang' to a(n) 'attribute declaration' component.
08:17:10,429 ERROR [Digester] Parse Error at line 141 column 33: s4s-elt-invalid-content.1: The content of 'descriptionType' is invalid. Element 'attribute' is invalid, misplaced, or occurs too often.
org.xml.sax.SAXParseException: s4s-elt-invalid-content.1: The content of 'descriptionType' is invalid. Element 'attribute' is invalid, misplaced, or occurs too often.
08:17:10,445 ERROR [Digester] Parse Error at line 188 column 33: s4s-elt-invalid-content.1: The content of 'display-nameType' is invalid. Element 'attribute' is invalid, misplaced, or occurs too often.
org.xml.sax.SAXParseException: s4s-elt-invalid-content.1: The content of 'display-nameType' is invalid. Element 'attribute' is invalid, misplaced, or occurs too often.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
08:17:10,616 ERROR [Digester] Parse Error at line 689 column 36: s4s-elt-invalid-content.1: The content of 'iconType' is invalid. Element 'attribute' is invalid, misplaced, or occurs too often.
org.xml.sax.SAXParseException: s4s-elt-invalid-content.1: The content of 'iconType' is invalid. Element 'attribute' is invalid, misplaced, or occurs too often.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)