1 Reply Latest reply on Feb 10, 2006 5:05 PM by anhtuyen

    problem deploying the Eclipse IDE tutorial under jboss-4.03s

    kmaione

      I'm trying to get the latest Eclipse IDE tutorial to work under jboss-4.03sp1 but the deployment fails because the ejb-jar.xml is incomplete. Any ideas would be appreciated.

      Console:
      11:39:49,468 INFO [EARDeployer] Init J2EE application: file:/C:/java/jboss-4.0.3SP1/server/default/deploy/FiboApp.ear
      11:39:49,765 ERROR [XmlFileLoader] XmlFileLoader: File jar:file:/C:/java/jboss-4.0.3SP1/server/default/tmp/deploy/tmp52064FiboApp.ear-contents/FiboEJB.jar!/META-INF/ejb-jar.xml process fatal error. Line: 19. Error message: XML document structures must start and end within the same entity.
      11:39:49,765 ERROR [MainDeployer] Could not create deployment: file:/C:/java/jboss-4.0.3SP1/server/default/tmp/deploy/tmp52064FiboApp.ear-contents/FiboEJB.jar
      org.jboss.deployment.DeploymentException: Invalid XML: file=jar:file:/C:/java/jboss-4.0.3SP1/server/default/tmp/deploy/tmp52064FiboApp.ear-contents/FiboEJB.jar!/META-INF/ejb-jar.xml@16:19; - nested throwable: (org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.)
      at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:327)
      at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:257)

      The ejb-jar.xml is incomplete even though the packaging step claims to have completed successfully.
      <?xml version="1.0" encoding="UTF-8"?>

      <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">

      <ejb-jar >

      <![CDATA[No Description.]]>
      <display-name>Generated by XDoclet</display-name>

      <enterprise-beans>

      <!-- Session Beans -->

      <![CDATA[Description for Fibo]]>
      <display-name>Name for Fibo</display-name>

      <ejb-name>Fibo</ejb-name>

        • 1. Re: problem deploying the Eclipse IDE tutorial under jboss-4
          anhtuyen

          1 - Make sure that steps to generate EJB related files (in Chapter 5) have been done correctly. (Check mispelling)
          2- Check XDoclet tags on top of FiboBean class were set correctly. These tags are very important to generate xml files. (You can delete the auto - generated tags and copy from Tutorial PDF File to make sure they are set correct)

          I got the same problems with ComputeServlet class where there were some extra tags generated causing deployment exception.

          Hope this help