File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes problem deploying ejbProject with JPA [SOLVED] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "problem deploying ejbProject with JPA [SOLVED]" Watch "problem deploying ejbProject with JPA [SOLVED]" New topic
Author

problem deploying ejbProject with JPA [SOLVED]

Olga Valencia
Greenhorn

Joined: May 19, 2009
Posts: 3
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

Joined: Jul 20, 2005
Posts: 10202
    
166

The persistence.xml should be in the META-INF folder of the jar. Have you placed it there?


[My Blog] [JavaRanch Journal]
Olga Valencia
Greenhorn

Joined: May 19, 2009
Posts: 3
Yes. I put persistence.xml in META-INF folder in JPA project.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

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.


JBoss In Action
Olga Valencia
Greenhorn

Joined: May 19, 2009
Posts: 3
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem deploying ejbProject with JPA [SOLVED]