Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Sun App Server 8.2 + JAVA Persistence + Creator 2_1  RSS feed

Derick Potgieter
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I`m trying to run java persistence within a web application.

I`ve created a standalone jar that contains all the entity beans and persistence.xml files. This works perfect, i can read, insert ....

The problem is i`m using studio creator 2. And i want to use my persistence jar to persist data to the database.

But as soon as jou include the jar,deploy and run the piece of code that should execute now, it sezz that is cant find the Persistence Unit.

I`m basically inlcuding the whole jar, that contains the PU aswell. So as far as i cant see it looks like SJAS 8.2 doesn`t load the persistence.xml file.

Any Ideas?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!