Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What does this error mean?

 
Jazzy Sanchez
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34672
367
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch!

Can you post your ejb-jar.xml?
 
Heya Gosper
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?)>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic