1 Reply Latest reply on Oct 31, 2003 6:02 PM by ioparra

    JBoss3.2.2Rc4 unpacked deploy problem

    sysuser1

      We recently upgraded to 3.2.2 (build: CVSTag=JBoss_3_2_2 date=200310182216) and when we do unpacked deployment as


      deploy/,file:../../../../../source/proj.war


      we get following error

      10:42:46,937 INFO [MainDeployer] Starting deployment of package: file:/D:/source/proj.war
      10:42:49,828 INFO [jbossweb] Registered jboss.web:Jetty=0,JBossWebApplicationContext=5,context=/proj
      10:42:49,968 WARN [jbossweb] WARNING: FATAL@null line:0 col:0 : org.xml.sax.SAXParseException: File "file:/D:/source/WEB-INF/web.xml" not found.
      10:42:49,984 WARN [jbossweb] WARNING: Configuration error on file:/D:/source/proj.war
      org.xml.sax.SAXParseException: File "file:/D:/source/WEB-INF/web.xml" not found.
      at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1202)
      at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(DefaultEntityHandler.java:512)
      at org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:312)
      at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1080)
      at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
      at org.mortbay.xml.XmlParser.parse(XmlParser.java:123)
      at org.mortbay.xml.XmlParser.parse(XmlParser.java:138)
      at org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:394)
      at org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.java:85)
      at org.jboss.jetty.JBossWebApplicationContext.start(JBossWebApplicationContext.java:88)
      at org.jboss.jetty.Jetty.deploy(Jetty.java:330)
      at org.jboss.jetty.JettyService.performDeploy(JettyService.java:242)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:428)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)


      The dir structure is D:/source/proj.war/WEB-INF/web.xml but when we move WEB-INF/web.xml to D:/source it deploys. It gets worse when we do unpacked ear deployment as


      deploy/,file:../../../../../source/project.ear


      10:35:46,875 INFO [MainDeployer] Starting deployment of package: file:/D:/source/project.ear
      10:35:46,875 INFO [EARDeployer] Init J2EE application: file:/D:/source/project.ear
      10:35:46,890 ERROR [MainDeployer] Could not initialise deloyment: file:/D:/source/project.ear
      org.jboss.deployment.DeploymentException: No META-INF/application.xml found
      at org.jboss.deployment.EARDeployer.init(EARDeployer.java:63)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:696)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor26.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:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)

      Of course there is D:/source/project.ear/META-INF/application.xml and from the error message, we put META-INF/application.xml in all possible dir on the hard drive but we get the same error message. Now, it has been deploying just fine in JBoss 3.0. So, is this a bug or has something changed in JBoss or J2EE for the way unpacked deploy should work? Any help will be greatly appreciated.

      Thanks,
      Jay