wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes JBoss:EJB is not creating table in MySQL DB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss:EJB is not creating table in MySQL DB" Watch "JBoss:EJB is not creating table in MySQL DB" New topic
Author

JBoss:EJB is not creating table in MySQL DB

Gurubg Gb
Greenhorn

Joined: Jan 04, 2011
Posts: 5
Hello Folks,

I have a strange problem, I am not receiving any error when I deploy my EJB project to JBoss . I have a single entity bean defined and expecting it to be created in MySQL DB. But strangely I do not see any table created . Has anyone faced the same problem before ?


My Persistence.xml file is as follows ..


mysql-db.xml file is as below

I have placed the DB conenctor file mysql-connector-java-5.1.14-bin.jar in \server\default\lib folder ..

This is my code for Entity which I am trying to create


But I do not see any table named "lessonuser" created in the "lessonds" database.
Can someone point out if I am going wrong somewhere ?

Thanks in advance ..
Guru
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JBoss:EJB is not creating table in MySQL DB
 
Similar Threads
Error in destinations-services.xml
org.jboss.resource.JBossResourceException: Error while starting JBOSS server
Error on Starting jboss 5.1.0
Cannot conect to mySql DB after changing DB from HSQL to mySql in JBOSS 5
RuntimeException when trying to deploy application using jboss