]
Josef Kopriva updated JBIDE-20537:
----------------------------------
Component/s: project-examples
wildfly-ejb-multi-server-app-one-ejb quickstart content incomplete
------------------------------------------------------------------
Key: JBIDE-20537
URL:
https://issues.redhat.com/browse/JBIDE-20537
Project: Tools (JBoss Tools)
Issue Type: Sub-task
Components: project-examples, server
Affects Versions: 4.3.0.CR1
Reporter: Rob Stryker
Priority: Major
Labels: xml_validation_quickstart_content,
xml_validation_quickstarts_wildfly
Fix For: 4.3.0.CR1
Even after fixing
https://issues.jboss.org/browse/JBIDE-20536 to import some namespaces
using exact schema locations on the web, wildfly-ejb-multi-server-app-one-ejb fails to
validate.
The file jboss-ejb3.xml has the following content (trimmed for brevity):
{code}
<jboss:ejb-jar (cut out xml:ns stuff) version="3.1"
impl-version="2.0">
<enterprise-beans>
</enterprise-beans>
<assembly-descriptor>
</assembly-descriptor>
</jboss:ejb-jar>
{code}
Unfortunately, empty enterprise-beans tags are invalid according to the xsd against which
this is validated. Error message as follows:
{code}
cvc-complex-type.2.4.b: The content of element 'enterprise-beans' is not
complete. One of '{"http://
java.sun.com/xml/ns/javaee":session,
"http://java.sun.com/xml/ns/javaee":entity, "http://
java.sun.com/xml/ns/javaee":message-driven}' is expected.
{code}