1 Reply Latest reply on Nov 3, 2005 8:44 AM by Adrian Brock

    jboss.deployment.DeploymentException: Invalid XML:

    Davis Varkey Newbie

      Dear All,

      I am getting following parsing error while deploying my ear file

      8:00:03,078 ERROR [MainDeployer] Could not initialise deployment: file:/D:/jboss-4.0.3/server/default/deploy/ilmsrel1_0.ear
      rg.jboss.deployment.DeploymentException: Invalid XML: file=META-INF/jboss-app.xml@1:1; - nested throwable: (org.xml.sax.SAXParseException: Content is not allowed in prolog.)
      at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:327)
      at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:257)
      at org.jboss.deployment.EARDeployer.init(EARDeployer.java:137)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:843)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:780)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
      at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)

      the jboss-app.xml file content is :

      <?xml version="1.0" encoding="UTF-8"?>

      <!DOCTYPE jboss-app
      PUBLIC "-//JBoss//DTD J2EE Application 1.3V2//EN"
      "http://www.jboss.org/j2ee/dtd/jboss-app_3_2.dtd">
      <jboss-app>
      <loader-repository>acme.com:loader=ilmsrel1_0.ear</loader-repository>
      </jboss-app>

      I would appreciate if you can advise me the cause.

      Regards,
      Davis