Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
xml
xml
borderStylesolid
title<sys:environment> example
<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1"
         xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">

    <sys:environment>

        <sys:moduleId>
            <sys:groupId>default</sys:groupId>
            <sys:artifactId>geronimo-web-6</sys:artifactId>
            <sys:version>1.0</sys:version>
            <sys:type>car</sys:type>
        </sys:moduleId>

        <sys:dependencies>
            <sys:dependency>
                <sys:groupId>org.apache.geronimo.configs</sys:groupId>
                <sys:artifactId>tomcat6</sys:artifactId>
                <sys:version>2.2-SNAPSHOT</sys:version>
                <sys:type>car</sys:type>
            </sys:dependency>

            <sys:dependency>
                <sys:groupId>default</sys:groupId>
                <sys:artifactId>geronimo-web-5</sys:artifactId>
                <sys:version>1.0</sys:version>
                <sys:type>car</sys:type>
            </sys:dependency>

            <sys:dependency></sys:dependencies>

        <sys:hidden-classes/>
        <sys:groupId>default</sys:groupId>non-overridable-classes/>
        <sys:inverse-classloading/>
        <sys:artifactId>geronimosuppress-webdefault-4</sys:artifactId>environment/>

                <sys:version>1.0<</sys:version>environment> 
                <sys:type>car</sys:type>
            </sys:dependency>

        </sys:dependencies>

        <sys:hidden-classes/>
        <sys:non-overridable-classes/>
        <sys:inverse-classloading/>
        <sys:suppress-default-environment/>

    </sys:environment> 
   
</web-app>

<context-root>


</web-app>

<context-root>

The <context-root> uses the Geronimo default namespace for a geronimo-web.xml file that is described at http://geronimo.The <context-root> uses the Geronimo default namespace for a geronimo-web.xml file that is described at http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1. This element can be used to provide the web context path of the deployed web application, which appears in the URL used to address the application on a Geronimo server.

...

Code Block
xml
xml
borderStylesolid
title<naming:web-container> example
<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1"
         xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.2"
         xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">

    <sys:environment>

        <sys:moduleId>
            <sys:groupId>default</sys:groupId>
            <sys:artifactId>geronimo-web-6</sys:artifactId>
            <sys:version>1.0</sys:version>
            <sys:type>car</sys:type>
        </sys:moduleId>

        <sys:dependencies>
            <sys:dependency>
                <sys:groupId>org.apache.geronimo.configs</sys:groupId>
                <sys:artifactId>tomcat6</sys:artifactId>
                <sys:version>2.2-SNAPSHOT</sys:version>
                <sys:type>car</sys:type>
            </sys:dependency>

            <sys:dependency>
                <sys:groupId>default</sys:groupId>
                <sys:artifactId>geronimo-web-5</sys:artifactId>
                <sys:version>1.0</sys:version>
                <sys:type>car</sys:type>
            </sys:dependency>

            <sys:dependency></sys:dependencies>

          <sys:hidden-classes/>
        <sys:groupId>default</sys:groupId>non-overridable-classes/>
        <sys:inverse-classloading/>
        <sys:artifactId>geronimosuppress-web-4<default-environment/>

    </sys:artifactId>environment> 

    <context-root>contextroot</web:context-root>

    <work-dir>workdir</web:work-dir>   

     <sys:version>1.0</sys:version><naming:web-container>
        <naming:pattern>
        <sys:type>car</sys:type>    <naming:groupId>gbeanlocator-pattern-groupid</naming:groupId>
            </sys:dependency>

 <naming:artifactId>gbeanlocator-pattern-artifactid</naming:artifactId>
       </sys:dependencies>

        <sys:hidden-classes/>
<naming:version>gbeanlocator-pattern-version</naming:version>
          <sys:non-overridable-classes/>  <naming:module>gbeanlocator-pattern-module</naming:module>
        <sys:inverse-classloading/>    <naming:name>gbeanlocator-pattern-name</naming:name>
        <sys:suppress-default-environment/>
</naming:pattern>
    </sys:environment> 

    <context-root>contextroot</web:context-root>
