4 Replies Latest reply on Oct 3, 2005 9:29 PM by majohnst

    Exploded EAR Deployment Error application.xml not found

    majohnst

      I have been working on an application that involves a HAR and a WAR file. Both of these files deploy and work correctly. I am trying to combine them into one EAR file. Inside my EAR, I have the packaged HAR file and the exploded WAR file. My jboss-app.xml is:

      <jboss-app>
       <module>
       <har>geara.har</har>
       </module>
      </jboss-app>
      


      And my application.xml is
      <application version="1.4"
       xmlns="http://java.sun.com/xml/ns/j2ee"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
       http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
       <display-name>geara</display-name>
       <module>
       <web>
       <web-uri>geara.war</web-uri>
       <context-root/>
       </web>
       </module>
      </application>
      


      When I try to start the server, I get an error that says "No META-INF/application.xml found". Since I am using an exploded EAR, I can see that the application.xml file is in the META-INF directory. Does anyone know what is causing this problem?

        • 1. Re: Exploded EAR Deployment Error application.xml not found
          darranl

          Is the case of the META-INF folder correct?

          • 2. Re: Exploded EAR Deployment Error application.xml not found
            majohnst

            I am testing this on a Windows machine, but yes, META-INF is all capitals.

            • 3. Re: Exploded EAR Deployment Error application.xml not found
              majohnst

              I have fixed part of my problem. I was setting the path to my ear file in the jboss-service.xml using file:/gearapalooza.com/deploy/geara.ear Since my EAR file was exploded, the file url should have been file:/gearapalooza.com/deploy/geara.ear/ <- with a trailing slash.

              Now I have another problem. Within my exploded EAR, I have an exploded WAR. I have tried several similar methods to deploy the WAR file, but I keep getting an error of

              ERROR [ContextConfig] Exception fixing docBase: {0}
              java.util.zip.ZipException: The system cannot find the file specified
               at java.util.zip.ZipFile.open(Native Method)
               at java.util.zip.ZipFile.<init>(Unknown Source)
               at java.util.jar.JarFile.<init>(Unknown Source)
               at java.util.jar.JarFile.<init>(Unknown Source)
               at sun.net.www.protocol.jar.URLJarFile.<init>(Unknown Source)
               at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
               at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
              


              So it is obviously trying to unjar the WAR file. Is there any way to tell it that the WAR file is already exploded?

              • 4. Re: Exploded EAR Deployment Error application.xml not found
                majohnst

                I fixed my own problem. In my context.xml file in the WAR file, I had an improper path that was causing the WAR file to not be deployed.