4 Replies Latest reply on Feb 5, 2004 4:31 AM by neptune5

    Windows v Linux .EAR file deployment ?

    neptune5 Newbie

      Windows2000 V Linux Mandrake.

      Both systems are running the exact same version of jboss3.2.1 and the .ear file
      works ok on Linux but not on Windows2000 ?! The ear file construction should be the
      same under both systems but isn't . Any ideas why ?

      Here is part of the error message:-

      ]Incompletely deployed packages:
      [org.jboss.deployment.DeploymentInfo@e235f50a { url=file:/F:/jboss-3.2.1/server/
      default/deploy/myShop.ear }
      deployer: org.jboss.deployment.EARDeployer@955cd5
      status: Deployment FAILED reason: file:/F:/jboss-3.2.1/server/default/tmp/depl
      oy/server/default/deploy/myShop.ear/23.myShop.ear-contents/webclient.war; - nest
      ed throwable: (java.io.FileNotFoundException: file:/F:/jboss-3.2.1/server/defaul
      state: FAILED
      watch: file:/F:/jboss-3.2.1/server/default/deploy/myShop.ear
      lastDeployed: 1075749293283
      lastModified: 1075749294000

      Structure of ear file:- myShop.ear

      application.xml meta-inf\

      The web.xml file is in the war file. Jboss deploys the ejb's ok.

      Regards Adrian

        • 1. Re: Windows v Linux .EAR file deployment ?
          Erik Sliman Apprentice

          I do not have problems with JBoss 3.2.3 on Windows 2000 with EARs containing WARS. I never tried 3.2.1.

          I recommend testing access to http://localhost:8080/jmx-console or http://localhost:8080/web-console if these applications are still installed. If they fail in 3.2.1, then try 3.2.3. They should run out of the box.

          This helps to eliminate possibilities. If these apps don't run, then the problem probably isn't in your ear. If they do run, then you can start to compare differences.

          • 2. Re: Windows v Linux .EAR file deployment ?
            neptune5 Newbie


            The jmx-console apps work fine on both systems. I'm wondering if the xml files for ejbs are in the wrong place and it can't ffind the path to them.? In fact this has worked before so also wondering whether something has happened to jboss !?

            Does anyone know the proper construction of the .ear file?

            • 3. Re: Windows v Linux .EAR file deployment ?
              Erik Sliman Apprentice

              Here is the EAR jar construction of an app that works on both Linux and Windows and in JBoss 3.2.3:



              The application.xml is probably critical to solving your problem. Note that the META-INF folder must be in upper case.

              Remove the ! from the beginning of taqs in XML here, are only inserted to ensure the XML displays in the forum. The contents of application.xml:

              <?xml version="1.0" encoding="ISO-8859-1"?>
               <!display-name>JoshuaBranch AS<!/display-name>
               <!description>JoshuaBranch AS<!/description>

              The application.xml both tells it the name of the war, which is presumed to be in the root of the ear, and it maps it to a context root. In the above example the web module will be accessible from http://localhost:8080/jbas

              The files in the lib folder of the ear are utility jars, not modules, so they are referenced by the ejb jar's manifest. But that's a bit off topic for your issue.

              Hopefully this helps.

              • 4. Re: Windows v Linux .EAR file deployment ?
                neptune5 Newbie

                Actually I've discovered since that the ear file isn't depoloying under the default server - under jboss but works under the all - server part ? !
                If i swith to run -c all it loads it all up . So therefore the problem is not with the ear file but something in the default setup that causes it not to deploy .