Javafree
Página Inicial do Fórum > Front-End Web

Caused by: javax.persistence.PersistenceException: [PersistenceUnit: CLIENTE_MYSQL] Unable to build EntityManagerFactory



Criar novo tópico   Responder tópico


  1. leoweverton
    Posts:1


    Comment Arrow

    Publicado em: 03/04/2015 23:17:19

    Baixei o banco de dados MySql e instalei no meu notebook, nesse mesmo notebook estou executando uma aplicação no Eclipse que se conecta com o MySql pelo persistence.xml, porém está estourando o erro abaixo quando executo a aplicação


    Caused by: javax.persistence.PersistenceException: [PersistenceUnit: CLIENTE_MYSQL] Unable to build EntityManagerFactory
    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:915)
    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:890)
    at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:57)
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47)
    at comurna.dao.EntityManagerFactorySingleton.getInstance(EntityManagerFactorySingleton.java:16)
    at comurna.bo.CandidatoBO.<init>(CandidatoBO.java:20)
    at comurna.entityMB.CandidatoMB.<init>(CandidatoMB.java:30)
    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 java.lang.Class.newInstance(Unknown Source)
    at com.sun.faces.mgbean.BeanBuilder.newBeanInstance(BeanBuilder.java:186)
    ... 48 more



    _________________

    Léo Santos
    Programador Java Web



  1. ziguifrid
    Posts:1


    Comment Arrow

    Publicado em: 12/04/2015 23:04:40

    Provavelmente está faltando a biblioteca do mysql.



  1. Relacionados