geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Russell E Glaue <rgl...@cait.org>
Subject Re: Can we deploy a Tomcat Virtual Host GBean with the deployer?
Date Tue, 28 Feb 2012 22:44:45 GMT
Never mind the last error.
Looks like the "initParams" attribute slices the data into a map, and so it is 
really sensitive on how the value is formatted.

This plan does not produce errors.
-
<module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
     <environment>
         <moduleId>
             <groupId>org.example.configs.virtualhosts</groupId>
             <artifactId>virtualhost1</artifactId>
             <version>1.0</version>
             <type>car</type>
         </moduleId>
         <dependencies>
             <dependency>
                 <groupId>org.apache.geronimo.configs</groupId>
                 <artifactId>tomcat7</artifactId>
                 <type>car</type>
             </dependency>
         </dependencies>
         <hidden-classes/>
         <non-overridable-classes/>
     </environment>
     <gbean name="TomcatVirtualHost_1" class="org.apache.geronimo.tomcat.HostGBean">
         <attribute 
name="className">org.apache.catalina.core.StandardHost</attribute>
         <attribute name="initParams">name=virtualhost1.com
                                      appBase=
                                      workDir=work</attribute>
         <reference name="Engine">
             <name>TomcatEngine</name>
         </reference>
     </gbean>
</module>
-


On 02/28/2012 04:35 PM, Russell E Glaue wrote:
> -
> <module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
> <environment>
> <moduleId>
> <groupId>org.example.configs.virtualhosts</groupId>
> <artifactId>virtualhost1</artifactId>
> <version>1.0</version>
> <type>car</type>
> </moduleId>
> <dependencies>
> <dependency>
> <groupId>org.apache.geronimo.configs</groupId>
> <artifactId>tomcat7</artifactId>
> <type>car</type>
> </dependency>
> </dependencies>
> <hidden-classes/>
> <non-overridable-classes/>
> </environment>
> <gbean name="TomcatVirtualHost_1" class="org.apache.geronimo.tomcat.HostGBean">
> <attribute name="className">org.apache.catalina.core.StandardHost</attribute>
> <attribute name="initParams"> <![CDATA[ name=virtualhost1.com appBase=
> workDir=work ]]> </attribute>
> <reference name="Engine">
> <name>TomcatEngine</name>
> </reference>
> </gbean>
> </module>
> -

Mime
View raw message