3 Replies Latest reply on Dec 12, 2001 5:24 AM by droman

    upgrading from 2.2 to 2.4.3(What is application.xml ?)

    sk4567

      hey all,
      I'm upgrading from JBoss2.2 to 2.4.3....while deploying EJB's im getting errrors and am unable to deploy the same which are working fine with JBoss2.2.
      my classpath settings seem to be ok..since my default servlets and jsps are running fine...
      Also,
      i read abt the application.xml file..
      pls explain
      regards
      saurabh kedia

        • 1. Re: upgrading from 2.2 to 2.4.3(What is application.xml ?)
          droman

          Hi,

          application.xml is J2EE deployment descriptor for "applications". Application consists of WEB-Archive and EJBs, so in this file you just describe, which *.war and *.jar files are used. Then you package application.xml (in META-INF) with another stuff together to something.ear file (you can do it simply with Ant) and you've got your J2EE application deployable at once.

          Dmitri.

          • 2. Re: upgrading from 2.2 to 2.4.3(What is application.xml ?)
            sk4567

            hey Droman,
            thanks for ur output..
            Please correct me if im wrong..
            to deploy ut ejb's I need to do the following:
            1.package my class files +ejb-jar.xml+jboss.xml+jaws.xml into a jar file.
            2.the xml file are there in the meta-inf of course..
            3.What exactly now goes into the application.xml..??
            do i pack my client(which is a jsp) also into a ear/war file to be includded inthe appplications .xml and where do I place this application.xml...
            Please clarify ,Sir, as the documentation is a bit ambigous....
            regards,
            Sk4567

            • 3. Re: upgrading from 2.2 to 2.4.3(What is application.xml ?)
              droman

              Hi,

              here is a small example of application.xml

              <?xml version="1.0" encoding="ISO-8859-1"?>

              <display-name>MyAllpication</display-name>
              => your web archive here


              <web-uri>mywar.war</web-uri>
              <context-root>/mycontextroot</context-root>


              => your EJB archives here

              myejbs.jar



              structure of myapp.ear file:
              myapp.ear
              |
              |-- META-INF
              | |
              | |-- application.xml
              | |-- manifest.mf
              |
              |-- client.jar client ejb classes
              |-- mywar.war your complete web client
              |-- myejbs.jar your ejbs

              You can also add your JCA connectors via *.rar archives here. Read SUN's J2EE 1.3 reference implementation docs, as I can remember it's documented there.

              Dmitri.