This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "application deployed on jboss doesn Watch "application deployed on jboss doesn New topic
Author

application deployed on jboss doesn't update db schema

Daniil Bubnov
Greenhorn

Joined: Apr 13, 2012
Posts: 1
Hello!

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
Best Place to Store Temp Code Snippets Online?
Is it necessary to restart the server each time before running , when using JSTL?
Using datasource for login bean & login page?
Spring Hibernate (JPA) integration
PersistenceException: Cannot set auto-commit mode when using distributed transactions