I'd ask this on the persistence forum. What does "corrupt" mean? Can you access the db using the hypersonic viewer? Does this occur if you undeploy your ear, then deploy it? Are you having cmp2 create and/or drop your db tables?
Now I have made some more testing.
I have also managed to use MySQL with the same problem.
What I mean with corrupt is that JBoss tells that it cant find an object with primary key this and primary key that. The object does not exist. I get tons of exceptions when accessing my beans.
I can look at the database using some other tool and it looks ok.
I have cmp2 create of my dbtables, not drop.
It occures if i start jboss when the database is not totaly clean or if a redeploy me ear using the automatic deploy. If I undeploy my ear or not I realy do not know. I use the standard configuration of 3.0