Estou tentando fazer minha primeira aplicação com myfaces e tomahawk. Porém, está bem ocorrendo o seguinte erro:
org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: java.lang.IllegalArgumentException: Component javax.faces.component.UIViewRoot is no javax.faces.component.html.HtmlForm
O meu web.xml é esse:
[code]<?xml version="1.0" encoding="UTF-8"?>
[/code]
Meu faces-config.xml é esse:
<?xml version="1.0" encoding="UTF-8"?>
<web-app 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" version="2.4">
</web-app>
O meu index.jsp é esse:
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<html>
<h:form id="myForm">
Senha <h:inputSecret id="senha"></h:inputSecret>
</h:form>
</html>
Estou utilizando o myfaces 2.0 e o tomahawk 2.0. No código que está dando erro nem coloquei o tomahawk ainda. Já adicionei todos os jars necessários que vêem no arquivo do myfaces. Alguém pode me ajudar com isso?