• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.
 
Stinging nettles are edible. But I really want to see you try to eat this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic