Jboss + Hibernate

Galera já li e reli o log e nao conseguir indentificar o erro por favor me ajudem.
estou tentando fazer uma configuração jboss + hibernate atraves de datasource sou novo com isso e nao entendo muito bem.

log do servidor:

23:57:13,912 INFO [org.jboss.modules] JBoss Modules version 1.0.2.GA 23:57:14,146 INFO [org.jboss.msc] JBoss MSC version 1.0.1.GA 23:57:14,200 INFO [org.jboss.as] JBoss AS 7.0.2.Final "Arc" starting 23:57:14,912 WARN [org.jboss.as] No security realm defined for native management service, all access will be unrestricted. 23:57:14,973 INFO [org.jboss.as] creating http management service using network interface (management) port (9990) 23:57:14,974 WARN [org.jboss.as] No security realm defined for http management service, all access will be unrestricted. 23:57:14,981 INFO [org.jboss.as.logging] Removing bootstrap log handlers 23:57:14,997 INFO [org.jboss.as.connector.subsystems.datasources] (Controller Boot Thread) Deploying JDBC-compliant driver class org.h2.Driver (version 1.2) 23:57:15,002 INFO [org.jboss.as.connector.subsystems.datasources] (Controller Boot Thread) Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1) 23:57:15,012 INFO [org.jboss.as.clustering.infinispan.subsystem] (Controller Boot Thread) Activating Infinispan subsystem. 23:57:15,079 INFO [org.jboss.as.naming] (Controller Boot Thread) JBAS011800: Activating Naming Subsystem 23:57:15,087 INFO [org.jboss.as.naming] (MSC service thread 1-5) JBAS011802: Starting Naming Service 23:57:15,093 INFO [org.jboss.as.osgi] (Controller Boot Thread) JBAS011910: Activating OSGi Subsystem 23:57:15,110 INFO [org.jboss.as.security] (Controller Boot Thread) Activating Security Subsystem 23:57:15,114 INFO [org.jboss.remoting] (MSC service thread 1-4) JBoss Remoting version 3.2.0.Beta2 23:57:15,125 INFO [org.xnio] (MSC service thread 1-4) XNIO Version 3.0.0.Beta3 23:57:15,135 INFO [org.xnio.nio] (MSC service thread 1-4) XNIO NIO Implementation Version 3.0.0.Beta3 23:57:15,328 INFO [org.apache.catalina.core.AprLifecycleListener] (MSC service thread 1-7) The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_31\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Java\jdk1.6.0_31\jre\bin;native;. 23:57:15,335 INFO [org.jboss.as.ee] (Controller Boot Thread) Activating EE subsystem 23:57:15,376 INFO [org.jboss.as.jmx.JMXConnectorService] (MSC service thread 1-5) Starting remote JMX connector 23:57:15,407 INFO [org.jboss.as.remoting] (MSC service thread 1-6) Listening on /127.0.0.1:9999 23:57:15,427 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-2) Starting Coyote HTTP/1.1 on http--127.0.0.1-8080 23:57:15,584 INFO [org.jboss.as.connector] (MSC service thread 1-8) Starting JCA Subsystem (JBoss IronJacamar 1.0.3.Final) 23:57:15,656 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) Bound data source [java:jboss/datasources/ExampleDS] 23:57:15,663 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) Bound data source [java:jboss/datasources/MySqlDS] 23:57:16,084 INFO [org.jboss.as.deployment] (MSC service thread 1-3) Started FileSystemDeploymentService for directory C:\jboss-as-web-7.0.2.Final\standalone\deployments 23:57:16,133 INFO [org.jboss.as.deployment] (DeploymentScanner-threads - 1) Found SGPJ.war in deployment directory. To trigger deployment create a file called SGPJ.war.dodeploy 23:57:16,157 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) Starting deployment of "SGPJ.war" 23:57:17,379 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry log4j.jar in "/C:/jboss-as-web-7.0.2.Final/standalone/deployments/SGPJ.war/WEB-INF/lib/commons-logging.jar" does not point to a valid jar for a Class-Path reference. 23:57:17,379 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry log4j-core.jar in "/C:/jboss-as-web-7.0.2.Final/standalone/deployments/SGPJ.war/WEB-INF/lib/commons-logging.jar" does not point to a valid jar for a Class-Path reference. 23:57:17,460 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.faces.vendor.Tomcat6InjectionProvider:org.apache.catalina.util.DefaultAnnotationProcessor" for service type "com.sun.faces.spi.injectionprovider" 23:57:17,460 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-4) Encountered invalid class name "com.sun.faces.vendor.Jetty6InjectionProvider:org.mortbay.jetty.plus.annotation.InjectionCollection" for service type "com.sun.faces.spi.injectionprovider" 23:57:17,475 INFO [org.jboss.as.jpa] (MSC service thread 1-2) added javax.persistence.api dependency to SGPJ.war 23:57:18,216 INFO [org.jboss.as.jpa] (MSC service thread 1-1) Deployment has its own Persistence Provider class org.hibernate.ejb.HibernatePersistence 23:57:18,397 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-1) Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1) 23:57:18,433 INFO [org.apache.catalina.core.StandardContext] (MSC service thread 1-5) The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored. 23:57:18,476 INFO [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-5) Inicializando Mojarra 2.1.3 (SNAPSHOT 20110825) para o contexto '/SGPJ' 23:57:20,369 INFO [org.hibernate.validator.util.Version] (MSC service thread 1-5) Hibernate Validator 4.2.0.Final 23:57:21,120 INFO [org.richfaces.log.Cache] (MSC service thread 1-5) Selected fallback cache factory 23:57:21,122 INFO [org.richfaces.log.Cache] (MSC service thread 1-5) Creating LRUMap cache instance using parameters: {org.richfaces.control_skinning=disable, org.richfaces.skin=blueSky, javax.faces.FACELETS_SKIP_COMMENTS=true, javax.faces.DEFAULT_SUFFIX=.xhtml} 23:57:21,127 INFO [org.richfaces.log.Cache] (MSC service thread 1-5) Creating LRUMap cache instance of 512 items capacity 23:57:21,195 INFO [org.jboss.web] (MSC service thread 1-5) registering web context: /SGPJ 23:57:21,196 INFO [org.jboss.as] (MSC service thread 1-8) JBoss AS 7.0.2.Final "Arc" started in 7476ms - Started 239 of 296 services (57 services are passive or on-demand) 23:57:21,261 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployed "SGPJ.war"

Continuando…

[code]23:57:30,908 ERROR [stderr] (http–127.0.0.1-8080-1) 57 [http–127.0.0.1-8080-1] INFO org.hibernate.annotations.common.Version - Hibernate Commons Annotations 3.2.0.Final

23:57:30,913 ERROR [stderr] (http–127.0.0.1-8080-1) 62 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.Environment - Hibernate 3.6.8.Final

23:57:30,915 ERROR [stderr] (http–127.0.0.1-8080-1) 64 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.Environment - hibernate.properties not found

23:57:30,917 ERROR [stderr] (http–127.0.0.1-8080-1) 66 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.Environment - Bytecode provider name : javassist

23:57:30,918 ERROR [stderr] (http–127.0.0.1-8080-1) 67 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling

23:57:30,951 ERROR [stderr] (http–127.0.0.1-8080-1) 100 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.Configuration - configuring from resource: hibernate.cfg.xml

23:57:30,952 ERROR [stderr] (http–127.0.0.1-8080-1) 101 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.Configuration - Configuration resource: hibernate.cfg.xml

23:57:30,987 ERROR [stderr] (http–127.0.0.1-8080-1) 136 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.Configuration - Configured SessionFactory: null

23:57:31,018 ERROR [stderr] (http–127.0.0.1-8080-1) 167 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: modelo.Pessoa

23:57:31,029 ERROR [stderr] (http–127.0.0.1-8080-1) 178 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.annotations.QueryBinder - Binding named query: PessoaBuscaPorNome => from Pessoa p where p.nome like :nome

23:57:31,040 ERROR [stderr] (http–127.0.0.1-8080-1) 189 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity modelo.Pessoa on table PESSOA

23:57:31,091 ERROR [stderr] (http–127.0.0.1-8080-1) 240 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: modelo.Cidade

23:57:31,091 ERROR [stderr] (http–127.0.0.1-8080-1) 240 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.annotations.QueryBinder - Binding named query: buscaCidadesPorEstado => FROM Cidade c where c.uf.id = :idCidade

23:57:31,092 ERROR [stderr] (http–127.0.0.1-8080-1) 241 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity modelo.Cidade on table CIDADE

23:57:31,093 ERROR [stderr] (http–127.0.0.1-8080-1) 242 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: modelo.Uf

23:57:31,093 ERROR [stderr] (http–127.0.0.1-8080-1) 242 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity modelo.Uf on table ESTADO

23:57:31,094 ERROR [stderr] (http–127.0.0.1-8080-1) 243 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: modelo.TipoPessoa

23:57:31,095 ERROR [stderr] (http–127.0.0.1-8080-1) 244 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity modelo.TipoPessoa on table TIPOPESSOA

23:57:31,095 ERROR [stderr] (http–127.0.0.1-8080-1) 244 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: modelo.Endereco

23:57:31,096 ERROR [stderr] (http–127.0.0.1-8080-1) 245 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity modelo.Endereco on table ENDERECO

23:57:31,098 ERROR [stderr] (http–127.0.0.1-8080-1) 247 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: modelo.EstadoCivil

23:57:31,098 ERROR [stderr] (http–127.0.0.1-8080-1) 247 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity modelo.EstadoCivil on table ESTADOCIVIL

23:57:31,099 ERROR [stderr] (http–127.0.0.1-8080-1) 248 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: modelo.Situacao

23:57:31,099 ERROR [stderr] (http–127.0.0.1-8080-1) 248 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity modelo.Situacao on table SITUACAO

23:57:31,100 ERROR [stderr] (http–127.0.0.1-8080-1) 249 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: modelo.Profissao

23:57:31,100 ERROR [stderr] (http–127.0.0.1-8080-1) 249 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity modelo.Profissao on table PROFISSAO

23:57:31,101 ERROR [stderr] (http–127.0.0.1-8080-1) 250 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: modelo.Classificacao

23:57:31,101 ERROR [stderr] (http–127.0.0.1-8080-1) 250 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity modelo.Classificacao on table CLASSIFICACAO

23:57:31,102 ERROR [stderr] (http–127.0.0.1-8080-1) 251 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: modelo.Nacionalidade

23:57:31,103 ERROR [stderr] (http–127.0.0.1-8080-1) 252 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity modelo.Nacionalidade on table NACIONALIDADE

23:57:31,103 ERROR [stderr] (http–127.0.0.1-8080-1) 252 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: modelo.RamoDeAtividade

23:57:31,104 ERROR [stderr] (http–127.0.0.1-8080-1) 253 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity modelo.RamoDeAtividade on table RAMODEATIVIDADE

23:57:31,105 ERROR [stderr] (http–127.0.0.1-8080-1) 254 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: modelo.Cargo

23:57:31,105 ERROR [stderr] (http–127.0.0.1-8080-1) 254 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity modelo.Cargo on table CARGO

23:57:31,106 ERROR [stderr] (http–127.0.0.1-8080-1) 255 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: modelo.TipoCilente

23:57:31,106 ERROR [stderr] (http–127.0.0.1-8080-1) 255 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity modelo.TipoCilente on table TIPODOCLIENTE

23:57:31,112 ERROR [stderr] (http–127.0.0.1-8080-1) 260 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: modelo.Pessoa.ramoDeAtividade -> RAMODEATIVIDADE

23:57:31,112 ERROR [stderr] (http–127.0.0.1-8080-1) 261 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: modelo.Pessoa.endereco -> ENDERECO

23:57:31,113 ERROR [stderr] (http–127.0.0.1-8080-1) 262 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.Configuration - Hibernate Validator not found: ignoring

23:57:31,151 ERROR [stderr] (http–127.0.0.1-8080-1) 300 [http–127.0.0.1-8080-1] INFO org.hibernate.cfg.search.HibernateSearchEventListenerRegister - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.

23:57:31,155 ERROR [stderr] (http–127.0.0.1-8080-1) 304 [http–127.0.0.1-8080-1] INFO org.hibernate.util.NamingHelper - JNDI InitialContext properties:{}

23:57:31,156 ERROR [stderr] (http–127.0.0.1-8080-1) 305 [http–127.0.0.1-8080-1] ERROR org.hibernate.connection.DatasourceConnectionProvider - Could not find datasource: java:/MySqlDS
[/code]

