Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem deploying ejbProject with JPA [SOLVED]

 
Olga Valencia
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi. I'm creating an JEE project in wich I want to use JPA.
I'm using a eclipse 3.4 ganymede and jboss 4.2

well, I've created a JPA project, and create 2 entitys and register in the persist.xml. This file look like this:


I export the .jar file in folder c:\jboss4.2.2\server\default\lib
Until there, everything works fine.

Then I create other EJB Project and related with jboss. I create this structure:
My interface class look like this:

and my Facade class look like this:

when I start jboss and deploy the ejbProject i get this jboss log:


What I forget, what is wrong??
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The persistence.xml should be in the META-INF folder of the jar. Have you placed it there?
 
Olga Valencia
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. I put persistence.xml in META-INF folder in JPA project.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A couple of thoughts.

I export the .jar file in folder c:\jboss4.2.2\server\default\lib


You should place the JAR file containing your JPA entity beans in serevr/default/deploy.

Second, the console log info that you posted is the deployment report that appears after deployment is finished. I usually does not provide enough information to diagnose a problem. There should be a stack trace earlier in the console log; find the first exception stack trace and post it.
 
Olga Valencia
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. Thank's !!!
Yes Yes....
I deploy my JPA project in server/default/deploy and fix the build path of EJB project and everything work's ok.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic