File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

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 '{"http://java.sun.com/xml/ns/j2ee" isplay-name, "http://java.sun.com/xml/ns/j2ee":icon, "http://java.sun.com/xml/ns/j2ee":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
Marshal

Joined: May 26, 2003
Posts: 31062
    
232

Welcome to JavaRanch!

Can you post your ejb-jar.xml?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Heya Gosper
Greenhorn

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?,
ejb-client-jar?)>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What does this error mean?