2 Replies Latest reply on May 5, 2002 8:59 AM by Slava

    Deploing ear throws exception

    Martin Schaefer Newbie

      Hi All

      I have a problem to deply a ear-file which I think is correct. I assume JBoss cannot find a certain file in the meta-data directory, but I cannot figure out which one. The exception is as follows:

      19:56:43,938 INFO [MainDeployer] Starting deployment of package: file:/opt/JBoss300rc2/server/default/deploy/prm-server.ear
      19:56:44,061 INFO [EARDeployer] Init J2EE application: file:/opt/JBoss300rc2/server/default/deploy/prm-server.ear
      19:56:44,190 ERROR [EARDeployer] Error in init step of ear deployment
      19:56:44,298 ERROR [STDERR] java.lang.IllegalArgumentException: InputStream cannot be null
      19:56:44,299 ERROR [STDERR] at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:82)
      19:56:44,300 ERROR [STDERR] at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:260)
      19:56:44,301 ERROR [STDERR] at org.jboss.deployment.EARDeployer.init(EARDeployer.java:101)
      19:56:44,302 ERROR [STDERR] at org.jboss.deployment.MainDeployer.init(MainDeployer.java:570)
      19:56:44,303 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:515)
      19:56:44,304 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:490)
      19:56:44,305 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      19:56:44,306 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      19:56:44,307 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324)
      19:56:44,308 ERROR [STDERR] at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      19:56:44,309 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      19:56:44,310 ERROR [STDERR] at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      19:56:44,311 ERROR [STDERR] at $Proxy4.deploy(Unknown Source)
      19:56:44,312 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:405)
      19:56:44,313 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:586)
      19:56:44,314 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:465)
      19:56:44,315 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:202)
      19:56:44,316 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
      org.jboss.deployment.DeploymentException: InputStream cannot be null; - nested throwable: (java.lang.IllegalArgumentException: InputStream cannot be null)
      at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:283)
      at org.jboss.deployment.EARDeployer.init(EARDeployer.java:101)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:570)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:515)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:490)
      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:491)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy4.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:405)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:586)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:465)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:202)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
      Caused by: java.lang.IllegalArgumentException: InputStream cannot be null
      at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:82)
      at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:260)
      ... 16 more


      The files I have put in the meta-data directory are:
      ejb-jar.xml jboss.xml jbosscmp-jdbc.xml

      Any ideas?

      Thanks!