File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes What does this error mean? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "What does this error mean?" Watch "What does this error mean?" New topic

What does this error mean?

Jazzy Sanchez
Ranch Hand

Joined: Apr 02, 2006
Posts: 35
Im using eclipse and recently installed JST to develop J2EE projects. This is the error i getting from ejb-jar.xml file.

cvc-complex-type.2.4.b: The content of element 'ejb-jar' is not complete. One of '{"" isplay-name, "":icon, "":enterprise-beans}' is expected.ejb-jar.xmlTestEJB/ejbModule/META-INFline 5April 2, 2006 7:16:27 PM1

are there any better editor than eclipse?
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33102

Welcome to JavaRanch!

Can you post your ejb-jar.xml?

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Heya Gosper

Joined: Apr 10, 2006
Posts: 1
If you read the ejb-jar DTD file you can learn the rules for each element.
Here's the relevant section for ejb 1.1 but you may be using 1.0 by the sounds of it. Anyway if it is the same, it means that you have left out the mandatory description of your enterprise beans.HTH

The ejb-jar element is the root element of the EJB deployment
descriptor. It contains an optional description of the ejb-jar file,
optional display name, optional small icon file name, optional large
icon file name, mandatory structural information about all included
enterprise beans, optional application-assembly descriptor, and an
optional name of an ejb-client-jar file for the ejb-jar.
<!ELEMENT ejb-jar (description?, display-name?, small-icon?,
large-icon?, enterprise-beans, assembly-descriptor?,
I agree. Here's the link:
subject: What does this error mean?
jQuery in Action, 3rd edition