<naming:gbean-link>gbeanlocator-gbeanlink</naming:gbean-link>
    <work-dir>workdir<</naming:web:work-dir>   

    <naming:web-container>
        <naming:pattern>
            <naming:groupId>gbeanlocator-pattern-groupid</naming:groupId>
            <naming:artifactId>gbeanlocator-pattern-artifactid</naming:artifactId>
            <naming:version>gbeanlocator-pattern-version</naming:version>
            <naming:module>gbeanlocator-pattern-module</naming:module>
            <naming:name>gbeanlocator-pattern-name</naming:name>
        </naming:pattern>
        <naming:gbean-link>gbeanlocator-gbeanlink</naming:gbean-link>
    </naming:web-container>

</web-app>

<container-config>

The <container-config> uses the Geronimo default namespace for a geronimo-web.xml file that is described at http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1Image Removed. This element is used for the configuration of elements specific to the underlying Geronimo web container (i.e., Jetty or Tomcat). An example geronimo-web.xml file is shown below using the <container-config> elements for the Tomcat web container:

-container>

</web-app>

<container-config>

The <container-config> uses the Geronimo default namespace for a geronimo-web.xml file that is described at http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1Image Added. This element is used for the configuration of elements specific to the underlying Geronimo web container (i.e., Jetty or Tomcat). An example geronimo-web.xml file is shown below using the <container-config> elements for the Tomcat web container:

Code Block
xml
xml
borderStylesolid
title<container-config> example

<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1"
Code Block
xmlxml
borderStylesolid
title<container-config> example

<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1"
         xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.2"
         xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">

    <sys:environment>

        <sys:moduleId>
            <sys:groupId>default</sys:groupId>
            <sys:artifactId>geronimo-web-6</sys:artifactId>
            <sys:version>1.0</sys:version>xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.2"
            <sys:type>car</sys:type>
        </sys:moduleId>xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">

        <sys:dependencies>environment>

            <sys:dependency>moduleId>
                <sys:groupId>org.apache.geronimo.configs<<sys:groupId>default</sys:groupId>
                <sys:artifactId>tomcat6<artifactId>geronimo-web-6</sys:artifactId>
                <sys:version>2version>1.2-SNAPSHOT<0</sys:version>
                <sys:type>car</sys:type>
        </sys:moduleId>

        </sys<sys:dependency>dependencies>

            <sys:dependency>
                <sys:groupId>default<groupId>org.apache.geronimo.configs</sys:groupId>
                <sys:artifactId>geronimo-web-5<artifactId>tomcat6</sys:artifactId>
                <sys:version>1version>2.0<2-SNAPSHOT</sys:version>
                <sys:type>car</sys:type>
            </sys:dependency>

            <sys:dependency>
                <sys:groupId>default</sys:groupId>
                <sys:artifactId>geronimo-web-4<5</sys:artifactId>
                <sys:version>1.0</sys:version>
                <sys:type>car</sys:type>
            </sys:dependency>

        </sys:dependencies>

        <sys:hidden-classes/>
        <sys:non-overridable-classes/>
        <sys:inverse-classloading/>
        <sys:suppress-default-environment/>

    </sys:environment> 

    <context-root>contextroot</web:context-root>

    <work-dir>workdir</web:work-dir>   

    <naming:web-container>
        <naming:pattern>
            <naming:groupId>gbeanlocator-pattern-groupid</naming:groupId>
            <naming:artifactId>gbeanlocator-pattern-artifactid</naming:artifactId>
            <naming:version>gbeanlocator-pattern-version</naming:version>
            <naming:module>gbeanlocator-pattern-module</naming:module>
            <naming:name>gbeanlocator-pattern-name</naming:name>
        </naming:pattern>
        <naming:gbean-link>gbeanlocator-gbeanlink</naming:gbean-link>
    </naming:web-container>

    <container-config>
        <tomcat xmlns="http://geronimo.apache.org/xml/ns/web/tomcat/config-1.0">
            <host>testhost.com</host>
            <valve-chain>FirstValve</valve-chain>
            <tomcat-realm>TomcatRealm</tomcat-realm>
        </tomcat>
    </container-config>

</web-app>

...