File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
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