wood burning stoves 2.0*
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
Author

descriptor information is NOT complete

Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 547

hi,
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: 844
Celino

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-

@Entity
public class Book
{
String bookName;
@Id
@Column(name="NAMEBOOK")
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- http://rkydesigns.blogspot.com
nav katoch
Ranch Hand

Joined: May 02, 2008
Posts: 246

Read the following thread:-
You can find the answers here: http://www.coderanch.com/t/418748/java-EJB-SCBCD/certification/Answers-Sun-Free-Proficiency-Assessment

Thanks,

Naveen Katoch
Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 547

Originally posted by nav katoch:
Read the following thread:-
You can find the answers here: http://www.coderanch.com/t/418748/java-EJB-SCBCD/certification/Answers-Sun-Free-Proficiency-Assessment

Thanks,

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%)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: descriptor information is NOT complete
 
Similar Threads
orm.xml with JBoss
Answers of Sun's Free Proficiency Assessment
EJB3 Beta Certification - EntityManager BASIC notes. (PART II)
JPA Mapping Exception
JPA: Translating Annotations to Metadata (orm.xml)