5 Replies Latest reply on Jun 11, 2008 1:12 PM by peterj

    deployment using application.xml

    praveen12brec

      Hi ,

      I am trying to deploy an application in exploded format.
      Jboss tries to scan the ear and automatically deploys my EJB and WEB modules.

      The problem is that, there are certain ejb's which i dont want to deploy as a ejb , but still need them as it service jar(has some api used by my application).

      The other problem is that , my war ends with "_war* and jboss does not regonize this as a war and does not deploy it.

      Can i change this behaviour of jboss and force it to read application of xml and deploy the modules specified in that only ?

        • 1. Re: deployment using application.xml
          jaikiran

          Post the contents of your application.xml file. JBoss follows the contents of the application.xml to deploy the components.

          • 2. Re: deployment using application.xml
            praveen12brec

            hi,

            this is my application.xml.

            apart from deploying the ejb's mentioned here... it also tries to a ejb in the classpath(defined in manifest.mf of one for the ejb's)

            my second problem is jboss does not deploy my ucl_war. if i change it to ucl.war, it deploys without any problem.

            <?xml version="1.0" encoding="UTF-8"?>
            <!DOCTYPE application PUBLIC
            '-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN' 'http://java.sun.com/j2ee/dtds/application_1_2.dtd'>

            <display-name>UCL</display-name>
            UCL description

            ucl_TranLogMgr.jar


            ucl_RouterMgr.jar


            ucl_UCLCommManager.jar


            ucl_WMQITXMLInboundMessageListenerBean.jar


            ucl_UCLMgr.jar



            <web-uri>ucl_war</web-uri>
            <context-root>/</context-root>


            <security-role id="SecurityRole_1">
            UCLUsers
            <role-name>UCLUsers</role-name>
            </security-role>

            • 3. Re: deployment using application.xml
              praveen12brec

              hi,

              this is my application.xml.

              apart from deploying the ejb's mentioned here... it also tries to a ejb in the classpath(defined in manifest.mf of one for the ejb's)

              my second problem is jboss does not deploy my ucl_war. if i change it to ucl.war, it deploys without any problem.

              <?xml version="1.0" encoding="UTF-8"?>
              <!DOCTYPE application PUBLIC
              '-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN' 'http://java.sun.com/j2ee/dtds/application_1_2.dtd'>

              <display-name>UCL</display-name>
              UCL description

              ucl_TranLogMgr.jar


              ucl_RouterMgr.jar


              ucl_UCLCommManager.jar


              ucl_WMQITXMLInboundMessageListenerBean.jar


              ucl_UCLMgr.jar



              <web-uri>ucl_war</web-uri>
              <context-root>/</context-root>


              <security-role id="SecurityRole_1">
              UCLUsers
              <role-name>UCLUsers</role-name>
              </security-role>

              • 4. Re: deployment using application.xml
                praveen12brec

                 

                <?xml version="1.0" encoding="UTF-8"?>
                <!DOCTYPE application PUBLIC
                 '-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN' 'http://java.sun.com/j2ee/dtds/application_1_2.dtd'>
                <application id='UCL'>
                 <display-name>UCL</display-name>
                 <description>UCL description</description>
                 <module>
                 <ejb>ucl_TranLogMgr.jar</ejb>
                 </module>
                 <module>
                 <ejb>ucl_RouterMgr.jar</ejb>
                 </module>
                 <module>
                 <ejb>ucl_UCLCommManager.jar</ejb>
                 </module>
                 <module>
                 <ejb>ucl_WMQITXMLInboundMessageListenerBean.jar</ejb>
                 </module>
                 <module>
                 <ejb>ucl_UCLMgr.jar</ejb>
                 </module>
                 <module>
                 <web>
                 <web-uri>ucl_war</web-uri>
                 <context-root>/</context-root>
                 </web>
                 </module>
                 <security-role id="SecurityRole_1">
                 <description>UCLUsers</description>
                 <role-name>UCLUsers</role-name>
                 </security-role>
                </application>


                • 5. Re: deployment using application.xml
                  peterj

                   

                  praveen12brec wrote:
                  my second problem is jboss does not deploy my ucl_war. if i change it to ucl.war, it deploys without any problem.


                  Applications are deployed based on their extensions. The file (or directory) ucl_war has no extension and thus cannot be deployed. Therefore, you must rename it to ucl.war.