org.springframework.beans.factory.BeanCreationException

Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/openmeetings-applicationContext.xml]: Invocation of init method *failed; nested exception is javax.persistence.PersistenceException: Found 'javax.persistence.provider' property in the map but the value is not a String. Found object : 'null'.

Samebug tips4

Spring Security detects beans in the root context. Move the detection of the bean (or declare it explictly) in the root context.

Mixed JpaTransactionManager with JTA transaction type in the beans.xml and persistence.xml

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web19433

  • Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/openmeetings- applicationContext.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: Found 'javax.persistence.provider' property in the map but the value is not a String. Found object : 'null'.
  • via Google Groups by Lee Daniel, 6 months ago
    Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/openmeetings- applicationContext.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: Found 'javax.persistence.provider' property in the map but the value is not a String. Found object : 'null'.
  • Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: punit] Unable to build EntityManagerFactory
  • Stack trace

    • org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/openmeetings-applicationContext.xml]: Invocation of init method *failed; nested exception is javax.persistence.PersistenceException: Found 'javax.persistence.provider' property in the map but the value is not a String. Found object : 'null'. at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    34 times, 10 months ago
    9 times, 11 months ago
    2 times, 1 year ago
    4 times, 1 year ago
    5 times, 1 year ago
    60 more bugmates