title: JBossXBException
body: <p>I have an ear file that is generated through Maven EAR plugin. The ear file has only one module which is the ejb module. I am able to deploy it to JBoss 4.2.1-GA inside Eclipse but when I tried running it an exception is encountered during startup. I've tried searching for a solution for two days now but unsuccessful.</p>
  
  <p>The exception I encountered was </p>
  
  <pre><code>org.jboss.xb.binding.JBossXBException: Failed to parse source: Premature end of file. @ *unknown*[-1,-1]
  </code></pre>
  
  <p>The stack trace is here: <a href="http://pastebin.com/nZmCxdMj" rel="nofollow">stack trace</a></p>
  
  <p>It might be worth noting that this is an existing project that I am trying to "mavenize" and was working properly before.</p>