Erro jsf

bom dia amigos!!!

estou tentando fazer um teste com o jsf mais da dificil de entender como ele funciona e consequentemente solucionar os erros…

alguem pode me falar sobre sua arquitetura…?
ow me passar algum tutorial…

ah! ja estudei o da talita pitanga…

valeu!!!

Olá,

Tanto para o desenvolvimento com os componentes já existentes como para criar novos customizados, usei o Java Tutorial EE 5. Acho pelo menos, um bom começo.

Com relação ao seu teste que está difícil, poste aí o que vc estava tentando fazer, e o erro propriamente dito. Assim, podemos ajudar objetivamente.

Flws!

Schmidt

O tutorial da Sun é muito bom mesmo. Até para aprender o basico do JSF e como integrar ele com JSP sem maiores estresses. Na arquitetura, acho que o mais importante é você entender o ciclo de vida de uma requisicao pois isso que gera os maiores problemas e situações inesperadas.

Uma outra fonte de referencia que uso é o http://www.jsf-faq.com

Tem esse tutorial bem simples no meu blog http://javawora.blogspot.com/search/label/JSF
Está em 2 partes :smiley:

Recomendo o livro JSF In Action.
Muito bom pois cobre desde os exemplos mais simples, explicando o ciclo de vida da requisição até exemplos de como criar componentes…

muito bom mesmo…

na verdade eu faço a aplicação toda coloco ela pra rodar no servidor “tomcat”…

e quando tento executar no navegador fala que naum conectou com a aplicação

-------------------------------------ERRO----------------------------
HTTP Status 404 - /walfrides-jsf/

type Status report

message /walfrides-jsf/

description The requested resource (/walfrides-jsf/) is not available.
Apache Tomcat/6.0.13

naum sei se vale a pena falar mais estou usando a implementação myfaces

segue tbm o faces-config.xml

<navigation-rule>
	<from-view-id>/buscar.jsp</from-view-id>
	<navigation-case>
		<from-outcome>success</from-outcome>
		<to-view-id>/sucesso_busca.jsp</to-view-id>
	</navigation-case>
	<navigation-case>
		<from-outcome>failure</from-outcome>
		<to-view-id>/falha_busca.jsp</to-view-id>
	</navigation-case>
</navigation-rule>
<navigation-rule>
	<from-view-id>/inserir.jsp</from-view-id>
	<navigation-case>
		<from-outcome>success</from-outcome>
		<to-view-id>/sucesso_insercao.jsp</to-view-id>
	</navigation-case>
	<navigation-case>
		<from-outcome>failure</from-outcome>
		<to-view-id>/falha_insercao.jsp</to-view-id>
	</navigation-case>
</navigation-rule>

<managed-bean>
	<managed-bean-name>agendaDB</managed-bean-name>
	<managed-bean-class>agenda.AgendaDB</managed-bean-class>
	<managed-bean-scope>session</managed-bean-scope>
</managed-bean>

--------------------web.xml--------------------

<?xml version="1.0" encoding="UTF-8"?> walfrides-jsf javax.faces.STATE_SAVING_METHOD client javax.faces.CONFIG_FILES /WEB-INF/faces-config.xml >com.sun.faces.config.ConfigureListener index.html index.htm index.jsp default.html default.htm default.jsp Faces Servlet javax.faces.webapp.FacesServlet 1 Faces Servlet *.jsf

Ta dando pau qdo vc chama no browser ou tenta subir né?

Como vc colocou ele no Tomcat? :smiley:

sim coloquei pelo eclipse na aba server >> add and remove projet e bla, bla!!!

[quote=marcelo_mococa]Recomendo o livro JSF In Action.
Muito bom pois cobre desde os exemplos mais simples, explicando o ciclo de vida da requisição até exemplos de como criar componentes…

muito bom mesmo…
[/quote]

Apoiado!!! O melhor livro mesmo…

[quote=w__java]sim coloquei pelo eclipse na aba server >> add and remove projet e bla, bla!!!

[/quote]

Manda um print da config do server :smiley:

bom dia amigos!!!

<?xml version="1.0" encoding="UTF-8"?>
<!--The connectors can use a shared executor, you can define one or more named thread pools-->
<!--
<Executor name="tomcatThreadPool" namePrefix="catalina-exec-" 
    maxThreads="150" minSpareThreads="4"/>
-->


<!-- A "Connector" represents an endpoint by which requests are received
     and responses are returned. Documentation at :
     Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
     Java AJP  Connector: /docs/config/ajp.html
     APR (HTTP/AJP) Connector: /docs/apr.html
     Define a non-SSL HTTP/1.1 Connector on port 8080
-->
<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>
<!-- A "Connector" using the shared thread pool-->
<!--
<Connector executor="tomcatThreadPool"
           port="8080" protocol="HTTP/1.1" 
           connectionTimeout="20000" 
           redirectPort="8443" />
-->           
<!-- Define a SSL HTTP/1.1 Connector on port 8443
     This connector uses the JSSE configuration, when using APR, the 
     connector should be using the OpenSSL style configuration
     described in the APR documentation -->
<!--
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
           maxThreads="150" scheme="https" secure="true"
           clientAuth="false" sslProtocol="TLS" />
-->

<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443"/>


<!-- An Engine represents the entry point (within Catalina) that processes
     every request.  The Engine implementation for Tomcat stand alone
     analyzes the HTTP headers included with the request, and passes them
     on to the appropriate Host (virtual host).
     Documentation at /docs/config/engine.html -->

<!-- You should set jvmRoute to support load-balancing via AJP ie :
<Engine name="Standalone" defaultHost="localhost" jvmRoute="jvm1">         
--> 
<Engine defaultHost="localhost" name="Catalina">

  <!--For clustering, please take a look at documentation at:
      /docs/cluster-howto.html  (simple how to)
      /docs/config/cluster.html (reference documentation) -->
  <!--
  <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
  -->        

  <!-- The request dumper valve dumps useful debugging information about
       the request and response data received and sent by Tomcat.
       Documentation at: /docs/config/valve.html -->
  <!--
  <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
  -->

  <!-- This Realm uses the UserDatabase configured in the global JNDI
       resources under the key "UserDatabase".  Any edits
       that are performed against this UserDatabase are immediately
       available for use by the Realm.  -->
  <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>

  <!-- Define the default virtual host
       Note: XML Schema validation will not work with Xerces 2.2.
   -->
  <Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true" xmlNamespaceAware="false" xmlValidation="false">

    <!-- SingleSignOn valve, share authentication between web applications
         Documentation at: /docs/config/valve.html -->
    <!--
    <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
    -->

    <!-- Access log processes all example.
         Documentation at: /docs/config/valve.html -->
    <!--
    <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"  
           prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
    -->

  <Context docBase="walfrides-jsf" path="/walfrides-jsf" reloadable="true" source="org.eclipse.jst.jee.server:walfrides-jsf"/></Host>
</Engine>

pode ser esta???
ou estou equivocado!!

Eu resolvi essa questão da seguinte forma, eu estava usando o arquivo jar e war “explodidos” no meu ear, foi só mudar a configuração do empacotamento para:

&lt;modules&gt;
                            &lt;webModule&gt;
                                &lt;groupId&gt;br.web&lt;/groupId&gt;
                                &lt;artifactId&gt;Web&lt;/artifactId&gt;
                                &lt;contextRoot&gt;/sistema&lt;/contextRoot&gt;
                                &lt;unpack&gt;false&lt;/unpack&gt;

                            &lt;/webModule&gt;
                            &lt;ejbModule&gt;
                                &lt;groupId&gt;br.ejb&lt;/groupId&gt;
                                &lt;artifactId&gt;Ejb&lt;/artifactId&gt;
                                &lt;unpack&gt;false&lt;/unpack&gt;
                            &lt;/ejbModule&gt;

                        &lt;/modules&gt;

Isso com Jboss EAP 6.1