geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject cvs commit: incubator-geronimo/modules/deployment/src/test-resources/etc bootstrapped-service.xml
Date Mon, 19 Jan 2004 06:43:32 GMT
djencks     2004/01/18 22:43:32

  Modified:    .        maven.xml
  Added:       modules/deployment/src/test-resources/etc
                        bootstrapped-service.xml
  Log:
  config file and maven commands for running web console under gbean structure. Use maven
bootstrap:run or maven bootstrap:debug
  
  Revision  Changes    Path
  1.50      +148 -2    incubator-geronimo/maven.xml
  
  Index: maven.xml
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/maven.xml,v
  retrieving revision 1.49
  retrieving revision 1.50
  diff -u -r1.49 -r1.50
  --- maven.xml	16 Jan 2004 02:08:18 -0000	1.49
  +++ maven.xml	19 Jan 2004 06:43:32 -0000	1.50
  @@ -144,7 +144,7 @@
                   </j:when>
               </j:choose>
   
  -            <!-- Set resctor projects in parent scope so goals have access to it -->
  +            <!-- Set reactor projects in parent scope so goals have access to it -->
               <j:set var="reactorProjects" value="${reactorProjects}" scope="parent"/>
   
               <!-- Optionaly perform module aggregation -->
  @@ -585,6 +585,152 @@
                       <!-- temporary addition allows RMI to be used, such as with the
