Are you able to create a small sample war that can help us reproduce it?
That would be a big help.

Many thanks
Jon

On Fri, Feb 1, 2019 at 2:44 PM [email protected] <[email protected]>
wrote:

> Hi Roberto,
>
>         Thank You for replying. Appreciated it :)
>
>          Yes, persistence.xml exists under src/main/resources. It has
> always
> been at this location and the application runs fine on Tomee 1.7.5. I have
> also enclosed spring's "entitymanagerFactory" bean definitions from
> applicationContext.xml for reference.
>
> ========
>          <?xml version="1.0" encoding="UTF-8"?>
>          <persistence xmlns="http://java.sun.com/xml/ns/persistence";
> version="1.0">
>         <persistence-unit name="workflowPersistenceUnit"
> transaction-type="RESOURCE_LOCAL">
>                 <class>Entity beans</class>
>         </persistence-unit>
>         <persistence-unit name="auditLoggingPersistenceUnit"
> transaction-type="RESOURCE_LOCAL">
>                 <class>Entity beans</class>
>         </persistence-unit>
>         </persistence>
> =======
>
>    <bean id="entityManagerFactory"
> class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
>                 <property name="dataSource" ref="auditDataSource" />
>                 <property name="persistenceUnitName"
> value="workflowPersistenceUnit" />
>                 <property name="jpaVendorAdapter" ref="jpaVendorAdapter" />
>                 <property name="jpaDialect" ref="jpaDialect" />
>         </bean>
>
> <bean id="auditLoggingManagerFactory"
> class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
>                 <property name="dataSource" ref="auditDataSource" />
>                 <property name="persistenceUnitName"
> value="auditLoggingPersistenceUnit"
> />
>                 <property name="jpaVendorAdapter" ref="jpaVendorAdapter" />
>                 <property name="jpaDialect" ref="jpaDialect" />
>         </bean>
>
> <bean id="jpaVendorAdapter"
> class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
>                 <property name="database" value="${db.database}" />
>                 <property name="databasePlatform"
> value="${db.database.platform}" />
>         </bean>
>
>
> <bean id="jpaDialect"
> class="org.springframework.orm.jpa.vendor.HibernateJpaDialect" />
>
>         <bean id="jpaTransactionManager"
> class="org.springframework.orm.jpa.JpaTransactionManager">
>                 <property name="entityManagerFactory"
> ref="entityManagerFactory" />
>                 <property name="dataSource" ref="auditDataSource" />
>                 <property name="jpaDialect" ref="jpaDialect" />
>         </bean>
>
>         <tx:annotation-driven transaction-manager="jpaTransactionManager"
> />
>
> =======
>
>    This is a working application which has been deployed successfully on
> Prod system as well. But when we try to deploy it on Tomee 7.1.0, for some
> reason it thinks we have EJBs and starts analysing it in a EE fashion.
>
> Regards,
> Priya
>
>
>
>
>
>
> --
> Sent from:
> http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
>

Reply via email to