[code]23:57:31,156 ERROR [stderr] (http–127.0.0.1-8080-1) javax.naming.NameNotFoundException: MySqlDS – service jboss.naming.context.java.MySqlDS

23:57:31,156 ERROR [stderr] (http–127.0.0.1-8080-1) at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:87)

23:57:31,156 ERROR [stderr] (http–127.0.0.1-8080-1) at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:173)

23:57:31,157 ERROR [stderr] (http–127.0.0.1-8080-1) at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:47)

23:57:31,157 ERROR [stderr] (http–127.0.0.1-8080-1) at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:209)

23:57:31,157 ERROR [stderr] (http–127.0.0.1-8080-1) at javax.naming.InitialContext.lookup(InitialContext.java:392)

23:57:31,157 ERROR [stderr] (http–127.0.0.1-8080-1) at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:75)

23:57:31,157 ERROR [stderr] (http–127.0.0.1-8080-1) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:143)

23:57:31,157 ERROR [stderr] (http–127.0.0.1-8080-1) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:84)

23:57:31,157 ERROR [stderr] (http–127.0.0.1-8080-1) at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:459)

23:57:31,158 ERROR [stderr] (http–127.0.0.1-8080-1) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:90)

23:57:31,158 ERROR [stderr] (http–127.0.0.1-8080-1) at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2863)

23:57:31,158 ERROR [stderr] (http–127.0.0.1-8080-1) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2859)

23:57:31,158 ERROR [stderr] (http–127.0.0.1-8080-1) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1870)

23:57:31,158 ERROR [stderr] (http–127.0.0.1-8080-1) at util.HibernateUtil.getSessionFactory(HibernateUtil.java:13)

23:57:31,158 ERROR [stderr] (http–127.0.0.1-8080-1) at util.HibernateUtil.getSession(HibernateUtil.java:19)

23:57:31,158 ERROR [stderr] (http–127.0.0.1-8080-1) at dao.DAOBase.recuperaListaEntidade(DAOBase.java:59)

23:57:31,158 ERROR [stderr] (http–127.0.0.1-8080-1) at visao.PessoaVisao.getListaTPessoa(PessoaVisao.java:113)

23:57:31,159 ERROR [stderr] (http–127.0.0.1-8080-1) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

23:57:31,159 ERROR [stderr] (http–127.0.0.1-8080-1) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

23:57:31,159 ERROR [stderr] (http–127.0.0.1-8080-1) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

23:57:31,159 ERROR [stderr] (http–127.0.0.1-8080-1) at java.lang.reflect.Method.invoke(Method.java:597)

23:57:31,159 ERROR [stderr] (http–127.0.0.1-8080-1) at javax.el.BeanELResolver.getValue(BeanELResolver.java:302)

23:57:31,159 ERROR [stderr] (http–127.0.0.1-8080-1) at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)

23:57:31,159 ERROR [stderr] (http–127.0.0.1-8080-1) at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)

23:57:31,159 ERROR [stderr] (http–127.0.0.1-8080-1) at org.apache.el.parser.AstValue.getValue(AstValue.java:134)

23:57:31,160 ERROR [stderr] (http–127.0.0.1-8080-1) at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:187)

23:57:31,160 ERROR [stderr] (http–127.0.0.1-8080-1) at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)

23:57:31,160 ERROR [stderr] (http–127.0.0.1-8080-1) at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194)

23:57:31,160 ERROR [stderr] (http–127.0.0.1-8080-1) at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:182)

23:57:31,160 ERROR [stderr] (http–127.0.0.1-8080-1) at javax.faces.component.UISelectItems.getValue(UISelectItems.java:129)

23:57:31,160 ERROR [stderr] (http–127.0.0.1-8080-1) at com.sun.faces.renderkit.SelectItemsIterator.initializeItems(SelectItemsIterator.java:202)

23:57:31,160 ERROR [stderr] (http–127.0.0.1-8080-1) at com.sun.faces.renderkit.SelectItemsIterator.hasNext(SelectItemsIterator.java:135)

23:57:31,161 ERROR [stderr] (http–127.0.0.1-8080-1) at com.sun.faces.renderkit.html_basic.SelectManyCheckboxListRenderer.encodeEnd(SelectManyCheckboxListRenderer.java:133)

23:57:31,161 ERROR [stderr] (http–127.0.0.1-8080-1) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875)

23:57:31,161 ERROR [stderr] (http–127.0.0.1-8080-1) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1763)

23:57:31,161 ERROR [stderr] (http–127.0.0.1-8080-1) at org.richfaces.renderkit.RendererBase.renderChildren(RendererBase.java:278)

23:57:31,161 ERROR [stderr] (http–127.0.0.1-8080-1) at org.richfaces.renderkit.html.TogglePanelItemRenderer.doEncodeChildren(TogglePanelItemRenderer.java:132)

23:57:31,161 ERROR [stderr] (http–127.0.0.1-8080-1) at org.richfaces.renderkit.html.TabRenderer.doEncodeChildren(TabRenderer.java:110)

23:57:31,161 ERROR [stderr] (http–127.0.0.1-8080-1) at org.richfaces.renderkit.RendererBase.encodeChildren(RendererBase.java:157)

23:57:31,162 ERROR [stderr] (http–127.0.0.1-8080-1) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)

23:57:31,162 ERROR [stderr] (http–127.0.0.1-8080-1) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1756)

23:57:31,162 ERROR [stderr] (http–127.0.0.1-8080-1) at org.richfaces.renderkit.RendererBase.renderChildren(RendererBase.java:278)

23:57:31,162 ERROR [stderr] (http–127.0.0.1-8080-1) at org.richfaces.renderkit.html.TogglePanelRenderer.doEncodeChildren(TogglePanelRenderer.java:131)

23:57:31,162 ERROR [stderr] (http–127.0.0.1-8080-1) at org.richfaces.renderkit.RendererBase.encodeChildren(RendererBase.java:157)

23:57:31,162 ERROR [stderr] (http–127.0.0.1-8080-1) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)

23:57:31,162 ERROR [stderr] (http–127.0.0.1-8080-1) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1756)

23:57:31,163 ERROR [stderr] (http–127.0.0.1-8080-1) at org.richfaces.renderkit.RendererBase.renderChildren(RendererBase.java:278)

23:57:31,163 ERROR [stderr] (http–127.0.0.1-8080-1) at org.richfaces.renderkit.html.AjaxOutputPanelRenderer.encodeChildren(AjaxOutputPanelRenderer.java:58)

23:57:31,163 ERROR [stderr] (http–127.0.0.1-8080-1) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)

23:57:31,163 ERROR [stderr] (http–127.0.0.1-8080-1) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1756)

23:57:31,163 ERROR [stderr] (http–127.0.0.1-8080-1) at javax.faces.render.Renderer.encodeChildren(Renderer.java:168)[/code]

Faltou só ler a última linha! :stuck_out_tongue:

org.hibernate.connection.DatasourceConnectionProvider - Could not find datasource: java:/MySqlDS
Verifique se o nome está correto, se você alterou corretamente o arquivo standalone.xml.

meu standalone.xml

<subsystem xmlns="urn:jboss:domain:datasources:1.0"> <datasources> <datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="H2DS" enabled="true" jta="true" use-java-context="true" use-ccm="true"> <connection-url> jdbc:h2:mem:test;DB_CLOSE_DELAY=-1 </connection-url> <driver> h2 </driver> <pool> <prefill> false </prefill> <use-strict-min> false </use-strict-min> <flush-strategy> FailingConnectionOnly </flush-strategy> </pool> <security> <user-name> sa </user-name> <password> sa </password> </security> </datasource> <datasource jndi-name="java:jboss/datasources/MySqlDS" pool-name="MySqlDS" enabled="true" jta="true" use-java-context="true" use-ccm="true"> <connection-url> jdbc:mysql://localhost:3306/SGPJ </connection-url> <driver> com.mysql </driver> <transaction-isolation> TRANSACTION_READ_COMMITTED </transaction-isolation> <pool> <min-pool-size> 10 </min-pool-size> <max-pool-size> 100 </max-pool-size> <prefill> true </prefill> <use-strict-min> false </use-strict-min> <flush-strategy> FailingConnectionOnly </flush-strategy> </pool> <security> <user-name> root </user-name> <password> diguin </password> </security> <statement> <prepared-statement-cache-size> 32 </prepared-statement-cache-size> <share-prepared-statements/> </statement> </datasource> <drivers> <driver name="h2" module="com.h2database.h2"> <xa-datasource-class> org.h2.jdbcx.JdbcDataSource </xa-datasource-class> </driver> <driver name="com.mysql" module="com.mysql"> <xa-datasource-class> com.mysql.jdbc.jdbc2.optional.MysqlXADataSource </xa-datasource-class> </driver> </drivers> </datasources> </subsystem>

