-->
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.  [ 3 posts ] 
Author Message
 Post subject: hibernate derby
PostPosted: Thu Jan 31, 2008 4:14 am 
Beginner
Beginner

Joined: Wed Oct 03, 2007 9:46 pm
Posts: 37
i use the following configuration. when hibernate is exucuted. i can see dbname folder created in my tomcat folder . but i get lot of error -->

INFO: Database 'dbname' not created, connection made to existing database instead.
SQL Warning: Database 'dbname' not created, connection made to existing database instead.
at org.apache.derby.impl.jdbc.EmbedSQLWarning.newEmbedSQLWarning(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection40.<init>(Unknown Source)
at org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Unknown Source)
at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:135)
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.j
at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)
at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)
at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)


-----------------------------------
<property name="connection.username">root</property>
<property name="connection.url">
jdbc:derby:dbname;create=true
</property>
<property name="dialect">
org.hibernate.dialect.DerbyDialect
</property>
<property name="connection.password" ></property>
<property name="connection.driver_class">
org.apache.derby.jdbc.EmbeddedDriver
</property>


<property name="hibernate.hbm2ddl.auto">
create
</property>


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 31, 2008 3:11 pm 
Newbie

Joined: Tue Nov 29, 2005 11:19 am
Posts: 3
according to
http://db.apache.org/derby/docs/dev/ref/rrefattrib26867.html it seems normal :

- try to remove the create=true and see what happens

- if you want hibernate to drop the db when you close the session, use "hibernate.hbm2ddl.auto" = create-drop[/url]


Top
 Profile  
 
 Post subject: RIGHT
PostPosted: Wed Mar 25, 2009 11:09 pm 
Newbie

Joined: Wed Mar 25, 2009 11:02 pm
Posts: 1
- remove the create=true
can run


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

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.