"jboss-ejb3.xml" validation errors in JBoss Developer Studio

Solution Verified - Updated

Environment

  • JBoss Developer Studio (JBDS)
    • 7
    • 8
    • 9
  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6

Issue

We've seen xml validation errors in JBoss Developer Studio (JBDS)

- cvc-elt.1: Cannot find the declaration of element 'jboss'.

And:

Referenced file contains errors (jar:file:PATH-TO-jbdevstudio/studio/plugins/org.jboss.tools.as.catalog_a.b.c.Final-x-y-z.jar!/schema/xsd/jboss-ejb3-2_0.xsd). For more information, right click on the message in the Problems View and select "Show Details..."

Referenced file contains errors (jar:file:PATH-TO-jbdevstudio/studio/plugins/org.jboss.tools.as.catalog_a.b.c.Final-x-y-z.jar!/schema/xsd/jboss-ejb3-spec-2_0.xsd). For more information, right click on the message in the Problems View and select "Show Details..."

After clicking on "Show Details..." menu item, an window pops up with some errors:

sch-props-correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of 'http://java.sun.com/xml/ns/javaee,...'.

like below:

Resolution

Root Cause

  • "cvc-elt.1: Cannot find the declaration of element 'jboss'." error is caused by incorrect tag / elements inside the xml file.
  • "Referenced file contains errors..." error message is a known issue that can be ignored safely.
SBR
Category
Tags

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.