hibernate.cfg.xml

[code]<?xml version='1.0' encoding='utf-8'?>

java:/MySqlDS WebEntityManagerFactory true true
	<!-- Dialeto utilizado -->
	<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
	<property name="hbm2ddl.auto">update</property>

	<mapping class="modelo.Pessoa" />
	<mapping class="modelo.Cidade" />
	<mapping class="modelo.Uf" />
	<mapping class="modelo.TipoPessoa" />
	<mapping class="modelo.Endereco" />
	<mapping class="modelo.EstadoCivil" />
	<mapping class="modelo.Situacao" />
	<mapping class="modelo.Profissao" />
	<mapping class="modelo.Classificacao" />
	<mapping class="modelo.Nacionalidade" />
	<mapping class="modelo.RamoDeAtividade" />
	<mapping class="modelo.Cargo" />
	<mapping class="modelo.TipoCilente" />

</session-factory>
[/code] web.xml [code]<?xml version="1.0" encoding="UTF-8"?> SGPJ index.htm
<servlet>
	<servlet-name>Faces Servlet</servlet-name>
	<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
	<load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
	<servlet-name>Faces Servlet</servlet-name>
	<url-pattern>*.jsf</url-pattern>
</servlet-mapping>

<context-param>
	<param-name>org.richfaces.skin</param-name>
	<param-value>blueSky</param-value>
</context-param>

<context-param>
	<param-name>org.richfaces.control_skinning</param-name>
	<param-value>disable</param-value>
</context-param>

<context-param>
	<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
	<param-value>.xhtml</param-value>
</context-param>
<context-param>
	<param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
	<param-value>true</param-value>
</context-param>
[/code]

eu já li essa linha amigo só nao sei como fazer pra ele reconhecer esse datasource já tentei de tudo.
pode me da um help ?

No link abaixo mostra como criar um datasource para JBoss 7. Confira com o seu.

Página 06, datasource + persistence.xml Aplicação Web Completa JSF EJB JPA JAAS

Mas vou ser legal, eu já vi seu erro.

C tah cansado né? Ou tá triste pq o flamengo perdeu? Digo isso pq é erro bobo.
Caso esteja, dá uma parada. Resfria acabeça, a cuca por uns 15min. Sério… isso vai te ajudar e muito.

Olha soh quem ele ta procurando: Could not find datasource: java:/MySqlDS
java:/MySqlDS

Agora, olha no seu standalone. Tem alguém com esse nome exatamente igual?

haha sou corinthiano =P,
entao já tentei compiar o nome e nao tive sucesso, o pior é que estou a dias já tentando configurar isso é pra meu tcc ;/

[quote=Diguinho.Max]haha sou corinthiano =P,
entao já tentei compiar o nome e nao tive sucesso, o pior é que estou a dias já tentando configurar isso é pra meu tcc ;/[/quote]
Cuidado então. Você ta querendo usar coisas que você não ta sabendo como funciona.
Isso pode te ferrar depois.

Altera esse trem aqui: jndi-name=“java:jboss/datasources/MySqlDS”
No standalone você colocou um nome e no arquivo do seu hibernate ta outro.

Inté! \o_

[quote=jakefrog][quote=Diguinho.Max]haha sou corinthiano =P,
entao já tentei compiar o nome e nao tive sucesso, o pior é que estou a dias já tentando configurar isso é pra meu tcc ;/[/quote]
Cuidado então. Você ta querendo usar coisas que você não ta sabendo como funciona.
Isso pode te ferrar depois.

Altera esse trem aqui: jndi-name=“java:jboss/datasources/MySqlDS”
No standalone você colocou um nome e no arquivo do seu hibernate ta outro.

Inté! \o_[/quote]

sim eu sei disso mais é uma boa hora pra aprender pois tenho o ano inteiro pra fazer isso e ja utilizo essas tecnologias aonde trabalho porem nunca fiz a configuração entende pois to correndo atras pra aprender. mais mesmo assim obrigado pela ajuda =)

inté \0/