1 Reply Latest reply on Nov 8, 2005 10:31 AM by Adrian Brock

    JBoss error on deploying EJB

    adfs a Newbie

      When I deply my application with EJB I get this error:



      2005-11-07 13:44:50,676 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/app/jbossdes-3.0.6 /server/jbossdes/deploy-caib/hipoa.ear
      2005-11-07 13:44:50,818 INFO [org.jboss.deployment.EARDeployer] Init J2EE
      application: file:/app/jbossdes-3.0.6/server/jbossdes/deploy-caib/hipoa.ear
      2005-11-07 13:44:50,820 ERROR [org.jboss.metadata.XmlFileLoader] Document root element is missing.:-1:1
      org.xml.sax.SAXParseException: Document root element is missing.
      at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3232)
      at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3220)
      at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:535)
      at org.apache.crimson.parser.Parser2.parse(Parser2.java:318)
      at
      org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
      at
      org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:185)
      at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:76)
      at
      org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:257)
      at org.jboss.deployment.EARDeployer.init(EARDeployer.java:103)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:679)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:615)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
      at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at
      org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at
      org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy3.deploy(Unknown Source)
      at
      org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
      at
      org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:561)
      at
      org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:212)
      at
      org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:225)
      at
      org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:202)
      2005-11-07 13:44:50,821 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@4a714843{
      url=file:/app/jbossdes-3.0.6/server/jbossdes/deploy-caib/hipoa.ear,
      deployedLastModified=1131367462000 }
      org.jboss.deployment.DeploymentException: Document root element is missing.; - nested throwable: (org.xml.sax.SAXParseException: Document root element is missing.)
      at
      org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:267)
      at org.jboss.deployment.EARDeployer.init(EARDeployer.java:103)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:679)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:615)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
      at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at
      org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at
      org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy3.deploy(Unknown Source)
      at
      org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
      at
      org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:561)
      at
      org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:212)
      at
      org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:225)
      at
      org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:202)
      Caused by: org.xml.sax.SAXParseException: Document root element is missing.
      at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3232)
      at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3220)
      at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:535)
      at org.apache.crimson.parser.Parser2.parse(Parser2.java:318)
      at
      org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
      at
      org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:185)
      at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:76)
      at
      org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:257)
      ... 16 more
      2005-11-07 13:46:01,179 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/app/jbossdes-3.0.6 /server/jbossdes/deploy-caib/hipoa.ear
      2005-11-07 13:46:01,308 INFO [org.jboss.deployment.EARDeployer] Init J2EE
      application: file:/app/jbossdes-3.0.6/server/jbossdes/deploy-caib/hipoa.ear
      2005-11-07 13:46:01,310 ERROR [org.jboss.metadata.XmlFileLoader] Document root element is missing.:-1:1
      org.xml.sax.SAXParseException: Document root element is missing.
      at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3232)
      at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3220)
      at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:535)
      at org.apache.crimson.parser.Parser2.parse(Parser2.java:318)
      at
      org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
      at
      org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:185)
      at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:76)
      at
      org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:257)
      at org.jboss.deployment.EARDeployer.init(EARDeployer.java:103)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:679)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:615)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
      at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at
      org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at
      org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy3.deploy(Unknown Source)
      at
      org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
      at
      org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:561)
      at
      org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:212)
      at
      org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:225)
      at
      org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:202)
      2005-11-07 13:46:01,311 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@4a714843{
      url=file:/app/jbossdes-3.0.6/server/jbossdes/deploy-caib/hipoa.ear,
      deployedLastModified=1131367489000 }
      org.jboss.deployment.DeploymentException: Document root element is missing.; - nested throwable: (org.xml.sax.SAXParseException: Document root element is missing.)
      at
      org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:267)
      at org.jboss.deployment.EARDeployer.init(EARDeployer.java:103)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:679)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:615)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
      at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at
      org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at
      org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy3.deploy(Unknown Source)
      at
      org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
      at
      org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:561)
      at
      org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:212)
      at
      org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:225)
      at
      org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:202)
      Caused by: org.xml.sax.SAXParseException: Document root element is missing.
      at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3232)
      at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3220)
      at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:535)
      at org.apache.crimson.parser.Parser2.parse(Parser2.java:318)
      at
      org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
      at
      org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:185)
      at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:76)
      at
      org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:257)
      ... 16 more











      What is happening. The application worked perfectly before I added two new EJB and after that I get this error.


      Thanks