• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

A question about "persistence.xml" by Weblogic

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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

Take a look at:

http://edocs.bea.com/wls/docs100/ejb/DDreference-cmp-jar.html#wp1162249

that may be what you're missing.

regards.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic