2 Replies Latest reply on May 31, 2016 3:26 PM by s.santilli

    Can a sub-web.xml be deployed in jboss application?

    s.santilli Newbie

      I am converting a glassfish web application (.war) to be able to deploy it on a jboss (wildfly) server.

      The original glassfish .war contains a sun-web.xml file. I am simply wondering if I'm required to convert the sun-web.xml file before it can be added to the equivalently converted jboss war.

      Stated another way, is the sun-web.xml file compatible with only glassfish servers, or it is also applicable/compatible with jboss?

      Thank-you kindly

        • 1. Re: Can a sub-web.xml be deployed in jboss application?
          Tomaz Cerar Master

          sun-web.xml is only compatible with glassfish (or maybe also some other sun/oracle offering)

          this file has is configuration for non standard features that glassfish provides, or better said that cannot be expressed in web.xml

           

          in JBoss, that file is named jboss-web.xml

           

          when it comes to mapping from one to another it is really hard to tell how to migrate as this files define non server specific configuration that might or might not have equivalent in different server impl.

          • 2. Re: Can a sub-web.xml be deployed in jboss application?
            s.santilli Newbie

            Okay thank-you Tomaz for your reply,

             

            Shot in the dark but my glassfish sun-web.xml has <security-role-mapping> defined ...

             

            <security-role-mapping>

                    <role-name> ... </role-name>

                    <principal-name> ... </principal-name>

                     <principal-name> ... </principal-name>  

            </security-role-mapping>

             

            Does anyone know the equivalent mapping configuration for jboss-web.xml?

             

            Thanks