geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From de...@apache.org
Subject svn commit: r952535 [23/26] - in /geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins: org.apache.geronimo.j2ee.v11.jaxbmodel/ org.apache.geronimo.j2ee.v11.jaxbmodel/META-INF/ org.apache.geronimo.j2ee.v11.jaxbmodel/src/main/java/org/apache/geronimo...
Date Tue, 08 Jun 2010 04:40:28 GMT
Added: geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/java/org/apache/geronimo/st/v21/core/internal/DependencyManagerTest.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/java/org/apache/geronimo/st/v21/core/internal/DependencyManagerTest.java?rev=952535&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/java/org/apache/geronimo/st/v21/core/internal/DependencyManagerTest.java (added)
+++ geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/java/org/apache/geronimo/st/v21/core/internal/DependencyManagerTest.java Tue Jun  8 04:40:16 2010
@@ -0,0 +1,377 @@
+///*
+// * Licensed to the Apache Software Foundation (ASF) under one or more
+// * contributor license agreements.  See the NOTICE file distributed with
+// * this work for additional information regarding copyright ownership.
+// * The ASF licenses this file to You under the Apache License, Version 2.0
+// * (the "License"); you may not use this file except in compliance with
+// * the License.  You may obtain a copy of the License at
+// *
+// *    http://www.apache.org/licenses/LICENSE-2.0
+// *
+// * Unless required by applicable law or agreed to in writing, software
+// * distributed under the License is distributed on an "AS IS" BASIS,
+// * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// * See the License for the specific language governing permissions and
+// * limitations under the License.
+// */
+//
+//package org.apache.geronimo.st.v21.core.internal;
+//
+//import java.util.HashSet;
+//import java.util.Set;
+//
+//import junit.framework.TestCase;
+//
+//import org.apache.geronimo.jee.deployment.Artifact;
+//import org.apache.geronimo.jee.deployment.ObjectFactory;
+//
+///**
+// * <b>DependencyManagerTest</b> is used to test various inter-dependencies between artifacts that
+// * are used to represent Geronimo-specific deployment plans<p>
+// * 
+// * @version $Rev: 658553 $ $Date: 2008-05-21 12:55:52 +0800 (Wed, 21 May 2008) $ 
+// */
+//public class DependencyManagerTest extends TestCase {
+//
+//    private DependencyManager dm = new DependencyManager();
+//    private ObjectFactory deploymentFactory = new ObjectFactory();
+//
+//    // 
+//    // Instantiate some artifacts
+//    // 
+//    private Artifact artifact1 = deploymentFactory.createArtifact();
+//    private Artifact artifact2 = deploymentFactory.createArtifact();
+//    private Artifact artifact3 = deploymentFactory.createArtifact();
+//    private Artifact artifact4 = deploymentFactory.createArtifact();
+//    private Artifact artifact5 = deploymentFactory.createArtifact();
+//    private Artifact artifact6 = deploymentFactory.createArtifact();
+//    private Artifact artifact7 = deploymentFactory.createArtifact();
+//    private Artifact artifact8 = deploymentFactory.createArtifact();
+//    private Artifact artifact9 = deploymentFactory.createArtifact();
+//
+//
+//    protected void setUp() {
+//
+//        // 
+//        // Set the artifacts to a known state before each testcase
+//        // 
+//        artifact1.setGroupId("org.apache.geronimo.groupid1");
+//        artifact1.setArtifactId("artifactid1");
+//        artifact1.setVersion("version1");
+//        artifact1.setType("war");
+//
+//        artifact2.setGroupId("org.apache.geronimo.groupid2");
+//        artifact2.setArtifactId("artifactid2");
+//        artifact2.setVersion("version2");
+//        artifact2.setType("ear");
+//
+//        artifact3.setGroupId("org.apache.geronimo.groupid3");
+//        artifact3.setArtifactId("artifactid3");
+//        artifact3.setVersion("version3");
+//        artifact3.setType("rar");
+//
+//        artifact4.setGroupId("org.apache.geronimo.groupid4");
+//        artifact4.setArtifactId("artifactid4");
+//        artifact4.setVersion("version4");
+//        artifact4.setType("jar");
+//
+//        artifact5.setGroupId("org.apache.geronimo.groupid5");
+//        artifact5.setArtifactId("artifactid5");
+//        artifact5.setVersion("version5");
+//        artifact5.setType("war");
+//
+//        artifact6.setGroupId(null);
+//        artifact6.setArtifactId("artifactid6");
+//        artifact6.setVersion("version6");
+//        artifact6.setType("ear");
+//
+//        artifact7.setGroupId("org.apache.geronimo.groupid7");
+//        artifact7.setArtifactId(null);
+//        artifact7.setVersion("version7");
+//        artifact7.setType("rar");
+//
+//        artifact8.setGroupId("org.apache.geronimo.groupid8");
+//        artifact8.setArtifactId("artifactid8");
+//        artifact8.setVersion(null);
+//        artifact8.setType("war");
+//
+//        artifact9.setGroupId("org.apache.geronimo.groupid9");
+//        artifact9.setArtifactId("artifactid9");
+//        artifact9.setVersion("version9");
+//        artifact9.setType(null);
+//
+//        // 
+//        // Set the dependency manager to a known state between each testcase
+//        // 
+//        dm.close();
+//    }
+//
+//
+//    /*--------------------------------------------------------------------------------------------*\
+//    |                                                                                              |
+//    |  Testcase(s)                                                                                 |
+//    |                                                                                              |
+//    \*--------------------------------------------------------------------------------------------*/ 
+//
+//    public void testSimple() {
+//
+//        dm.addDependency(artifact1,artifact2);
+//
+//        Set children = dm.getChildren(artifact1);
+//        assertEquals(children.size(),0);
+//
+//        children = dm.getChildren(artifact2);
+//        assertEquals(children.size(),1);
+//        assertTrue(children.contains(artifact1));
+//
+//        Set parents = dm.getParents(artifact1);
+//        assertEquals(parents.size(),1);
+//        assertTrue(parents.contains(artifact2));
+//
+//        parents = dm.getParents(artifact2);
+//        assertEquals(parents.size(),0);
+//    }
+//
+//    public void testSingleParent() {
+//
+//        dm.addDependency(artifact2,artifact1);
+//        dm.addDependency(artifact3,artifact1);
+//        dm.addDependency(artifact4,artifact1);
+//        dm.addDependency(artifact5,artifact1);
+//        dm.addDependency(artifact6,artifact1);
+//        dm.addDependency(artifact7,artifact1);
+//        dm.addDependency(artifact8,artifact1);
+//        dm.addDependency(artifact9,artifact1);
+//        dm.addDependency(artifact9,artifact1);          // Must not change the number of children
+//
+//        Set children = dm.getChildren(artifact1);
+//        assertEquals(children.size(),8);
+//        assertTrue(children.contains(artifact2));
+//        assertTrue(children.contains(artifact3));
+//        assertTrue(children.contains(artifact4));
+//        assertTrue(children.contains(artifact5));
+//        assertTrue(children.contains(artifact6));
+//        assertTrue(children.contains(artifact7));
+//        assertTrue(children.contains(artifact8));
+//        assertTrue(children.contains(artifact9));   
+//
+//        Set parents = dm.getParents(artifact9);
+//        assertEquals(parents.size(),1);
+//        assertTrue(parents.contains(artifact1));
+//
+//        dm.removeDependency(artifact9,artifact1); 
+//        children = dm.getChildren(artifact1);
+//        assertEquals(children.size(),7);
+//        assertTrue(children.contains(artifact2));
+//        assertTrue(children.contains(artifact3));
+//        assertTrue(children.contains(artifact4));
+//        assertTrue(children.contains(artifact5));
+//        assertTrue(children.contains(artifact6));
+//        assertTrue(children.contains(artifact7));
+//        assertTrue(children.contains(artifact8));
+//
+//        parents = dm.getParents(artifact9);
+//        assertEquals(parents.size(),0);
+//
+//        dm.removeAllDependencies(artifact7); 
+//        children = dm.getChildren(artifact1);
+//        assertEquals(children.size(),6);
+//        assertTrue(children.contains(artifact2));
+//        assertTrue(children.contains(artifact3));
+//        assertTrue(children.contains(artifact4));
+//        assertTrue(children.contains(artifact5));
+//        assertTrue(children.contains(artifact6));
+//        assertTrue(children.contains(artifact8));
+//
+//        dm.removeDependency(artifact7,artifact1); 
+//        children = dm.getChildren(artifact1);
+//        assertEquals(children.size(),6);
+//
+//        children = dm.getChildren(artifact2);
+//        assertEquals(children.size(),0);
+//
+//        dm.removeAllDependencies(artifact5); 
+//        children = dm.getChildren(artifact1);
+//        assertEquals(children.size(),5);
+//        assertTrue(children.contains(artifact2));
+//        assertTrue(children.contains(artifact3));
+//        assertTrue(children.contains(artifact4));
+//        assertTrue(children.contains(artifact6));
+//        assertTrue(children.contains(artifact8));
+//
+//        dm.removeAllDependencies(artifact1); 
+//        dm.removeAllDependencies(artifact2); 
+//        dm.removeAllDependencies(artifact3); 
+//        dm.removeAllDependencies(artifact4); 
+//        dm.removeAllDependencies(artifact5); 
+//        dm.removeAllDependencies(artifact6); 
+//        dm.removeAllDependencies(artifact7); 
+//        dm.removeAllDependencies(artifact8); 
+//        dm.removeAllDependencies(artifact9); 
+//        dm.removeDependency(artifact1,artifact1); 
+//        dm.removeDependency(artifact2,artifact1); 
+//        dm.removeDependency(artifact3,artifact1); 
+//        dm.removeDependency(artifact4,artifact1); 
+//        dm.removeDependency(artifact5,artifact1); 
+//        dm.removeDependency(artifact6,artifact1); 
+//        dm.removeDependency(artifact7,artifact1); 
+//        dm.removeDependency(artifact8,artifact1); 
+//        dm.removeDependency(artifact7,artifact1); 
+//
+//        children = dm.getChildren(artifact1);
+//        assertEquals(children.size(),0);
+//        children = dm.getChildren(artifact2);
+//        assertEquals(children.size(),0);
+//        children = dm.getChildren(artifact3);
+//        assertEquals(children.size(),0);
+//        children = dm.getChildren(artifact4);
+//        assertEquals(children.size(),0);
+//        children = dm.getChildren(artifact5);
+//        assertEquals(children.size(),0);
+//        children = dm.getChildren(artifact6);
+//        assertEquals(children.size(),0);
+//        children = dm.getChildren(artifact7);
+//        assertEquals(children.size(),0);
+//        children = dm.getChildren(artifact8);
+//        assertEquals(children.size(),0);
+//        children = dm.getChildren(artifact9);
+//        assertEquals(children.size(),0);
+//    }
+//
+//    public void testMultipleParents() throws Exception {
+//
+//        dm.addDependency(artifact1,artifact2);
+//        dm.addDependency(artifact1,artifact3);
+//        dm.addDependency(artifact1,artifact4);
+//        dm.addDependency(artifact1,artifact5);
+//        dm.addDependency(artifact1,artifact6);
+//        dm.addDependency(artifact1,artifact7);
+//        dm.addDependency(artifact1,artifact8);
+//        dm.addDependency(artifact1,artifact9);
+//        dm.addDependency(artifact1,artifact9);          // Must not change the number of parents
+//
+//        Set parents = dm.getParents(artifact1);
+//        assertEquals(parents.size(),8);
+//        assertTrue(parents.contains(artifact2));
+//        assertTrue(parents.contains(artifact3));
+//        assertTrue(parents.contains(artifact4));
+//        assertTrue(parents.contains(artifact5));
+//        assertTrue(parents.contains(artifact6));
+//        assertTrue(parents.contains(artifact7));
+//        assertTrue(parents.contains(artifact8));
+//        assertTrue(parents.contains(artifact9));   
+//
+//        dm.removeAllDependencies(artifact1); 
+//        parents = dm.getParents(artifact1);
+//        assertEquals(parents.size(),0);
+//        Set children = dm.getChildren(artifact1);
+//        assertEquals(children.size(),0);
+//
+//        dm.addDependency(artifact1,artifact2);
+//        dm.addDependency(artifact1,artifact3);
+//        dm.addDependency(artifact1,artifact4);
+//        dm.addDependency(artifact1,artifact5);
+//        dm.addDependency(artifact6,artifact7);
+//        dm.addDependency(artifact6,artifact8);
+//        dm.addDependency(artifact6,artifact9);
+//        parents = dm.getParents(artifact1);
+//        assertEquals(parents.size(),4);
+//        assertTrue(parents.contains(artifact2));
+//        assertTrue(parents.contains(artifact3));
+//        assertTrue(parents.contains(artifact4));
+//        assertTrue(parents.contains(artifact5));
+//        parents = dm.getParents(artifact6);
+//        assertEquals(parents.size(),3);
+//        assertTrue(parents.contains(artifact7));
+//        assertTrue(parents.contains(artifact8));
+//        assertTrue(parents.contains(artifact9));
+//
+//        Set parentSet = new HashSet();
+//        parentSet.add(artifact2);
+//        parentSet.add(artifact3);
+//        parentSet.add(artifact4);
+//        parentSet.add(artifact5);
+//        parentSet.add(artifact6);
+//        parentSet.add(artifact7);
+//        parentSet.add(artifact8);
+//        parentSet.add(artifact9);
+//        dm.addDependencies(artifact1,parentSet);
+//        parents = dm.getParents(artifact1);
+//        assertEquals(parents.size(),8);
+//        assertTrue(parents.contains(artifact2));
+//        assertTrue(parents.contains(artifact3));
+//        assertTrue(parents.contains(artifact4));
+//        assertTrue(parents.contains(artifact5));
+//        assertTrue(parents.contains(artifact6));
+//        assertTrue(parents.contains(artifact7));
+//        assertTrue(parents.contains(artifact8));
+//        assertTrue(parents.contains(artifact9));   
+//    }
+//
+//    public void testMultipleChildrenAndParents() throws Exception {
+//
+//        dm.addDependency(artifact1,artifact2);
+//        dm.addDependency(artifact1,artifact3);
+//        dm.addDependency(artifact1,artifact4);
+//        dm.addDependency(artifact1,artifact5);
+//        dm.addDependency(artifact6,artifact9);
+//        dm.addDependency(artifact7,artifact9);
+//        dm.addDependency(artifact8,artifact9);
+//
+//        Set parents = dm.getParents(artifact1);
+//        assertEquals(parents.size(),4);
+//        assertTrue(parents.contains(artifact2));
+//        assertTrue(parents.contains(artifact3));
+//        assertTrue(parents.contains(artifact4));
+//        assertTrue(parents.contains(artifact5));
+//
+//        Set children = dm.getChildren(artifact9);
+//        assertEquals(children.size(),3);
+//        assertTrue(children.contains(artifact6));
+//        assertTrue(children.contains(artifact7));
+//        assertTrue(children.contains(artifact8));
+//    }
+//
+//    public void testCircularDependency() throws Exception {
+//
+//        dm.addDependency(artifact1,artifact1);
+//        Set children = dm.getChildren(artifact1);
+//        Set parents = dm.getParents(artifact1);
+//        assertEquals(children.size(),1);
+//        assertTrue(children.contains(artifact1));
+//        assertEquals(parents.size(),1);
+//        assertTrue(parents.contains(artifact1));
+//
+//        dm.addDependency(artifact2,artifact2);
+//        children = dm.getChildren(artifact2);
+//        parents = dm.getParents(artifact2);
+//        assertEquals(children.size(),1);
+//        assertTrue(children.contains(artifact2));
+//        assertEquals(parents.size(),1);
+//        assertTrue(parents.contains(artifact2));
+//
+//        dm.close();
+//
+//        dm.addDependency(artifact2,artifact1);
+//        dm.addDependency(artifact3,artifact2);
+//        dm.addDependency(artifact4,artifact3);
+//        dm.addDependency(artifact5,artifact4);
+//        dm.addDependency(artifact6,artifact5);
+//        dm.addDependency(artifact7,artifact6);
+//        dm.addDependency(artifact8,artifact7);
+//        dm.addDependency(artifact9,artifact8);
+//        dm.addDependency(artifact1,artifact9);
+//        children = dm.getChildren(artifact1);
+//        parents = dm.getParents(artifact1);
+//        assertEquals(children.size(),1);
+//        assertTrue(children.contains(artifact2));
+//        assertEquals(parents.size(),1);
+//        assertTrue(parents.contains(artifact9));
+//        children = dm.getChildren(artifact2);
+//        parents = dm.getParents(artifact3);
+//        assertEquals(children.size(),1);
+//        assertTrue(children.contains(artifact3));
+//        assertEquals(parents.size(),1);
+//        assertTrue(parents.contains(artifact2));
+//    }
+//}

Added: geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-application-example-1.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-application-example-1.xml?rev=952535&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-application-example-1.xml (added)
+++ geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-application-example-1.xml Tue Jun  8 04:40:16 2010
@@ -0,0 +1,182 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+     http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<!-- @version $Rev: 658553 $ $Date: 2008-05-21 12:55:52 +0800 (Wed, 21 May 2008) $ -->
+
+<application xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-2.0">
+
+    <environment xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
+        <moduleId>
+            <groupId>default</groupId>
+            <artifactId>geronimo-app-1</artifactId>
+            <version>2.2</version>
+            <type>ear</type>
+        </moduleId>
+        <dependencies>
+            <dependency>
+                <groupId>org.apache.geronimo.configs</groupId>
+                <artifactId>system-database</artifactId>
+                <type>car</type>
+            </dependency>
+        </dependencies>
+    </environment>
+
+    <module>
+        <connector>tranql.rar</connector>
+        <connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2">
+            <resourceadapter>
+                <outbound-resourceadapter>
+                    <connection-definition>
+                        <connectionfactory-interface>javax.sql.DataSource</connectionfactory-interface>
+                        <connectiondefinition-instance>
+                            <name>cmsds</name>
+                            <!--<config-property-setting name="UserName"></config-property-setting>-->
+                            <!--<config-property-setting name="Password"></config-property-setting>-->
+                            <config-property-setting name="DatabaseName">TestDatabase</config-property-setting>
+                            <config-property-setting name="CreateDatabase">false</config-property-setting>
+                            <connectionmanager>
+                                <container-managed-security/>
+                                <xa-transaction>
+                                    <transaction-caching/>
+                                </xa-transaction>
+                                <single-pool>
+                                    <max-size>10</max-size>
+                                    <blocking-timeout-milliseconds>5000</blocking-timeout-milliseconds>
+                                    <select-one-assume-match/>
+                                </single-pool>
+                            </connectionmanager>
+                        </connectiondefinition-instance>
+                        <connectiondefinition-instance>
+                            <name>configuredsecurityds</name>
+                            <config-property-setting name="UserName">system</config-property-setting>
+                            <config-property-setting name="Password">manager</config-property-setting>
+                            <config-property-setting name="DatabaseName">TestDatabase</config-property-setting>
+                            <config-property-setting name="CreateDatabase">true</config-property-setting>
+                            <connectionmanager>
+                                <xa-transaction>
+                                    <transaction-caching/>
+                                </xa-transaction>
+                                <single-pool>
+                                    <max-size>10</max-size>
+                                    <blocking-timeout-milliseconds>5000</blocking-timeout-milliseconds>
+                                    <select-one-assume-match/>
+                                </single-pool>
+                            </connectionmanager>
+                        </connectiondefinition-instance>
+                    </connection-definition>
+                </outbound-resourceadapter>
+            </resourceadapter>
+            <gbean name="test-cms-realm" class="org.apache.geronimo.security.realm.GenericSecurityRealm">
+                <attribute name="realmName">test-cms-realm</attribute>
+                <xml-reference name="LoginModuleConfiguration" xmlns:lc="http://geronimo.apache.org/xml/ns/loginconfig-1.1">
+                    <lc:login-config>
+                        <lc:login-module-ref control-flag="REQUIRED">
+                            <lc:pattern>
+                                <name xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">test-cms-credentials
+                                </name>
+                            </lc:pattern>
+                        </lc:login-module-ref>
+                        <lc:login-module control-flag="REQUIRED" wrap-principals="false">
+                            <lc:login-domain-name>test-app-credentials</lc:login-domain-name>
+                            <lc:login-module-class>org.apache.geronimo.security.realm.providers.PropertiesFileLoginModule</lc:login-module-class>
+                            <lc:option name="usersURI">var/security/demo_users.properties</lc:option>
+                            <lc:option name="groupsURI">var/security/demo_groups.properties</lc:option>
+                        </lc:login-module>
+                    </lc:login-config>
+                </xml-reference>
+                <reference name="ServerInfo">
+                    <name>ServerInfo</name>
+                </reference>
+            </gbean>
+            <gbean name="test-cms-credentials"
+                   class="org.apache.geronimo.connector.outbound.security.PasswordCredentialLoginModuleWrapperGBean">
+                <attribute name="loginModuleClass">
+                    org.apache.geronimo.connector.outbound.security.CallerIdentityPasswordCredentialLoginModule
+                </attribute>
+                <reference name="ManagedConnectionFactoryWrapper">
+                    <name>cmsds</name>
+                </reference>
+                <attribute name="loginDomainName">test-cms-credentials</attribute>
+            </gbean>
+        </connector>
+    </module>
+                
+    <module>
+        <web>web.war</web>
+        <web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0">
+            <security-realm-name>test-cms-realm</security-realm-name>
+            <security xmlns="http://geronimo.apache.org/xml/ns/security-2.0">
+                <credential-store-ref>
+                    <name xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">test-credential-store</name>
+                </credential-store-ref>
+                <default-subject>
+                    <realm>test-cms-realm</realm>
+                    <id>test</id>
+                </default-subject>
+                <role-mappings>
+                    <role role-name="test">
+                        <principal class="org.apache.geronimo.connector.outbound.security.ResourcePrincipal" name="george"/>
+                    </role>
+                    <role role-name="fail">
+                        <run-as-subject>
+                            <realm>test-cms-realm</realm>
+                            <id>fail</id>
+                        </run-as-subject>
+                    </role>
+                </role-mappings>
+            </security>
+        </web-app>
+    </module>
+                
+    <gbean name="test-credential-store" class="org.apache.geronimo.security.credentialstore.SimpleCredentialStoreImpl">
+        <xml-attribute name="credentialStore">
+            <credential-store xmlns="http://geronimo.apache.org/xml/ns/credentialstore-1.0">
+                <realm name="test-cms-realm">
+                    <subject>
+                        <id>test</id>
+                        <credential>
+                            <type>org.apache.geronimo.security.credentialstore.NameCallbackHandler</type>
+                            <value>george</value>
+                        </credential>
+                        <credential>
+                            <type>org.apache.geronimo.security.credentialstore.PasswordCallbackHandler</type>
+                            <value>bone</value>
+                        </credential>
+                    </subject>
+                    <subject>
+                        <id>fail</id>
+                        <credential>
+                            <type>org.apache.geronimo.security.credentialstore.NameCallbackHandler</type>
+                            <value>gracie</value>
+                        </credential>
+                        <credential>
+                            <type>org.apache.geronimo.security.credentialstore.PasswordCallbackHandler</type>
+                            <value>biscuit</value>
+                        </credential>
+                    </subject>
+                </realm>
+            </credential-store>
+        </xml-attribute>
+        <dependency>
+            <name>test-cms-realm</name>
+        </dependency>
+    </gbean>
+                
+</application>

Added: geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-ra-example-11.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-ra-example-11.xml?rev=952535&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-ra-example-11.xml (added)
+++ geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-ra-example-11.xml Tue Jun  8 04:40:16 2010
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+     http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<!-- @version $Rev: 658553 $ $Date: 2008-05-21 12:55:52 +0800 (Wed, 21 May 2008) $ -->
+
+<rar:connector xmlns:rar="http://geronimo.apache.org/xml/ns/j2ee/connector-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-ra-2</sys:artifactId>
+            <sys:version>1.0</sys:version>
+            <sys:type>car</sys:type>
+        </sys:moduleId>
+
+        <sys:dependencies>
+            <sys:dependency>
+                <sys:groupId>org.apache.derby</sys:groupId>
+                <sys:artifactId>derby</sys:artifactId>
+                <sys:type>jar</sys:type>
+            </sys:dependency>
+            <sys:dependency>
+                <sys:groupId>default</sys:groupId>
+                <sys:artifactId>openejb-jar-2</sys:artifactId>
+                <sys:version>2.0</sys:version>
+                <sys:type>ear</sys:type>
+            </sys:dependency>
+        </sys:dependencies>
+    </sys:environment>
+
+    <rar:resourceadapter>
+        <rar:outbound-resourceadapter>
+            <rar:connection-definition>
+                <rar:connectionfactory-interface>javax.sql.DataSource</rar:connectionfactory-interface>
+                <rar:connectiondefinition-instance>
+                    <rar:name>RARDBDatasource-1_3</rar:name>
+                    <rar:config-property-setting name="Password"/>
+                    <rar:config-property-setting name="LoginTimeout"/>
+                    <rar:config-property-setting name="DatabaseName">DefaultDB-1_3</rar:config-property-setting>
+                    <rar:config-property-setting name="UserName"/>
+                    <rar:config-property-setting name="ShutdownDatabase"/>
+                    <rar:connectionmanager>
+                        <rar:local-transaction/>
+                        <rar:single-pool>
+                            <rar:max-size>15</rar:max-size>
+                            <rar:min-size>5</rar:min-size>
+                            <rar:blocking-timeout-milliseconds>500</rar:blocking-timeout-milliseconds>
+                            <rar:idle-timeout-minutes>15</rar:idle-timeout-minutes>
+                            <rar:match-one/>
+                        </rar:single-pool>
+                    </rar:connectionmanager>
+                </rar:connectiondefinition-instance>
+            </rar:connection-definition>
+        </rar:outbound-resourceadapter>
+    </rar:resourceadapter>
+
+</rar:connector>

Added: geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-ra-example-2.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-ra-example-2.xml?rev=952535&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-ra-example-2.xml (added)
+++ geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-ra-example-2.xml Tue Jun  8 04:40:16 2010
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+     http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<!-- @version $Rev: 658553 $ $Date: 2008-05-21 12:55:52 +0800 (Wed, 21 May 2008) $ -->
+
+<rar:connector xmlns:rar="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2" xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
+
+    <sys:environment>
+        <sys:dependencies>
+            <sys:dependency>
+                <sys:groupId>org.apache.derby</sys:groupId>
+                <sys:artifactId>derby</sys:artifactId>
+                <sys:type>jar</sys:type>
+            </sys:dependency>
+            <sys:dependency>
+                <sys:groupId>default</sys:groupId>
+                <sys:artifactId>openejb-jar-2</sys:artifactId>
+                <sys:version>2.0</sys:version>
+                <sys:type>ear</sys:type>
+            </sys:dependency>
+        </sys:dependencies>
+    </sys:environment>
+
+    <rar:resourceadapter>
+        <rar:outbound-resourceadapter>
+            <rar:connection-definition>
+                <rar:connectionfactory-interface>javax.sql.DataSource</rar:connectionfactory-interface>
+                <rar:connectiondefinition-instance>
+                    <rar:name>RARDBDatasource-1_3</rar:name>
+                    <rar:config-property-setting name="Password"/>
+                    <rar:config-property-setting name="LoginTimeout"/>
+                    <rar:config-property-setting name="DatabaseName">DefaultDB-1_3</rar:config-property-setting>
+                    <rar:config-property-setting name="UserName"/>
+                    <rar:config-property-setting name="ShutdownDatabase"/>
+                    <rar:connectionmanager>
+                        <rar:local-transaction/>
+                        <rar:single-pool>
+                            <rar:max-size>15</rar:max-size>
+                            <rar:min-size>5</rar:min-size>
+                            <rar:blocking-timeout-milliseconds>500</rar:blocking-timeout-milliseconds>
+                            <rar:idle-timeout-minutes>15</rar:idle-timeout-minutes>
+                            <rar:match-one/>
+                        </rar:single-pool>
+                    </rar:connectionmanager>
+                </rar:connectiondefinition-instance>
+            </rar:connection-definition>
+        </rar:outbound-resourceadapter>
+    </rar:resourceadapter>
+
+</rar:connector>

Added: geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-web-example-12.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-web-example-12.xml?rev=952535&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-web-example-12.xml (added)
+++ geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-web-example-12.xml Tue Jun  8 04:40:16 2010
@@ -0,0 +1,112 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+
+<!-- @version $Rev: 661911 $ $Date: 2008-05-31 07:12:18 +0800 (Sat, 31 May 2008) $ -->
+
+<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1" xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.2" xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0" xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
+
+    <sys:environment>
+        <sys:moduleId>
+            <sys:groupId>default</sys:groupId>
+            <sys:artifactId>geronimo-web-7</sys:artifactId>
+            <sys:version>1.0</sys:version>
+            <sys:type>car</sys:type>
+        </sys:moduleId>
+        <sys:dependencies>
+            <sys:dependency>
+                <sys:groupId>default</sys:groupId>
+                <sys:artifactId>geronimo-web-7</sys:artifactId>
+                <sys:version>1.0</sys:version>
+                <sys:type>car</sys:type>
+            </sys:dependency>
+        </sys:dependencies>
+    </sys:environment>
+
+    <context-root>/admin</context-root>
+
+    <web-container>
+        <gbean-link>TomcatAdminWebContainer</gbean-link>
+    </web-container>
+
+    <gbean name="TomcatAdminWebContainer" class="org.apache.geronimo.tomcat.TomcatContainer">
+        <attribute name="catalinaHome">var/catalina</attribute>
+        <reference name="EngineGBean">
+            <name>TomcatAdminEngine</name>
+        </reference>
+        <reference name="ServerInfo">
+            <name>ServerInfo</name>
+        </reference>
+        <reference name="WebManager">
+            <name>TomcatWebManager</name>
+        </reference>
+    </gbean>
+
+    <gbean name="TomcatAdminWebConnector" class="org.apache.geronimo.tomcat.connector.Http11ConnectorGBean">
+        <attribute name="name">HTTP</attribute>
+        <attribute name="host">localhost</attribute>
+        <attribute name="port">8084</attribute>
+        <attribute name="maxHttpHeaderSize">8192</attribute>
+        <attribute name="maxThreads">150</attribute>
+        <attribute name="minSpareThreads">25</attribute>
+        <attribute name="maxSpareThreads">75</attribute>
+        <attribute name="enableLookups">false</attribute>
+        <attribute name="redirectPort">8443</attribute>
+        <attribute name="acceptCount">100</attribute>
+        <attribute name="connectionTimeout">20000</attribute>
+        <attribute name="disableUploadTimeout">true</attribute>
+        <reference name="TomcatContainer">
+            <name>TomcatAdminWebContainer</name>
+        </reference>
+        <reference name="ServerInfo">
+            <name>ServerInfo</name>
+        </reference>
+        <dependency>
+            <name>default/zadmin/1.0/car</name>
+        </dependency>
+    </gbean>
+
+    <gbean name="TomcatAdminEngine" class="org.apache.geronimo.tomcat.EngineGBean">
+        <attribute name="className">org.apache.geronimo.tomcat.TomcatEngine</attribute>
+        <attribute name="initParams">
+          name=GeronimoAdmin
+        </attribute>
+        <reference name="DefaultHost">
+            <name>TomcatAdminHost</name>
+        </reference>
+        <references name="Hosts">
+            <pattern>
+                <name>TomcatAdminHost</name>
+            </pattern>
+        </references>
+        <reference name="RealmGBean">
+            <name>TomcatJAASRealm</name>
+        </reference>
+    </gbean>
+
+    <gbean name="TomcatAdminHost" class="org.apache.geronimo.tomcat.HostGBean">
+        <attribute name="className">org.apache.catalina.core.StandardHost</attribute>
+        <attribute name="initParams">
+          name=admin
+          appBase=
+          workDir=work
+        </attribute>
+    </gbean>
+
+
+
+</web-app>

Added: geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-web-example-13.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-web-example-13.xml?rev=952535&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-web-example-13.xml (added)
+++ geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-web-example-13.xml Tue Jun  8 04:40:16 2010
@@ -0,0 +1,130 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+
+<!-- @version $Rev: 661911 $ $Date: 2008-05-31 07:12:18 +0800 (Sat, 31 May 2008) $ -->
+
+<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1" xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.2" xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0" xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
+
+    <sys:environment>
+        <sys:moduleId>
+            <sys:groupId>default</sys:groupId>
+            <sys:artifactId>geronimo-web-8</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:groupId>default</sys:groupId>
+                <sys:artifactId>geronimo-web-4</sys:artifactId>
+                <sys:version>1.0</sys:version>
+                <sys:type>car</sys:type>
+            </sys:dependency>
+            <sys:dependency>
+                <sys:groupId>default</sys:groupId>
+                <sys:artifactId>geronimo-web-7</sys:artifactId>
+                <sys:version>1.0</sys:version>
+                <sys:type>car</sys:type>
+            </sys:dependency>
+        </sys:dependencies>
+    </sys:environment>
+
+    <context-root>/admin</context-root>
+
+    <web-container>
+        <gbean-link>TomcatAdminWebContainer</gbean-link>
+    </web-container>
+
+    <gbean name="TomcatAdminWebContainer" class="org.apache.geronimo.tomcat.TomcatContainer">
+        <attribute name="catalinaHome">var/catalina</attribute>
+        <reference name="EngineGBean">
+            <name>TomcatAdminEngine</name>
+        </reference>
+        <reference name="ServerInfo">
+            <name>ServerInfo</name>
+        </reference>
+        <reference name="WebManager">
+            <name>TomcatWebManager</name>
+        </reference>
+    </gbean>
+
+    <gbean name="TomcatAdminWebConnector" class="org.apache.geronimo.tomcat.connector.Http11ConnectorGBean">
+        <attribute name="name">HTTP</attribute>
+        <attribute name="host">localhost</attribute>
+        <attribute name="port">8084</attribute>
+        <attribute name="maxHttpHeaderSize">8192</attribute>
+        <attribute name="maxThreads">150</attribute>
+        <attribute name="minSpareThreads">25</attribute>
+        <attribute name="maxSpareThreads">75</attribute>
+        <attribute name="enableLookups">false</attribute>
+        <attribute name="redirectPort">8443</attribute>
+        <attribute name="acceptCount">100</attribute>
+        <attribute name="connectionTimeout">20000</attribute>
+        <attribute name="disableUploadTimeout">true</attribute>
+        <reference name="TomcatContainer">
+            <name>TomcatAdminWebContainer</name>
+        </reference>
+        <reference name="ServerInfo">
+            <name>ServerInfo</name>
+        </reference>
+        <dependency>
+            <name>default/zadmin/1.0/car</name>
+        </dependency>
+    </gbean>
+
+    <gbean name="TomcatAdminEngine" class="org.apache.geronimo.tomcat.EngineGBean">
+        <attribute name="className">org.apache.geronimo.tomcat.TomcatEngine</attribute>
+        <attribute name="initParams">
+          name=GeronimoAdmin
+        </attribute>
+        <reference name="DefaultHost">
+            <name>TomcatAdminHost</name>
+        </reference>
+        <references name="Hosts">
+            <pattern>
+                <name>TomcatAdminHost</name>
+            </pattern>
+        </references>
+        <reference name="RealmGBean">
+            <name>TomcatJAASRealm</name>
+        </reference>
+    </gbean>
+
+    <gbean name="TomcatAdminHost" class="org.apache.geronimo.tomcat.HostGBean">
+        <attribute name="className">org.apache.catalina.core.StandardHost</attribute>
+        <attribute name="initParams">
+          name=admin
+          appBase=
+          workDir=work
+        </attribute>
+    </gbean>
+
+
+
+</web-app>

Added: geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-web-example-3.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-web-example-3.xml?rev=952535&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-web-example-3.xml (added)
+++ geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-web-example-3.xml Tue Jun  8 04:40:16 2010
@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+
+<!-- @version $Rev: 658553 $ $Date: 2008-05-21 12:55:52 +0800 (Wed, 21 May 2008) $ -->
+
+<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1" xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.2" xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0" xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
+
+    <sys:environment>
+        <sys:moduleId>
+            <sys:groupId>default</sys:groupId>
+            <sys:artifactId>geronimo-web-1</sys:artifactId>
+            <sys:version>1.0</sys:version>
+            <sys:type>car</sys:type>
+        </sys:moduleId>
+    </sys:environment>
+    <context-root>/app</context-root>
+    <web-container>
+        <gbean-link>TomcatAppWebContainer</gbean-link>
+    </web-container>
+
+    <gbean name="TomcatAppWebContainer" class="org.apache.geronimo.tomcat.TomcatContainer">
+        <attribute name="catalinaHome">var/catalina</attribute>
+        <reference name="EngineGBean">
+            <name>TomcatAppEngine</name>
+        </reference>
+        <reference name="ServerInfo">
+            <name>ServerInfo</name>
+        </reference>
+        <reference name="WebManager">
+            <name>TomcatWebManager</name>
+        </reference>
+    </gbean>
+
+    <gbean name="TomcatAppWebConnector" class="org.apache.geronimo.tomcat.connector.Http11ConnectorGBean">
+        <attribute name="name">HTTP</attribute>
+        <attribute name="host">localhost</attribute>
+        <attribute name="port">8082</attribute>
+        <attribute name="maxHttpHeaderSize">8192</attribute>
+        <attribute name="maxThreads">150</attribute>
+        <attribute name="minSpareThreads">25</attribute>
+        <attribute name="maxSpareThreads">75</attribute>
+        <attribute name="enableLookups">false</attribute>
+        <attribute name="redirectPort">8443</attribute>
+        <attribute name="acceptCount">100</attribute>
+        <attribute name="connectionTimeout">20000</attribute>
+        <attribute name="disableUploadTimeout">true</attribute>
+        <reference name="TomcatContainer">
+            <name>TomcatAppWebContainer</name>
+        </reference>
+        <reference name="ServerInfo">
+            <name>ServerInfo</name>
+        </reference>
+        <dependency>
+            <name>default/zapp/1.0/car</name>
+        </dependency>
+    </gbean>
+
+    <gbean name="TomcatAppEngine" class="org.apache.geronimo.tomcat.EngineGBean">
+        <attribute name="className">org.apache.geronimo.tomcat.TomcatEngine</attribute>
+        <attribute name="initParams">
+            name=GeronimoApp
+        </attribute>
+        <reference name="DefaultHost">
+            <name>TomcatAppHost</name>
+        </reference>
+        <references name="Hosts">
+            <pattern>
+                <name>TomcatAppHost</name>
+            </pattern>
+        </references>
+        <reference name="RealmGBean">
+            <name>TomcatJAASRealm</name>
+        </reference>
+    </gbean>
+
+    <gbean name="TomcatAppHost" class="org.apache.geronimo.tomcat.HostGBean">
+        <attribute name="className">org.apache.catalina.core.StandardHost</attribute>
+        <attribute name="initParams">
+            name=app
+            appBase=
+            workDir=work
+        </attribute>
+    </gbean>
+</web-app>

Added: geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-web-example-4.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-web-example-4.xml?rev=952535&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-web-example-4.xml (added)
+++ geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-web-example-4.xml Tue Jun  8 04:40:16 2010
@@ -0,0 +1,112 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+
+<!-- @version $Rev: 658553 $ $Date: 2008-05-21 12:55:52 +0800 (Wed, 21 May 2008) $ -->
+
+<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1" xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.2" xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0" xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
+
+    <sys:environment>
+        <sys:moduleId>
+            <sys:groupId>default</sys:groupId>
+            <sys:artifactId>geronimo-web-2</sys:artifactId>
+            <sys:version>1.0</sys:version>
+            <sys:type>car</sys:type>
+        </sys:moduleId>
+        <sys:dependencies>
+            <sys:dependency>
+                <sys:groupId>default</sys:groupId>
+                <sys:artifactId>geronimo-web-1</sys:artifactId>
+                <sys:version>1.0</sys:version>
+                <sys:type>car</sys:type>
+            </sys:dependency>
+        </sys:dependencies>
+    </sys:environment>
+
+    <context-root>/admin</context-root>
+
+    <web-container>
+        <gbean-link>TomcatAdminWebContainer</gbean-link>
+    </web-container>
+
+    <gbean name="TomcatAdminWebContainer" class="org.apache.geronimo.tomcat.TomcatContainer">
+        <attribute name="catalinaHome">var/catalina</attribute>
+        <reference name="EngineGBean">
+            <name>TomcatAdminEngine</name>
+        </reference>
+        <reference name="ServerInfo">
+            <name>ServerInfo</name>
+        </reference>
+        <reference name="WebManager">
+            <name>TomcatWebManager</name>
+        </reference>
+    </gbean>
+
+    <gbean name="TomcatAdminWebConnector" class="org.apache.geronimo.tomcat.connector.Http11ConnectorGBean">
+        <attribute name="name">HTTP</attribute>
+        <attribute name="host">localhost</attribute>
+        <attribute name="port">8084</attribute>
+        <attribute name="maxHttpHeaderSize">8192</attribute>
+        <attribute name="maxThreads">150</attribute>
+        <attribute name="minSpareThreads">25</attribute>
+        <attribute name="maxSpareThreads">75</attribute>
+        <attribute name="enableLookups">false</attribute>
+        <attribute name="redirectPort">8443</attribute>
+        <attribute name="acceptCount">100</attribute>
+        <attribute name="connectionTimeout">20000</attribute>
+        <attribute name="disableUploadTimeout">true</attribute>
+        <reference name="TomcatContainer">
+            <name>TomcatAdminWebContainer</name>
+        </reference>
+        <reference name="ServerInfo">
+            <name>ServerInfo</name>
+        </reference>
+        <dependency>
+            <name>default/zadmin/1.0/car</name>
+        </dependency>
+    </gbean>
+
+    <gbean name="TomcatAdminEngine" class="org.apache.geronimo.tomcat.EngineGBean">
+        <attribute name="className">org.apache.geronimo.tomcat.TomcatEngine</attribute>
+        <attribute name="initParams">
+          name=GeronimoAdmin
+        </attribute>
+        <reference name="DefaultHost">
+            <name>TomcatAdminHost</name>
+        </reference>
+        <references name="Hosts">
+            <pattern>
+                <name>TomcatAdminHost</name>
+            </pattern>
+        </references>
+        <reference name="RealmGBean">
+            <name>TomcatJAASRealm</name>
+        </reference>
+    </gbean>
+
+    <gbean name="TomcatAdminHost" class="org.apache.geronimo.tomcat.HostGBean">
+        <attribute name="className">org.apache.catalina.core.StandardHost</attribute>
+        <attribute name="initParams">
+          name=admin
+          appBase=
+          workDir=work
+        </attribute>
+    </gbean>
+
+
+
+</web-app>

Added: geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-web-example-5.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-web-example-5.xml?rev=952535&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-web-example-5.xml (added)
+++ geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-web-example-5.xml Tue Jun  8 04:40:16 2010
@@ -0,0 +1,107 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+
+<!-- @version $Rev: 658553 $ $Date: 2008-05-21 12:55:52 +0800 (Wed, 21 May 2008) $ -->
+
+<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1" xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.2" xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0" xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
+
+    <sys:environment>
+        <sys:moduleId>
+            <sys:groupId>default</sys:groupId>
+            <sys:artifactId>geronimo-web-3</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:dependencies>
+    </sys:environment>
+    <context-root>/app</context-root>
+    <web-container>
+        <gbean-link>TomcatAppWebContainer</gbean-link>
+    </web-container>
+
+    <gbean name="TomcatAppWebContainer" class="org.apache.geronimo.tomcat.TomcatContainer">
+        <attribute name="catalinaHome">var/catalina</attribute>
+        <reference name="EngineGBean">
+            <name>TomcatAppEngine</name>
+        </reference>
+        <reference name="ServerInfo">
+            <name>ServerInfo</name>
+        </reference>
+        <reference name="WebManager">
+            <name>TomcatWebManager</name>
+        </reference>
+    </gbean>
+
+    <gbean name="TomcatAppWebConnector" class="org.apache.geronimo.tomcat.connector.Http11ConnectorGBean">
+        <attribute name="name">HTTP</attribute>
+        <attribute name="host">localhost</attribute>
+        <attribute name="port">8082</attribute>
+        <attribute name="maxHttpHeaderSize">8192</attribute>
+        <attribute name="maxThreads">150</attribute>
+        <attribute name="minSpareThreads">25</attribute>
+        <attribute name="maxSpareThreads">75</attribute>
+        <attribute name="enableLookups">false</attribute>
+        <attribute name="redirectPort">8443</attribute>
+        <attribute name="acceptCount">100</attribute>
+        <attribute name="connectionTimeout">20000</attribute>
+        <attribute name="disableUploadTimeout">true</attribute>
+        <reference name="TomcatContainer">
+            <name>TomcatAppWebContainer</name>
+        </reference>
+        <reference name="ServerInfo">
+            <name>ServerInfo</name>
+        </reference>
+        <dependency>
+            <name>default/zapp/1.0/car</name>
+        </dependency>
+    </gbean>
+
+    <gbean name="TomcatAppEngine" class="org.apache.geronimo.tomcat.EngineGBean">
+        <attribute name="className">org.apache.geronimo.tomcat.TomcatEngine</attribute>
+        <attribute name="initParams">
+            name=GeronimoApp
+        </attribute>
+        <reference name="DefaultHost">
+            <name>TomcatAppHost</name>
+        </reference>
+        <references name="Hosts">
+            <pattern>
+                <name>TomcatAppHost</name>
+            </pattern>
+        </references>
+        <reference name="RealmGBean">
+            <name>TomcatJAASRealm</name>
+        </reference>
+    </gbean>
+
+    <gbean name="TomcatAppHost" class="org.apache.geronimo.tomcat.HostGBean">
+        <attribute name="className">org.apache.catalina.core.StandardHost</attribute>
+        <attribute name="initParams">
+            name=app
+            appBase=
+            workDir=work
+        </attribute>
+    </gbean>
+</web-app>

Added: geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-web-example-6.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-web-example-6.xml?rev=952535&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-web-example-6.xml (added)
+++ geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-web-example-6.xml Tue Jun  8 04:40:16 2010
@@ -0,0 +1,118 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+
+<!-- @version $Rev: 658553 $ $Date: 2008-05-21 12:55:52 +0800 (Wed, 21 May 2008) $ -->
+
+<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1" xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.2" xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0" xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
+
+    <sys:environment>
+        <sys:moduleId>
+            <sys:groupId>default</sys:groupId>
+            <sys:artifactId>geronimo-web-4</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-3</sys:artifactId>
+                <sys:version>1.0</sys:version>
+                <sys:type>car</sys:type>
+            </sys:dependency>
+        </sys:dependencies>
+    </sys:environment>
+
+    <context-root>/admin</context-root>
+
+    <web-container>
+        <gbean-link>TomcatAdminWebContainer</gbean-link>
+    </web-container>
+
+    <gbean name="TomcatAdminWebContainer" class="org.apache.geronimo.tomcat.TomcatContainer">
+        <attribute name="catalinaHome">var/catalina</attribute>
+        <reference name="EngineGBean">
+            <name>TomcatAdminEngine</name>
+        </reference>
+        <reference name="ServerInfo">
+            <name>ServerInfo</name>
+        </reference>
+        <reference name="WebManager">
+            <name>TomcatWebManager</name>
+        </reference>
+    </gbean>
+
+    <gbean name="TomcatAdminWebConnector" class="org.apache.geronimo.tomcat.connector.Http11ConnectorGBean">
+        <attribute name="name">HTTP</attribute>
+        <attribute name="host">localhost</attribute>
+        <attribute name="port">8084</attribute>
+        <attribute name="maxHttpHeaderSize">8192</attribute>
+        <attribute name="maxThreads">150</attribute>
+        <attribute name="minSpareThreads">25</attribute>
+        <attribute name="maxSpareThreads">75</attribute>
+        <attribute name="enableLookups">false</attribute>
+        <attribute name="redirectPort">8443</attribute>
+        <attribute name="acceptCount">100</attribute>
+        <attribute name="connectionTimeout">20000</attribute>
+        <attribute name="disableUploadTimeout">true</attribute>
+        <reference name="TomcatContainer">
+            <name>TomcatAdminWebContainer</name>
+        </reference>
+        <reference name="ServerInfo">
+            <name>ServerInfo</name>
+        </reference>
+        <dependency>
+            <name>default/zadmin/1.0/car</name>
+        </dependency>
+    </gbean>
+
+    <gbean name="TomcatAdminEngine" class="org.apache.geronimo.tomcat.EngineGBean">
+        <attribute name="className">org.apache.geronimo.tomcat.TomcatEngine</attribute>
+        <attribute name="initParams">
+          name=GeronimoAdmin
+        </attribute>
+        <reference name="DefaultHost">
+            <name>TomcatAdminHost</name>
+        </reference>
+        <references name="Hosts">
+            <pattern>
+                <name>TomcatAdminHost</name>
+            </pattern>
+        </references>
+        <reference name="RealmGBean">
+            <name>TomcatJAASRealm</name>
+        </reference>
+    </gbean>
+
+    <gbean name="TomcatAdminHost" class="org.apache.geronimo.tomcat.HostGBean">
+        <attribute name="className">org.apache.catalina.core.StandardHost</attribute>
+        <attribute name="initParams">
+          name=admin
+          appBase=
+          workDir=work
+        </attribute>
+    </gbean>
+
+
+
+</web-app>

Added: geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-web-example-7.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-web-example-7.xml?rev=952535&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-web-example-7.xml (added)
+++ geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-web-example-7.xml Tue Jun  8 04:40:16 2010
@@ -0,0 +1,107 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+
+<!-- @version $Rev: 658553 $ $Date: 2008-05-21 12:55:52 +0800 (Wed, 21 May 2008) $ -->
+
+<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1" xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.2" xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0" xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
+
+    <sys:environment>
+        <sys:moduleId>
+            <sys:groupId>default</sys:groupId>
+            <sys:artifactId>geronimo-web-5</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:dependencies>
+    </sys:environment>
+    <context-root>/app</context-root>
+    <web-container>
+        <gbean-link>TomcatAppWebContainer</gbean-link>
+    </web-container>
+
+    <gbean name="TomcatAppWebContainer" class="org.apache.geronimo.tomcat.TomcatContainer">
+        <attribute name="catalinaHome">var/catalina</attribute>
+        <reference name="EngineGBean">
+            <name>TomcatAppEngine</name>
+        </reference>
+        <reference name="ServerInfo">
+            <name>ServerInfo</name>
+        </reference>
+        <reference name="WebManager">
+            <name>TomcatWebManager</name>
+        </reference>
+    </gbean>
+
+    <gbean name="TomcatAppWebConnector" class="org.apache.geronimo.tomcat.connector.Http11ConnectorGBean">
+        <attribute name="name">HTTP</attribute>
+        <attribute name="host">localhost</attribute>
+        <attribute name="port">8082</attribute>
+        <attribute name="maxHttpHeaderSize">8192</attribute>
+        <attribute name="maxThreads">150</attribute>
+        <attribute name="minSpareThreads">25</attribute>
+        <attribute name="maxSpareThreads">75</attribute>
+        <attribute name="enableLookups">false</attribute>
+        <attribute name="redirectPort">8443</attribute>
+        <attribute name="acceptCount">100</attribute>
+        <attribute name="connectionTimeout">20000</attribute>
+        <attribute name="disableUploadTimeout">true</attribute>
+        <reference name="TomcatContainer">
+            <name>TomcatAppWebContainer</name>
+        </reference>
+        <reference name="ServerInfo">
+            <name>ServerInfo</name>
+        </reference>
+        <dependency>
+            <name>default/zapp/1.0/car</name>
+        </dependency>
+    </gbean>
+
+    <gbean name="TomcatAppEngine" class="org.apache.geronimo.tomcat.EngineGBean">
+        <attribute name="className">org.apache.geronimo.tomcat.TomcatEngine</attribute>
+        <attribute name="initParams">
+            name=GeronimoApp
+        </attribute>
+        <reference name="DefaultHost">
+            <name>TomcatAppHost</name>
+        </reference>
+        <references name="Hosts">
+            <pattern>
+                <name>TomcatAppHost</name>
+            </pattern>
+        </references>
+        <reference name="RealmGBean">
+            <name>TomcatJAASRealm</name>
+        </reference>
+    </gbean>
+
+    <gbean name="TomcatAppHost" class="org.apache.geronimo.tomcat.HostGBean">
+        <attribute name="className">org.apache.catalina.core.StandardHost</attribute>
+        <attribute name="initParams">
+            name=app
+            appBase=
+            workDir=work
+        </attribute>
+    </gbean>
+</web-app>

Added: geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-web-example-8.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-web-example-8.xml?rev=952535&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-web-example-8.xml (added)
+++ geronimo/devtools/eclipse-plugin/branches/2.2.1/plugins/org.apache.geronimo.st.v21.core/src/test/resources/dependencyhelper/geronimo-web-example-8.xml Tue Jun  8 04:40:16 2010
@@ -0,0 +1,130 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+
+<!-- @version $Rev: 658553 $ $Date: 2008-05-21 12:55:52 +0800 (Wed, 21 May 2008) $ -->
+
+<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1" xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.2" xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0" 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:groupId>default</sys:groupId>
+                <sys:artifactId>geronimo-web-4</sys:artifactId>
+                <sys:version>1.0</sys:version>
+                <sys:type>car</sys:type>
+            </sys:dependency>
+            <sys:dependency>
+                <sys:groupId>default</sys:groupId>
+                <sys:artifactId>geronimo-web-2</sys:artifactId>
+                <sys:version>1.0</sys:version>
+                <sys:type>car</sys:type>
+            </sys:dependency>
+        </sys:dependencies>
+    </sys:environment>
+
+    <context-root>/admin</context-root>
+
+    <web-container>
+        <gbean-link>TomcatAdminWebContainer</gbean-link>
+    </web-container>
+
+    <gbean name="TomcatAdminWebContainer" class="org.apache.geronimo.tomcat.TomcatContainer">
+        <attribute name="catalinaHome">var/catalina</attribute>
+        <reference name="EngineGBean">
+            <name>TomcatAdminEngine</name>
+        </reference>
+        <reference name="ServerInfo">
+            <name>ServerInfo</name>
+        </reference>
+        <reference name="WebManager">
+            <name>TomcatWebManager</name>
+        </reference>
+    </gbean>
+
+    <gbean name="TomcatAdminWebConnector" class="org.apache.geronimo.tomcat.connector.Http11ConnectorGBean">
+        <attribute name="name">HTTP</attribute>
+        <attribute name="host">localhost</attribute>
+        <attribute name="port">8084</attribute>
+        <attribute name="maxHttpHeaderSize">8192</attribute>
+        <attribute name="maxThreads">150</attribute>
+        <attribute name="minSpareThreads">25</attribute>
+        <attribute name="maxSpareThreads">75</attribute>
+        <attribute name="enableLookups">false</attribute>
+        <attribute name="redirectPort">8443</attribute>
+        <attribute name="acceptCount">100</attribute>
+        <attribute name="connectionTimeout">20000</attribute>
+        <attribute name="disableUploadTimeout">true</attribute>
+        <reference name="TomcatContainer">
+            <name>TomcatAdminWebContainer</name>
+        </reference>
+        <reference name="ServerInfo">
+            <name>ServerInfo</name>
+        </reference>
+        <dependency>
+            <name>default/zadmin/1.0/car</name>
+        </dependency>
+    </gbean>
+
+    <gbean name="TomcatAdminEngine" class="org.apache.geronimo.tomcat.EngineGBean">
+        <attribute name="className">org.apache.geronimo.tomcat.TomcatEngine</attribute>
+        <attribute name="initParams">
+          name=GeronimoAdmin
+        </attribute>
+        <reference name="DefaultHost">
+            <name>TomcatAdminHost</name>
+        </reference>
+        <references name="Hosts">
+            <pattern>
+                <name>TomcatAdminHost</name>
+            </pattern>
+        </references>
+        <reference name="RealmGBean">
+            <name>TomcatJAASRealm</name>
+        </reference>
+    </gbean>
+
+    <gbean name="TomcatAdminHost" class="org.apache.geronimo.tomcat.HostGBean">
+        <attribute name="className">org.apache.catalina.core.StandardHost</attribute>
+        <attribute name="initParams">
+          name=admin
+          appBase=
+          workDir=work
+        </attribute>
+    </gbean>
+
+
+
+</web-app>



Mime
View raw message