JMX RMI connector -->
                       <pathelement location="${run.dir}/lib/geronimo-core-rmiclassloaderspi.jar"/>
                   </classpath>
  +
  +                <jvmarg value="-Xdebug"/>
  +                <jvmarg value="-Xnoagent"/>
  +                <jvmarg value="-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y"/>
  +
  +                <sysproperty key="java.compiler" value="NONE"/>
  +                <sysproperty key="program.name" value="maven:run"/>
  +                <sysproperty key="java.rmi.server.RMIClassLoaderSpi" value="org.apache.geronimo.rmi.RMIClassLoaderSpiImpl"/>
  +            </java>
  +        </j:jelly>
  +    </goal>
  +
  +    <goal name="bootstrap:run">
  +        <j:set var="run.dir" value="${basedir}/modules"/>
  +
  +        <j:jelly xmlns="jelly:ant">
  +
  +            <property environment="env"/>
  +            <java classname="org.apache.geronimo.deployment.Bootstrap"
  +                fork="true"
  +                maxmemory="256m"
  +                failonerror="true"
  +                dir="${run.dir}">
  +
  +                <jvmarg value="-ea"/>
  +                <classpath>
  +                    <pathelement path="${env.JAVA_HOME}/lib/tools.jar"/>
  +                    <!--pathelement path="${run.dir}/etc"/-->
  +                    <fileset dir="${maven.repo.local}/cglib/jars">
  +                          <include name="cglib-HEAD-20031111.jar"/>
  +                    </fileset>
  +                    <fileset dir="${maven.repo.local}/commons-logging/jars">
  +                          <include name="commons-logging-1.0.3.jar"/>
  +                    </fileset>
  +                    <fileset dir="${maven.repo.local}/log4j/jars">
  +                          <include name="log4j-1.2.8.jar"/>
  +                    </fileset>
  +                    <fileset dir="${maven.repo.local}/mx4j/jars">
  +                          <include name="mx4j-SNAPSHOT.jar"/>
  +                    </fileset>
  +                    <fileset dir="${maven.repo.local}/xerces/jars">
  +                          <include name="xercesImpl-2.6.0.jar"/>
  +                    </fileset>
  +                    <fileset dir="${maven.repo.local}/xml-apis/jars">
  +                          <include name="xml-apis-1.0.b2.jar"/>
  +                    </fileset>
  +                    <fileset dir="${maven.repo.local}/xml-commons-resolver/jars">
  +                          <include name="xml-commons-resolver-1.1.jar"/>
  +                    </fileset>
  +                    <fileset dir="${maven.repo.local}/geronimo/jars">
  +                        <include name="geronimo-kernel-${pom.currentVersion}.jar"/>
  +                        <include name="geronimo-deployment-${pom.currentVersion}.jar"/>
  +                        <include name="geronimo-common-${pom.currentVersion}.jar"/>
  +                        <!-- not needed for boot, but I'm not sure how to load otherwise-->
  +                        <include name="geronimo-web-${pom.currentVersion}.jar"/>
  +                        <include name="geronimo-core-${pom.currentVersion}.jar"/>
  +                    </fileset>
  +                    <fileset dir="${maven.repo.local}/geronimo-spec/jars">
  +                        <include name="geronimo-spec-jta-${pom.currentVersion}.jar"/>
  +                        <include name="geronimo-spec-j2ee-connector-${pom.currentVersion}.jar"/>
  +                        <include name="geronimo-spec-j2ee-jacc-${pom.currentVersion}.jar"/>
  +                        <include name="geronimo-spec-jsp-${pom.currentVersion}.jar"/>
  +                        <include name="geronimo-spec-servlet-${pom.currentVersion}.jar"/>
  +                    </fileset>
  +                    <fileset dir="${maven.repo.local}/jetty/jars">
  +                          <include name="jetty-SNAPSHOT.jar"/>
  +                    </fileset>
  +                    <fileset dir="${maven.repo.local}/ant/jars">
  +                          <include name="ant-1.5.2.jar"/>
  +                    </fileset>
  +                    <fileset dir="${maven.repo.local}/tomcat/jars">
  +                        <include name="jasper-compiler-4.0.4.jar"/>
  +                        <include name="jasper-runtime-4.0.4.jar"/>
  +                    </fileset>
  +                </classpath>
  +
  +                <arg value="file:${run.dir}/deployment/src/test-resources/etc/bootstrapped-service.xml"/>
  +
  +            </java>
  +        </j:jelly>
  +    </goal>
  +
  +    <goal name="bootstrap:debug">
  +        <j:set var="run.dir" value="${basedir}/modules"/>
  +        <j:jelly xmlns="jelly:ant">
  +
  +            <property environment="env"/>
  +            <java classname="org.apache.geronimo.deployment.Bootstrap"
  +                fork="true"
  +                maxmemory="256m"
  +                failonerror="true"
  +                dir="${run.dir}">
  +
  +
  +                <classpath>
  +                    <pathelement path="${env.JAVA_HOME}/lib/tools.jar"/>
  +                    <!--pathelement path="${run.dir}/etc"/-->
  +                    <fileset dir="${maven.repo.local}/cglib/jars">
  +                          <include name="cglib-HEAD-20031111.jar"/>
  +                    </fileset>
  +                    <fileset dir="${maven.repo.local}/commons-logging/jars">
  +                          <include name="commons-logging-1.0.3.jar"/>
  +                    </fileset>
  +                    <fileset dir="${maven.repo.local}/log4j/jars">
  +                          <include name="log4j-1.2.8.jar"/>
  +                    </fileset>
  +                    <fileset dir="${maven.repo.local}/mx4j/jars">
  +                          <include name="mx4j-SNAPSHOT.jar"/>
  +                    </fileset>
  +                    <fileset dir="${maven.repo.local}/xerces/jars">
  +                          <include name="xercesImpl-2.6.0.jar"/>
  +                    </fileset>
  +                    <fileset dir="${maven.repo.local}/xml-apis/jars">
  +                          <include name="xml-apis-1.0.b2.jar"/>
  +                    </fileset>
  +                    <fileset dir="${maven.repo.local}/xml-commons-resolver/jars">
  +                          <include name="xml-commons-resolver-1.1.jar"/>
  +                    </fileset>
  +                    <fileset dir="${maven.repo.local}/geronimo/jars">
  +                        <include name="geronimo-kernel-${pom.currentVersion}.jar"/>
  +                        <include name="geronimo-deployment-${pom.currentVersion}.jar"/>
  +                        <include name="geronimo-common-${pom.currentVersion}.jar"/>
  +                        <!-- not needed for boot, but I'm not sure how to load otherwise-->
  +                        <include name="geronimo-web-${pom.currentVersion}.jar"/>
  +                        <include name="geronimo-core-${pom.currentVersion}.jar"/>
  +                    </fileset>
  +                    <fileset dir="${maven.repo.local}/geronimo-spec/jars">
  +                        <include name="geronimo-spec-jta-${pom.currentVersion}.jar"/>
  +                        <include name="geronimo-spec-j2ee-connector-${pom.currentVersion}.jar"/>
  +                        <include name="geronimo-spec-j2ee-jacc-${pom.currentVersion}.jar"/>
  +                        <include name="geronimo-spec-jsp-${pom.currentVersion}.jar"/>
  +                        <include name="geronimo-spec-servlet-${pom.currentVersion}.jar"/>
  +                    </fileset>
  +                    <fileset dir="${maven.repo.local}/jetty/jars">
  +                          <include name="jetty-SNAPSHOT.jar"/>
  +                    </fileset>
  +                    <fileset dir="${maven.repo.local}/ant/jars">
  +                          <include name="ant-1.5.2.jar"/>
  +                    </fileset>
  +                    <fileset dir="${maven.repo.local}/tomcat/jars">
  +                        <include name="jasper-compiler-4.0.4.jar"/>
  +                        <include name="jasper-runtime-4.0.4.jar"/>
  +                    </fileset>
  +                </classpath>
  +
  +                <arg value="file:${run.dir}/deployment/src/test-resources/etc/bootstrapped-service.xml"/>
   
                   <jvmarg value="-Xdebug"/>
                   <jvmarg value="-Xnoagent"/>
  
  
  
  1.1                  incubator-geronimo/modules/deployment/src/test-resources/etc/bootstrapped-service.xml
  
  Index: bootstrapped-service.xml
  ===================================================================
  <gbeans>
  
      <gbean class="org.apache.geronimo.deployment.xml.LocalEntityResolver" objectName="geronimo.system:type=EntityResolver">
          <!--default attribute="CatalogFileURI" type="java.net.URI">file:/Users/david/geronimo/head2/incubator-geronimo/modules/core/src/conf/resolver-catalog.xml</default-->
          <default attribute="CatalogFileURI" type="java.net.URI">core/src/conf/resolver-catalog.xml</default>
          <default attribute="FailOnUnresolvable" type="boolean">false</default>
      </gbean>
  
      <gbean class="org.apache.geronimo.deployment.xml.ParserFactoryImpl" objectName="geronimo.system:type=ParserFactory">
          <endpoint name="EntityResolver">
              <pattern>geronimo.system:type=EntityResolver</pattern>
          </endpoint>
      </gbean>
  
      <gbean class="org.apache.geronimo.deployment.BatchDeployerFactory" objectName="geronimo.system:type=BatchDeployerFactory">
          <endpoint name="Deployers">
              <pattern>geronimo.deployment:*</pattern>
          </endpoint>
      </gbean>
  
      <gbean class="org.apache.geronimo.web.jetty.JettyWebContainer" objectName="geronimo.web:type=WebContainer,container=Jetty">
          <default attribute="DefaultWebXmlURI" type="java.net.URI">web/src/deploy/jetty/webdefault.xml</default>
          <endpoint name="WebAccessLogs">
              <pattern>geronimo.web:type=WebAccessLog,container=Jetty,*</pattern>
          </endpoint>
          <endpoint name="WebApplications">
              <pattern>geronimo.web:type=WebApplication,container=Jetty,*</pattern>
          </endpoint>
          <endpoint name="WebConnectors">
              <pattern>geronimo.web:type=WebConnector,container=Jetty,*</pattern>
          </endpoint>
      </gbean>
  
      <gbean class="org.apache.geronimo.web.jetty.JettyWebConnector" objectName="geronimo.web:type=WebConnector,container=Jetty,port=8080">
          <default attribute="Protocol" type="java.lang.String">http</default>
          <!-- IMPORTANT localhost here will result in access only from 127.0.0.1-->
          <!--default attribute="Interface" type="java.lang.String">localhost</default-->
          <default attribute="Interface" type="java.lang.String">192.168.1.1</default>
          <default attribute="Port" type="int">8080</default>
          <default attribute="MaxConnections" type="int">10</default>
          <default attribute="MaxIdleTime" type="int">10</default>
          <!--default attribute="Contexts" type="java.lang.String[]"></default-->
      </gbean>
  
      <gbean class="org.apache.geronimo.web.deployment.WebDeployer" objectName="geronimo.deployment:type=Web">
          <default attribute="Type" type="java.lang.String">Jetty</default>
          <default attribute="WebApplicationClass" type="java.lang.String">org.apache.geronimo.web.jetty.JettyWebApplication</default>
          <default attribute="Java2ClassLoadingCompliance" type="boolean">false</default>
          <default attribute="TransactionManagerNamePattern" type="javax.management.ObjectName">geronimo.transaction:service=TransactionManager</default>
          <default attribute="TrackedConnectionAssociatorNamePattern" type="javax.management.ObjectName">geronimo.connector:service=ConnectionTrackingCoordinator</default>
          <endpoint name="ParserFactory">
              <pattern>geronimo.system:type=ParserFactory</pattern>
          </endpoint>
      </gbean>
  
      <gbean class="org.apache.geronimo.transaction.TransactionManagerProxy" objectName="geronimo.transaction:service=TransactionManager"/>
  
      <gbean class="org.apache.geronimo.connector.outbound.connectiontracking.ConnectionTrackingCoordinator"
objectName="geronimo.connector:service=ConnectionTrackingCoordinator"/>
  
      <gbean class="org.apache.geronimo.deployment.util.ExplicitDeployment" objectName="geronimo.app:name=WebConsole">
          <default attribute="ConfigID" type="java.net.URI">org/apache/geronimo/WebConsole</default>
          <default attribute="PackageURL" type="java.net.URL">console-web/target/geronimo-web-console.war</default>
          <endpoint name="ConfigurationParent">
              <pattern>geronimo.config:name="org/apache/geronimo/Bootstrap"</pattern>
          </endpoint>
          <endpoint name="BatchDeployerFactory">
              <pattern>geronimo.system:type=BatchDeployerFactory</pattern>
          </endpoint>
          <endpoint name="Kernel">
              <pattern>geronimo.boot:role=Kernel</pattern>
          </endpoint>
      </gbean>
  </gbeans>
  
  

Mime
View raw message