]
Rob Stryker commented on WFLY-5247:
-----------------------------------
A second problem with this file is in the namespace imports.
{code}
since
there's a current bug in eclipse that does not follow redirects.
wildfly-ejb-multi-server-app-one-ejb quickstart fails to validate in
eclipse
----------------------------------------------------------------------------
Key: WFLY-5247
URL:
https://issues.jboss.org/browse/WFLY-5247
Project: WildFly
Issue Type: Bug
Reporter: Rob Stryker
Assignee: Jason Greene
wildfly-ejb-multi-server-app-one-ejb quickstart fails to validate.
The xml file jboss-ejb3.xml file inside the project has the following content:
{code}
<?xml version="1.0" encoding="UTF-8"?>
<!--
JBoss, Home of Professional Open Source
Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual
contributors by the @authors tag. See the copyright.txt in the
distribution for a full listing of individual contributors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<jboss:ejb-jar
xmlns:jboss="http://www.jboss.com/xml/ns/javaee"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:s="urn:security"
xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee
http://www.jboss.org/j2ee/schema/jboss-ejb3-2_0.xsd
http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd"
version="3.1" impl-version="2.0">
<enterprise-beans>
</enterprise-beans>
<assembly-descriptor>
</assembly-descriptor>
</jboss:ejb-jar>
{code}
Unfortunately, the element "enterprise-beans" is not allowed to be empty.
A solution is to remove the empty "enterprise-beans" element.