barbon
paribe
Obrigado pelo retorno.
Fiz o download richfaces-4.0.0.M5.zip e copiei dois jars para meu projeto :
richfaces-components-api-4.0.0.20101226-M5.jar
richfaces-components-ui-4.0.0.20101226-M5.jar
e estou tentando executar esse exemplo abaixo mais está me dando erro.
Se puder me ajudar eu agradeeria.
abs
13/01/2011 04:18:23 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Java\bin;.;C:\Program Files\MySQL\MySQL Server 5.5\bin
13/01/2011 04:18:23 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:FinanceiroWeb' did not find a matching property.
13/01/2011 04:18:24 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
13/01/2011 04:18:24 org.apache.coyote.ajp.AjpProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
13/01/2011 04:18:24 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2139 ms
13/01/2011 04:18:24 org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
13/01/2011 04:18:24 org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.4
13/01/2011 04:18:27 com.sun.faces.config.ConfigureListener contextInitialized
INFO: Inicializando Mojarra 2.0.3 (FCS b03) para o contexto '/FinanceiroWeb'
13/01/2011 04:18:31 org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
java.lang.NoClassDefFoundError: org/richfaces/log/RichfacesLogger
at org.richfaces.context.FileUploadPartialViewContextFactory.<clinit>(FileUploadPartialViewContextFactory.java:61)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:582)
at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:468)
at javax.faces.FactoryFinder.access$400(FactoryFinder.java:135)
at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:792)
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:302)
at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:290)
at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:209)
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:332)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:220)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4350)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4816)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1028)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:773)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1028)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:278)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:429)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:662)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140)
at org.apache.catalina.startup.Catalina.start(Catalina.java:592)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:290)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:418)
Caused by: java.lang.ClassNotFoundException: org.richfaces.log.RichfacesLogger
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1672)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1517)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 34 more
13/01/2011 04:18:31 org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
13/01/2011 04:18:31 org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/FinanceiroWeb] startup failed due to previous errors
13/01/2011 04:18:32 com.sun.faces.spi.InjectionProviderFactory createInstance
INFO: JSF1048: Anotações PostConstruct/PreDestroy presentes. Os métodos ManagedBeans marcados com essas anotações informarão as anotações processadas.
13/01/2011 04:18:32 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [/FinanceiroWeb] registered the JBDC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
13/01/2011 04:18:32 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/FinanceiroWeb] created a ThreadLocal with key of type [null] (value [com.sun.faces.util.Util$1@25aa0a15]) and a value of type [java.util.HashMap] (value [{com.sun.faces.patternCache={ = }}]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
13/01/2011 04:18:32 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
13/01/2011 04:18:32 org.apache.coyote.ajp.AjpProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
13/01/2011 04:18:32 org.apache.catalina.startup.Catalina start
INFO: Server startup in 8346 ms
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>FinanceiroWeb</display-name>
<welcome-file-list>
<welcome-file>index.jsf</welcome-file>
</welcome-file-list>
<servlet>
<display-name>FacesServlet</display-name>
<servlet-name>FacesServlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>FacesServlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<!--
<filter>
<filter-name>conexaoFilter</filter-name>
<filter-class>financeiro.web.filter.ConexaoHibernateFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>conexaoFilter</filter-name>
<url-pattern>*.jsf</url-pattern>
</filter-mapping>
-->
</web-app>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<style>
.pic {
margin-bottom: -4px;
margin-right: 2px;
}
.search .rich-menu-item-hover{
background-color: transparent;
border-color: transparent;
}
</style>
<h:form>
<rich:toolBar>
<rich:dropDownMenu>
<f:facet name="label">
<h:panelGroup>
<h:graphicImage value="/images/icons/copy.gif" styleClass="pic"/>
<h:outputText value="File"/>
</h:panelGroup>
</f:facet>
<rich:menuItem submitMode="ajax" value="New"
action="#{ddmenu.doNew}" icon="/images/icons/create_doc.gif">
</rich:menuItem>
<rich:menuItem submitMode="ajax" value="Open"
action="#{ddmenu.doOpen}" icon="/images/icons/open.gif" />
<rich:menuGroup value="Save As...">
<rich:menuItem submitMode="ajax" value="Save"
action="#{ddmenu.doSave}" icon="/images/icons/save.gif" />
<rich:menuItem submitMode="ajax" value="Save All"
action="#{ddmenu.doSaveAll}">
<f:facet name="icon">
<h:graphicImage value="/images/icons/save_all.gif" />
</f:facet>
</rich:menuItem>
</rich:menuGroup>
<rich:menuItem submitMode="ajax" value="Close"
action="#{ddmenu.doClose}" />
<rich:menuSeparator id="menuSeparator11" />
<rich:menuItem submitMode="ajax" value="Exit"
action="#{ddmenu.doExit}" />
</rich:dropDownMenu>
<rich:dropDownMenu>
<f:facet name="label">
<h:panelGrid cellpadding="0" cellspacing="0" columns="2"
style="vertical-align:middle">
<h:outputText value="Links" />
</h:panelGrid>
</f:facet>
<rich:menuItem submitMode="none"
onclick="document.location.href='http://labs.jboss.com/jbossrichfaces/'">
<h:outputLink value="http://labs.jboss.com/jbossrichfaces/">
<h:outputText value="RichFaces Home Page"></h:outputText>
</h:outputLink>
</rich:menuItem>
<rich:menuItem submitMode="none"
onclick="document.location.href='http://jboss.com/index.html?module=bb&op=viewforum&f=261'">
<h:outputLink
value="http://jboss.com/index.html?module=bb&op=viewforum&f=261">
<h:outputText value="RichFaces Forum"></h:outputText>
</h:outputLink>
</rich:menuItem>
</rich:dropDownMenu>
<rich:toolBarGroup location="right">
<rich:dropDownMenu value="Search" direction="bottom-left" jointPoint="br" styleClass="search">
<rich:menuItem submitMode="none">
<h:inputText value="" id="searchinput"/>
<button type="button">Search</button>
</rich:menuItem>
<rich:menuItem value="Enter your search criteria here" disabled="true"></rich:menuItem>
</rich:dropDownMenu>
</rich:toolBarGroup>
</rich:toolBar>
</h:form>
<rich:spacer width="1" height="5"/>
<br />
<a4j:outputPanel ajaxRendered="true">
<h:outputText value="Current Selection: "></h:outputText>
<h:outputText style="font-weight:bold" value="#{ddmenu.current}"></h:outputText>
</a4j:outputPanel>
<br />
<rich:spacer width="1" height="25" />
</ui:composition>
barbon
Zeed01
Boa noite Galera !
Para mim este link
http://www.patternizando.com.br/2011/03/projeto-jsf-2-0-com-richfaces-4-0/
aparece como quebrado, alguém sabe onde encontrar um exemplo de projeto com JSF 2 + RichFaces 4 + Hibernate + Tomcat 7 ?
Obrigado.