File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes EJB 5.0 deploy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "EJB 5.0 deploy" Watch "EJB 5.0 deploy" New topic
Author

EJB 5.0 deploy

Mirko Bonasorte
Ranch Hand

Joined: May 14, 2007
Posts: 244
Hi to everybody,

I'm preparing for EJB 5.0 using the O'Reilly book V edition.
At the fourth chapter, there is an example of EJB deployment.
According to what the book says, I have to create a jar file containing:
1. the .class files
2. META-INF/persistence.xml

First problem:
When I deploy the jar into jboss (simple copying the jar), the log says that jboss cannot find a deployer for the jar file. Specifically, it says that it finds no xml.
I'm using j6sdk+jboss 4.0.0.

Second problem:
In the Chapter 4 exercises, the ant task puts the persistence.xml into the root of the jar file, instead of META-INF directory. Is it correct?

Thanks a lot in advances!


SCJP<br />SCWCD 1.4 Upgrade (Remember: me stupid)<br />SCWCD 1.4<br /><a href="http://jcp.org/aboutJava/communityprocess/final/jsr220/index.html" target="_blank" rel="nofollow">SCBCD 5.0</a><br /><a href="http://www.enthuware.com" target="_blank" rel="nofollow">SCBCD 5.0 mock exam</a> <br /> <br />SCEA 5 Part1: Preparing...
Marimuthu Madasamy
Ranch Hand

Joined: Jun 07, 2007
Posts: 72

i got the same error.. then i modified the build.xml to include persistence.xml under META-INF folder in ejb jar it worked fine..


- Marimuthu Madasamy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB 5.0 deploy