[jboss-user] [Beginners Corner] - Re: Problem starting service persistence.units (ClassCastEx
jaikiran
do-not-reply at jboss.com
Thu Jan 3 01:51:21 EST 2008
The documentation for hibernate.hbm2ddl.auto says this:
anonymous wrote : Automatically validate or export schema DDL to the database when the SessionFactory is created. With create-drop, the database schema will be dropped when the SessionFactory is closed explicitly.
When you redeploy your EAR file, do you see any logs which suggest that the sessionfactory is being closed and the schema being dropped? Looks like the tables are not dropped when you are redeploying which results in these error messages. Compare the server.log file to see if there's any difference in the way your application is undeployed, when your redeploy the application as compared to when you stop JBoss.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116612#4116612
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116612
More information about the jboss-user
mailing list