zolymo 12 Newbie

Hello. Im making an webapp using Eclipse Keppler.
REQUIREMENTS:
- Eclipse for Java EE (or JBoss Developer Studio 7 o 8)
- JBossTools installed on eclipse
- JBoss Aplication Server 7.1.1 (not eap)
- MySQL connector J 5.33

Structure of project: i use this package structure
- persistence and ejbdao (data layer)
- ejbnegocio (bussines layer)
- presentation and login (presentation layer)

Is my first project, i only need list all my users using JSF+Primefaces (all dependecies included in pom.xml) and i use too messages.properties for show messages. I'm using an GenericDAO and GenericDAOImpl
... but i dont obtain results listing in an page, please help me, because i obtain this error message:

08:17:20,096 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "logis.war"
08:17:20,235 INFO  [org.jboss.as.jpa] (MSC service thread 1-3) JBAS011401: Read persistence.xml for pruebaPU
08:17:20,283 INFO  [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016002: Processing weld deployment logis.war
08:17:20,284 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-3) JNDI bindings for session bean named GestorUsuariosServiceImpl in deployment unit deployment "logis.war" are as follows:

    java:global/logis/GestorUsuariosServiceImpl!com.inovawebstudio.ejbnegocio.GestorUsuariosService
    java:app/logis/GestorUsuariosServiceImpl!com.inovawebstudio.ejbnegocio.GestorUsuariosService
    java:module/GestorUsuariosServiceImpl!com.inovawebstudio.ejbnegocio.GestorUsuariosService
    java:global/logis/GestorUsuariosServiceImpl
    java:app/logis/GestorUsuariosServiceImpl
    java:module/GestorUsuariosServiceImpl

08:17:20,286 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-3) JNDI bindings for session bean named UsuarioDAO in deployment unit deployment "logis.war" are as follows:

    java:global/logis/UsuarioDAO!com.inovawebstudio.ejbdao.UsuarioDAOLocal
    java:app/logis/UsuarioDAO!com.inovawebstudio.ejbdao.UsuarioDAOLocal
    java:module/UsuarioDAO!com.inovawebstudio.ejbdao.UsuarioDAOLocal
    java:global/logis/UsuarioDAO
    java:app/logis/UsuarioDAO
    java:module/UsuarioDAO

08:17:20,461 INFO  [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016005: Starting Services for CDI deployment: logis.war
08:17:20,465 INFO  [org.jboss.as.jpa] (MSC service thread 1-2) JBAS011402: Starting Persistence Unit Service 'logis.war#pruebaPU'
08:17:20,468 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-2) HHH000204: Processing PersistenceUnitInfo [
    name: pruebaPU
    ...]
08:17:20,480 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.persistenceunit."logis.war#pruebaPU": org.jboss.msc.service.StartException in service jboss.persistenceunit."logis.war#pruebaPU": Failed to start service
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_71]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_71]
    at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_71]
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: pruebaPU] Unable to build EntityManagerFactory
    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914)
    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889)
    at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73)
    at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:162)
    at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(PersistenceUnitServiceImpl.java:85)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
    ... 3 more
Caused by: org.hibernate.AnnotationException: Cannot find the expected secondary table: no usuario available for com.inovawebstudio.persistence.Usuario
    at org.hibernate.cfg.Ejb3Column.getJoin(Ejb3Column.java:363)
    at org.hibernate.cfg.Ejb3Column.getTable(Ejb3Column.java:342)
    at org.hibernate.cfg.annotations.SimpleValueBinder.make(SimpleValueBinder.java:306)
    at org.hibernate.cfg.annotations.PropertyBinder.makePropertyAndValue(PropertyBinder.java:189)
    at org.hibernate.cfg.annotations.PropertyBinder.makePropertyValueAndBind(PropertyBinder.java:201)
    at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:2011)
    at org.hibernate.cfg.AnnotationBinder.processIdPropertiesIfNotAlready(AnnotationBinder.java:765)
    at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:684)
    at org.hibernate.cfg.Configuration$MetadataSourceQueue.processAnnotatedClassesQueue(Configuration.java:3406)
    at org.hibernate.cfg.Configuration$MetadataSourceQueue.processMetadata(Configuration.java:3360)
    at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1334)
    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1724)
    at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84)
    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904)
    ... 9 more

08:17:20,691 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS015870: Deploy of deployment "logis.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.persistenceunit.\"logis.war#pruebaPU\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"logis.war#pruebaPU\": Failed to start service"}}
08:17:20,701 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment logis.war in 10ms
08:17:20,702 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774: Service status report
JBAS014777:   Services which failed to start:      service jboss.persistenceunit."logis.war#pruebaPU": org.jboss.msc.service.StartException in service jboss.persistenceunit."logis.war#pruebaPU": Failed to start service

08:17:20,705 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.persistenceunit.\"logis.war#pruebaPU\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"logis.war#pruebaPU\": Failed to start service"}}}}

this cant create an EntityManagerFactory and cant create a table in database. this is an JBoss Managed for transactions-
the complete source code is here: plesase Help me! :(
Click Here

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.