<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd"
         version="3.1">
   <enterprise-beans>
      <session>
         <ejb-name>SimpleStatelessSessionBean</ejb-name>
         <ejb-class>org.jboss.as.demos.ejb3.archive.SimpleStatelessSessionBean</ejb-class>
         <around-invoke>
            <method-name>aroundInvoke</method-name>
         </around-invoke>
      </session>
   </enterprise-beans>
</ejb-jar>
<?xml version="1.1" encoding="UTF-8"?>
<ejb-jar xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd"
         version="3.1">
   <enterprise-beans>
      <session>
         <ejb-name>SimpleStatelessSessionBean</ejb-name>
         <ejb-class>org.jboss.as.demos.ejb3.archive.SimpleStatelessSessionBean</ejb-class>
         <around-invoke>
            <method-name>aroundInvoke</method-name>
         </around-invoke>
      </session>
   </enterprise-beans>
</ejb-jar>

Change the version of xml to 1.1 to prevent the javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,39] Message: Premature end of file.
Change the version of xml to 1.1 to prevent the javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,39] Message: Premature end of file.
