You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jg...@apache.org on 2005/04/25 23:11:51 UTC

svn commit: r164655 - /geronimo/trunk/modules/assembly/src/plan/j2ee-server-tomcat-plan.xml

Author: jgenender
Date: Mon Apr 25 14:11:50 2005
New Revision: 164655

URL: http://svn.apache.org/viewcvs?rev=164655&view=rev
Log:
Support for Engine, Host, and Realms

Modified:
    geronimo/trunk/modules/assembly/src/plan/j2ee-server-tomcat-plan.xml

Modified: geronimo/trunk/modules/assembly/src/plan/j2ee-server-tomcat-plan.xml
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/assembly/src/plan/j2ee-server-tomcat-plan.xml?rev=164655&r1=164654&r2=164655&view=diff
==============================================================================
--- geronimo/trunk/modules/assembly/src/plan/j2ee-server-tomcat-plan.xml (original)
+++ geronimo/trunk/modules/assembly/src/plan/j2ee-server-tomcat-plan.xml Mon Apr 25 14:11:50 2005
@@ -31,6 +31,9 @@
     >
 
     <dependency>
+        <uri>geronimo/jars/geronimo-tomcat-builder-${geronimo_version}.jar</uri>
+    </dependency>
+    <dependency>
         <uri>geronimo/jars/geronimo-tomcat-${geronimo_version}.jar</uri>
     </dependency>
     <dependency>
@@ -91,14 +94,54 @@
         <uri>commons-el/jars/commons-el-${commons_el_version}.jar</uri>
     </dependency>
 
+    <!-- JAAS Geronimo Login Configuration -->
+   <gbean name="tomcat-properties-realm"
+        class="org.apache.geronimo.security.realm.GenericSecurityRealm">
+        <attribute name="realmName">Geronimo</attribute>
+        <attribute name="loginModuleConfiguration">
+LoginModule.1.REQUIRED=geronimo.server:J2EEApplication=null,J2EEModule=org/apache/geronimo/Server,J2EEServer=geronimo,j2eeType=LoginModule,name=properties-login
+        </attribute>
+        <reference name="ServerInfo"><module>org/apache/geronimo/System</module><name>ServerInfo</name></reference>
+    </gbean>
+
     <gbean name="TomcatWebContainer" class="org.apache.geronimo.tomcat.TomcatContainer">
         <attribute name="catalinaHome">var/catalina</attribute>
+        <reference name="engineGBean"><name>TomcatEngine</name></reference>
         <reference name="ServerInfo"><module>org/apache/geronimo/System</module><name>ServerInfo</name></reference>
     </gbean>
 
-    <gbean name="TomcatWebConnector" class="org.apache.geronimo.tomcat.connector.HTTPConnector">
-        <attribute name="port" type="int">8090</attribute>
+    <gbean name="TomcatWebConnector" class="org.apache.geronimo.tomcat.ConnectorGBean">
+        <attribute name="initParams">
+            port=8090
+        </attribute>
         <reference name="TomcatContainer"><name>TomcatWebContainer</name></reference>
+    </gbean>
+
+    <gbean name="TomcatEngine" class="org.apache.geronimo.tomcat.EngineGBean">
+        <attribute name="className">org.apache.geronimo.tomcat.TomcatEngine</attribute>
+        <attribute name="initParams">
+            name=Geronimo
+            defaultHost=localhost
+        </attribute>
+        <reference name="realmGBean"><name>TomcatJAASRealm</name></reference>
+    </gbean>
+
+    <gbean name="TomcatJAASRealm" class="org.apache.geronimo.tomcat.RealmGBean">
+        <attribute name="className">org.apache.geronimo.tomcat.realm.TomcatJAASRealm</attribute>
+        <attribute name="initParams">
+            userClassNames=org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal
+            roleClassNames=org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal
+        </attribute>
+    </gbean>
+
+    <gbean name="TomcatHost" class="org.apache.geronimo.tomcat.HostGBean">
+        <attribute name="className">org.apache.catalina.core.StandardHost</attribute>
+        <attribute name="initParams">
+            name=localhost
+            appBase=
+            workDir=work
+        </attribute>
+        <reference name="engineGBean"><name>TomcatEngine</name></reference>
     </gbean>
 
 </configuration>