This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes A question about Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "A question about "persistence.xml" by Weblogic" Watch "A question about "persistence.xml" by Weblogic" New topic

A question about "persistence.xml" by Weblogic

Thomas Chang
Ranch Hand

Joined: May 13, 2008
Posts: 61
Hi all,

I built an EJB-Project, a JAR file, which contains the "persistence.xml" under \src\META-INF\. It looks as follow:

I use the same file by JBoss and after I deployed and started this JAR, the entity tables will be created.

Now I deploy this JAR on Weblogic 10g. But no entity tables are created after this JAR is deployed and started.

I've created a Data Source via Admin Console and have tested it. This connection to the physical data base is OK.
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977

have you created weblogic-cmp-jar.xml DD? Are you using EJBs for persistence?

Take a look at:

that may be what you're missing.

I agree. Here's the link:
subject: A question about "persistence.xml" by Weblogic
It's not a secret anymore!