User: starksm 
  Date: 02/04/11 18:49:46

  Modified:    catalina build.xml readme
  Log:
  Leave the service descriptor outside of the service jar so that the
  tomcat path can easily be edited and update the readme.
  
  Revision  Changes    Path
  1.13      +9 -4      contrib/catalina/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /cvsroot/jboss/contrib/catalina/build.xml,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- build.xml 23 Mar 2002 21:10:59 -0000      1.12
  +++ build.xml 12 Apr 2002 01:49:46 -0000      1.13
  @@ -12,7 +12,7 @@
   <!--                                                                        -->
   <!-- ====================================================================== -->
   
  -<!-- $Id: build.xml,v 1.12 2002/03/23 21:10:59 ejort Exp $ -->
  +<!-- $Id: build.xml,v 1.13 2002/04/12 01:49:46 starksm Exp $ -->
   
   <project default="main" name="JBoss/Tomcat-4">
   
  @@ -142,7 +142,7 @@
       </path>
   
       <!-- This corresponds to the tomcat4 dist existing in this module root -->
  -    <property name="tomcat.server.root" 
value="${module.root}/jakarta-tomcat-4.0.2"/>
  +    <property name="tomcat.server.root" 
value="${module.root}/jakarta-tomcat-4.0.3"/>
       <path id="tomcat.server.classpath">
         <pathelement path="${tomcat.server.root}/bin/bootstrap.jar"/>
         <pathelement path="${tomcat.server.root}/common/lib/servlet.jar"/>
  @@ -168,6 +168,7 @@
   
       <!-- Where build generated files will go -->
       <property name="build.classes" value="${module.output}/classes"/>
  +    <property name="build.deploy" value="${module.output}/deploy"/>
       <property name="build.lib" value="${module.output}/lib"/>
       <property name="build.api" value="${module.output}/api"/>
       <property name="build.etc" value="${module.output}/etc"/>
  @@ -281,10 +282,14 @@
   
       <!-- Build the Tomcat service jars -->
   
  -    <jar jarfile="${build.lib}/tomcat4-service.sar"
  +    <copy file="${build.resources}/jboss-service.xml"
  +       tofile="${build.deploy}/tomcat4-service.xml" />
  +
  +    <jar jarfile="${build.lib}/tomcat4-service.jar"
            manifest="${build.etc}/manifest/version.mf">
  -      <!-- jboss-service.xml for tomcat plugin -->
  +      <!-- jboss-service.xml for tomcat plugin
         <metainf dir="${build.resources}" />
  +-->
         <!-- The service classes -->
         <fileset dir="${build.classes}">
           <include name="org/jboss/**"/>
  
  
  
  1.2       +22 -69    contrib/catalina/readme
  
  Index: readme
  ===================================================================
  RCS file: /cvsroot/jboss/contrib/catalina/readme,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- readme    22 Feb 2001 14:51:03 -0000      1.1
  +++ readme    12 Apr 2002 01:49:46 -0000      1.2
  @@ -1,71 +1,24 @@
  -1) copy embedded.jar to jboss/lib/ext, tools.jar should go to
  -   that directory too (or included in CLASSPATH)
  -
  -2) copy the files jaxp.jar (from catalina_home/server) to jboss/lib,
  -   delete parser.jar, copy crimson.jar (from catalina_home/server) to
  -   jboss/lib/parser.jar
  -
  -3) add the following lines to jboss.conf changing the directories accordingly
  -
  -<MLET CODE = "org.jboss.util.ClassPathExtension" ARCHIVE="jboss.jar"
  -CODEBASE="../../lib/ext/">
  -  <ARG TYPE="java.lang.String" VALUE="../../../jakarta-tomcat-4.0-b1/server/">
  -</MLET>
  -
  -<MLET CODE = "org.jboss.util.ClassPathExtension" ARCHIVE="jboss.jar"
  -CODEBASE="../../lib/ext/">
  -  <ARG TYPE="java.lang.String" VALUE="../../../jakarta-tomcat-4.0-b1/lib/">
  -</MLET>
  -
  -<MLET CODE = "org.jboss.util.ClassPathExtension" ARCHIVE="jboss.jar"
  -CODEBASE="../../lib/ext/">
  -  <ARG TYPE="java.lang.String" VALUE="../../../jakarta-tomcat-4.0-b1/bin/">
  -</MLET>
  -
  -4) there are 3 mbeans that need to be configured in jboss.jcml:
  -
  -
  -        the EmbeddedManager to launch EmbeddedCatalina
  -
  -  <mbean code="org.apache.catalina.startup.EmbeddedManager"
  -name="Catalina:name=Catalina">
  -    <attribute name="UseNaming">false</attribute>
  -  </mbean>
  -
  -
  -        the mbean that will configure EmbeddedCatalina according to server.xml
  -configuration
  -
  -  <mbean code="org.jboss.contrib.catalina.ConfigCatalinaService"
  -name="Catalina:name=Config">
  -    <attribute
  -name="ServerXmlPath">../../jakarta-tomcat-4.0-b1/conf/server.xml</attribute>
  -    <attribute name="CatalinaHome">../../jakarta-tomcat-4.0-b1/</attribute>  
  -    <attribute name="DeployHostname">localhost</attribute>
  -  </mbean>
  -
  -
  -        and the deployer
  -
  -  <mbean code="org.jboss.deployment.J2eeDeployer"
  -name="J2EE:service=J2eeDeployer">
  -    <attribute name="DeployerName">Default</attribute>
  -    <attribute name="JarDeployerName">:service=ContainerFactory</attribute>
  -    <attribute name="WarDeployerName">Catalina:name=Config</attribute>
  -  </mbean>
  -
  -5) start jboss, all war files will be deployed to localhost as configured in
  -   ConfigCatalinaService.
  -   To see the typcal home page http://localhost:8080 enable the root 
  -   context in server.xml.
  -
  -
  -
  -limitations:
  -
  -Realm and Resources not yet integrated.
  -Tomcat naming disabled
  -
  -
  +To deploy the embedded tomcat-4.x service into JBoss do the
  +following:
   
  +1. Change the location of the tomcat.server.root to point to the
  +tomcat-4.x distribution root. This can be done either by editing
  +the build.xml file or by creating a local.properties file with the
  +tomcat.server.root=/path/to/tomcat
  +setting.
  +
  +2. Copy the output/lib/tomcat4-service.jar to the jboss/server/default/lib
  +or the lib directory of whatever configuration you are running.
  +
  +3. Edit the output/deploy/tomcat4-service.xml descriptor and change the
  +<!ENTITY catalina.home "/usr/local/Java/servlets/jakarta-tomcat-4.0.3">
  +line to the path you want to use for the tomcat-4.x runtime distribution.
  +
  +4. Copy the output/deploy/tomcat4-service.xml descriptor to the
  +jboss/server/default/deploy directory or the deploy directory of whatever
  +configuration you are running.
  +
  +5. Remove the jboss/server/default/deploy/jetty-plugin.sar or else you
  +will have port already bound errors as both the catalina and jetty
  +servlet containers start.
   
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to