-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Everything runs twice during startup
PostPosted: Mon Aug 26, 2013 9:04 am 
Newbie

Joined: Mon Aug 26, 2013 8:57 am
Posts: 1
Location: ON, Canada
I'm using Apache TomEE, OpenJPA and Hibernate 4.2.1. When I look through the logs in catalina.out, all the Hibernate-related log entries show up twice. It seems that the commands are actually running twice as I get log entries showing that Hibernate can't add an index because it already exists, or can't delete one because it doesn't exist.

I've tried all sorts of different settings and I can't resolve this. Here's my persistence.xml:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<persistence
       xmlns="http://java.sun.com/xml/ns/persistence"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
       version="2.0"

   <persistence-unit name="ExampleEngine" transaction-type="JTA">
       <provider>org.hibernate.ejb.HibernatePersistence</provider>

       <properties>
           <property name="hibernate.show_sql" value="true"/>
           <property name="hibernate.format_sql" value="true"/>
           <property name="hibernate.hbm2ddl.auto" value="create"/>
       </properties>
   </persistence-unit>
</persistence>


If anyone has any ideas for me, I'd really appreciate it.

Thanks,
- Andrew.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.