Olha só galera, meu teste para rodar o jsf com jboss está lançando um erro:
Arquivo jsp:
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<title></title>
</head>
<body>
<f:view>
<c:out value="teste"/>
</f:view>
</body>
</html>
Erro console:
18:07:51,842 ERROR [UIComponentTag] Faces context not found. getResponseWriter will fail. Check if the FacesServlet has been initialized at all in your web.xml.
18:07:51,842 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:615)
at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:217)
at org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:71)
Arquivo web.xml:
faces-config.xml
primeiro, qual IDE vc esta usando
segundo, vc já baixou os .jar da biblioteca myfaces
terceiro, de uma olhada no seu faces-config.xml
espero ter ajudado…
é o seguinte:
ide: eclipse + tools jboss: europa
as: jboss
esta ferramentas já vem com todas as bibliotecas…
Arquivo jsf:
não sei nao man, isso ta parecendo que um .jar nao foi adicionado na biblioteca…pessoalmente nao boto muita fé nesses plugins que prometem tudo…prefiro baixar la no site da apache mesmo e depois criar minha propria myfaces…funciona sem erro;)
Olá galera, baixei todas as bibliotecas e problema continua…
Por exemplo se eu deixar minha meu arquivo index.jsp somente com tags de jstl funciona normalmente, porém se eu colocar alguma tag de jsf, ocorre este erro:
0:04:57,591 ERROR [UIComponentTag] Faces context not found. getResponseWriter will fail. Check if the FacesServlet has been initialized at all in your web.xml.
10:04:57,591 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
meu arquivo 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">
<display-name>model</display-name>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<listener>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>
<!-- Faces Servlet -->
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Faces Servlet Mapping -->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>/index.jsp</welcome-file>
</welcome-file-list>
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
</web-app>
Galera, alguém já fez hello world utilizando jboss e jsf…Somente isso que eu quero. Até hoje utilizei o tomcat, agora quero começar a usar jboss. Se alguém puder ajudar eu agradeço…
caracas, ninguém sabe pn de jboss…Todos links do google eu já visitei e nenhum, mais nenhum foi capaz de me instruir a fazer o helloworld com eclipse+jboss+jsf…