wood burning stoves*
The moose likes JBoss/WildFly and the fly likes application deployed on jboss doesn't update db schema Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "application deployed on jboss doesn Watch "application deployed on jboss doesn New topic

application deployed on jboss doesn't update db schema

Daniil Bubnov

Joined: Apr 13, 2012
Posts: 1

I started to study j2ee and looked into jboss7 quickstarts. To be exact jboss-as-login example. It works nice but when i change default datasource (with newly created one) and persistence.xml it doesn't update db schema with hbm2ddl despite of property set in persistence.xml. And there is no sign of updating in log

here is my files

persistence.xml - http://pastebin.com/2M5gx0Tp
datasource extract from jboss standalone.xml - http://pastebin.com/1hMqBgih
startup log - http://pastebin.com/U0zZVQn0

i would say that if i change something in entities code and then manually correct database everything works. But i don't want to create everything by hand.

thank you
I agree. Here's the link: http://aspose.com/file-tools
subject: application deployed on jboss doesn't update db schema
Similar Threads
Is it necessary to restart the server each time before running , when using JSTL?
Spring Hibernate (JPA) integration
Best Place to Store Temp Code Snippets Online?
PersistenceException: Cannot set auto-commit mode when using distributed transactions
Using datasource for login bean & login page?