1 Reply Latest reply on Dec 20, 2001 11:46 PM by saurabh kedia

    xml parser error(XML declaration may only begin entities.)

    saurabh kedia Newbie


      dear sirs,
      while starting server on jboss-2.2(which was working fine a week back when i had last worked on it)..im getting the following error while starting the server.i.e.when the tomcat-test.ear is being deployed..
      are there any jars etc which I need to get installed on my classpath...pls advice
      [J2EE Deployer Default] Starting module tomcat-test.war
      [Container factory] Deploying:file:/C:/jboss-tomcat-2.2/jboss-2.2/tmp/deploy/Default/tomcat-test.ear
      [Container factory] XML declaration may only begin entities.:-1:3
      [Container factory] org.xml.sax.SAXParseException: XML declaration may only begin entities.
      [Container factory] at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3035)
      [Container factory] at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3023)
      [Container factory] at org.apache.crimson.parser.Parser2.maybePI(Parser2.java:957)
      [Container factory] at org.apache.crimson.parser.Parser2.maybeMisc(Parser2.java:1079)
      [Container factory] at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:486)
      [Container factory] at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
      [Container factory] at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
      [Container factory] at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:179)
      [Container factory] at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:86)
      [Container factory] at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:148)
      [Container factory] at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:132)
      [Container factory] at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:117)
      [Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:388)
      [Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:334)
      [Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:275)
      [Container factory] at java.lang.reflect.Method.invoke(Native Method)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Container factory] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:435)
      [Container factory] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178)
      [Container factory] at java.lang.reflect.Method.invoke(Native Method)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Container factory] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358)
      [Container factory] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
      [Container factory] at org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:332)
      [Container factory] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93)
      [Container factory] at java.lang.reflect.Method.invoke(Native Method)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Container factory] at org.jboss.util.ServiceControl.start(ServiceControl.java:97)
      [Container factory] at java.lang.reflect.Method.invoke(Native Method)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Container factory] at org.jboss.Main.(Main.java:203)
      [Container factory] at org.jboss.Main$1.run(Main.java:107)
      [Container factory] at java.security.AccessController.doPrivileged(Native Method)
      [Container factory] at org.jboss.Main.main(Main.java:103)
      [Container factory] org.jboss.ejb.DeploymentException: XML declaration may only begin entities., Cause:org.xml.sax.SAXParseException: XML declaration may only begin entities.
      [Container factory] at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:153)
      [Container factory] at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:132)
      [Container factory] at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:117)
      [Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:388)
      [Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:334)
      [Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:275)
      [Container factory] at java.lang.reflect.Method.invoke(Native Method)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Container factory] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:435)
      [Container factory] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178)
      [Container factory] at java.lang.reflect.Method.invoke(Native Method)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Container factory] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358)
      [Container factory] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
      [Container factory] at org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:332)
      [Container factory] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93)
      [Container factory] at java.lang.reflect.Method.invoke(Native Method)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Container factory] at org.jboss.util.ServiceControl.start(ServiceControl.java:97)
      [Container factory] at java.lang.reflect.Method.invoke(Native Method)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Container factory] at org.jboss.Main.(Main.java:203)
      [Container factory] at org.jboss.Main$1.run(Main.java:107)
      [Container factory] at java.security.AccessController.doPrivileged(Native Method)
      [Container factory] at org.jboss.Main.main(Main.java:103)
      [J2EE Deployer Default] Starting tomcat-test.ear failed!
      [J2EE Deployer Default] Module tomcat-test.ear is not running
      [J2EE Deployer Default] Stopping module tomcat-test.war
      [J2EE Deployer Default] Destroying application tomcat-test.ear
      [Auto deploy] Deployment failed:file:/C:/jboss-tomcat-2.2/jboss-2.2/deploy/tomcat-test.ear
      [Auto deploy] org.jboss.deployment.J2eeDeploymentException: Error while starting tomcat-test.ear: Could not deploy file:/C:/jboss-tomcat-2.2/jboss-2.2/tmp/deploy/Default/tomcat-test.ear
      [Auto deploy] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:441)
      [Auto deploy] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178)
      [Auto deploy] at java.lang.reflect.Method.invoke(Native Method)
      [Auto deploy] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Auto deploy] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Auto deploy] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358)
      [Auto deploy] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
      [Auto deploy] at org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:332)
      [Auto deploy] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93)
      [Auto deploy] at java.lang.reflect.Method.invoke(Native Method)
      [Auto deploy] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Auto deploy] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Auto deploy] at org.jboss.util.ServiceControl.start(ServiceControl.java:97)
      [Auto deploy] at java.lang.reflect.Method.invoke(Native Method)
      [Auto deploy] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Auto deploy] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Auto deploy] at org.jboss.Main.(Main.java:203)
      [Auto deploy] at org.jboss.Main$1.run(Main.java:107)
      [Auto deploy] at java.security.AccessController.doPrivileged(Native Method)
      [Auto deploy] at org.jboss.Main.main(Main.java:103)