Announcement Announcement Module
Collapse
No announcement yet.
PersistenceUnitManager : No single default persistence unit defined in Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • PersistenceUnitManager : No single default persistence unit defined in

    <bean id="persistenceUnitManager"
    class="org.springframework.orm.jpa.persistenceunit .DefaultPersistenceUnitManager">
    <property name="persistenceXmlLocations">
    <list>
    <value>classpath:META-INF/fenix-communication-persistence.xml</value>
    <value>classpath:META-INF/persistence.xml</value>
    </list>
    </property>

    <!-- if no datasource is specified, use this one -->
    <property name="defaultDataSource" ref="dataSource" />
    </bean>
    I have more than one persistenceunit on my classpath. I want to use them in the same EntityManager, but I bump into this error.
    What I am doing wrong here?

  • #2
    I am facing same error, do you mind to share your solution?

    Comment


    • #3
      In the end we decided to have only one persistence unit on the classpath so I guess we did not find a solution for this problem. You can find the project here:
      SVN:
      https://svn.forge.osor.eu/svn/fenix
      The relevant projects are fenix-core and fenix-web.

      Comment

      Working...
      X