File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes descriptor information is NOT complete 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 "descriptor information is NOT complete" Watch "descriptor information is NOT complete" New topic

descriptor information is NOT complete

Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 549

can anyone tell me why the following descriptor information is not complete ?

Given the definition for an entity, Book:

The associated descriptor file has the following snippet pertaining to this entity:

No other parts of the deployment descriptor affect this configuration.
This persistent unit does NOT deploy because the descriptor information is NOT complete.
Why ?

SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCBCD 5
Visit my blog
Paul Michael
Ranch Hand

Joined: Jul 02, 2001
Posts: 697
I'm not very strong with EJB XML descriptors but I'm guessing this has something to do with this property:

metadata-complete defines whether the metadata description for this element is complete or not (in other words, if annotations present at the class level should be considered or not).

Try adding an Id element to your descriptor or mark the metadata-complete as false and let us know how it works.

SCJP 1.2 (89%), SCWCD 1.3 (94%), IBM 486 (90%), SCJA Beta (96%), SCEA (91% / 77%), SCEA 5 P1 (77%), SCBCD 5 (85%)
Amandeep Singh
Ranch Hand

Joined: Jul 17, 2008
Posts: 850

10. @Entity11. public class Book {12. @Id Integer id;13. @Column(name="NAMEBOOK")14. String bookName;15. public java.util.Date loanDate;16. }

do like this-

public class Book
String bookName;
public String getBookName(String bookName){
return bookName;
public void setBookName(String bookName){
this.bookName = bookName;
public java.util.Date loanDate;}

SCJP 1.4, SCWCD 5, SCBCD 5, OCPJWSD 5,SCEA-1, Started Assignment Part 2
My blog-
nav katoch
Ranch Hand

Joined: May 02, 2008
Posts: 246

Read the following thread:-
You can find the answers here:


Naveen Katoch
Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 549

Originally posted by nav katoch:
Read the following thread:-
You can find the answers here:


Naveen Katoch

it does not explain why.
Sergio Tridente
Ranch Hand

Joined: Mar 22, 2007
Posts: 329

Celinio, have you tried what Paul suggested?

As he has already explained, the metadata-complete attribute indicates whether all the needed metadata is defined in the deployer descriptor. If that's the case, metadata specified in annotations is ignored. Now, the problem with your example is that you are not specifying Id in metadata (as the one deplcared in annotations is not considered).

SCJP 1.4 (88%) - SCJP 5.0 Upgrade (93%) - SCWCD 1.4 (97%) - SCBCD 5.0 (98%)
It is sorta covered in the JavaRanch Style Guide.
subject: descriptor information is NOT complete
It's not a secret anymore!