Changeset 997

Show
Ignore:
Timestamp:
09/12/06 14:38:50
Author:
douglm
Message:

This set of updates switches the expected tomcat server to tomcat 5.5.17


For reference the changes needed are noted below. Later today we will have a binary quickstart which can be downloaded from bedework.org whilch will provide what we believe to be a correctly configured tomcat 5.5.17

Changes required to the tomcat instance were...

Copy log4j and the hsqldb drivers from tomcat 5.0.28

cp path-to/jakarta-tomcat-5.0.28/common/classes/log4j.xml path-to/apache-tomcat-5.5.17/common/classes/log4j.xml

cp path-to/jakarta-tomcat-5.0.28/common/lib/hsqldb-1.7.3.3.jar path-to/apache-tomcat-5.5.17/common/lib/hsqldb-1.7.3.3.jar

In conf/web.xml change

<param-name>listings</param-name>
<param-value>false</param-value>

to

<param-name>listings</param-name>
<param-value>true</param-value>

to enable directory browsing.


Other changes...

More schedule changes

Fixed initbedework.xml so it works again.

Move freebusyAggregator config class into calfacade.configs

Suppress inclusion of web.xml from source to remove warning messages
Change democal.properties value from
org.bedework.app.Events.web.xml=guest/web.xml
to
org.bedework.app.Events.web.xml=war/WEB-INF/publicweb.xml

Similarly for SoEDept which now has
org.bedework.app.SoEDept.web.xml=war/WEB-INF/publicweb.xml

and added to public and user caldav which have
org.bedework.app.Pubcaldav.web.xml=war/WEB-INF/publicweb.xml
org.bedework.app.Usercaldav.web.xml=war/WEB-INF/userweb.xml

New global property

org.bedework.global.deploy.on.tomcat=true

This enables copying of context.xml files from the web application source.

Added properties

org.bedework.app.Events.tomcat.context.xml=war/META-INF/publiccontext.xml
org.bedework.app.SoEDept.tomcat.context.xml=war/META-INF/publiccontext.xml
org.bedework.app.UserCal?.tomcat.context.xml=war/META-INF/usercontext.xml
org.bedework.app.Pubcaldav.tomcat.context.xml=war/META-INF/publiccontext.xml
org.bedework.app.Usercaldav.tomcat.context.xml=war/META-INF/usercontext.xml

In addition the values of the context.root properties were changed to include a leading "/". This allows specifying a root context simply by omitting the value.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/build/buildwar.xml

    r966 r997  
    7272    <property name="app.dest.webinf" 
    7373              location="${app.dest.war}/WEB-INF" /> 
     74    <property name="app.dest.metainf" 
     75              location="${app.dest.war}/META-INF" /> 
    7476    <property name="app.dest.classes" 
    7577              location="${app.dest.webinf}/classes" /> 
     
    8486              location="${dist.home}/${propval.app.war.name}.war" /> 
    8587 
    86     <!-- These may have been set already --> 
     88    <property name="app.sou.tomcat.context.xml" 
     89              location="${app.sou.dir}/war/META-INF/context.xml" /> 
     90 
     91    <!-- default web.xml --> 
     92    <property name="propval.app.web.xml" 
     93              value="war/WEB-INF/web.xml" /> 
     94 
     95              <!-- 
    8796    <property name="app.web.xml" 
    88               value="${app.sou.dir}/war/WEB-INF/web.xml" /> 
     97              location="${propval.app.web.xml}" /> 
     98              --> 
     99    <resolveFile name="app.web.xml" 
     100                 file="${propval.app.web.xml}" 
     101                 base="${app.sou.dir}"/> 
     102 
    89103    <property name="app.sou.properties" 
    90104              location="${app.sou.dir}/war/WEB-INF/classes/servlet.properties" /> 
     
    202216      <filter token="APP-VERSION" 
    203217              value="${propval.app.version}"/> 
     218      <filter token="WAR-NAME" 
     219              value="${propval.app.war.name}"/> 
     220      <filter token="TOMCAT-DOC-BASE" 
     221              value="${org.bedework.appserver.dir}${propval.app.deploy.dir}/${propval.app.war.name}"/> 
    204222 
    205223      <filter token="DEFAULT-CONTENTTYPE" 
     
    339357    <antcall target="add.freebusy" inheritRefs="true" /> 
    340358 
     359    <!-- tomcat --> 
     360    <antcall target="add.tomcat" inheritRefs="true" /> 
     361 
    341362     <!-- any extra lib files--> 
    342363    <copy todir="${app.dest.lib}" > 
     
    352373         webxml="${app.dest.web.xml}" 
    353374         basedir="${app.dest.war}" 
    354          excludes="${app.dest.web.xml}" /> 
     375         excludes="WEB-INF/web.xml" /> 
    355376 
    356377    <!-- build the ear file for a j2ee app 
     
    366387  <target name="add.jdbcdriver" if="app.jdbcdriver.jar"> 
    367388    <copy todir="${app.dest.lib}" file="${app.jdbcdriver.jar}"/> 
     389  </target> 
     390 
     391  <target name="add.tomcat" if="org.bedework.global.deploy.on.tomcat"> 
     392    <property name="propval.app.tomcat.context.xml" 
     393              location="${app.sou.dir}/war/META-INF/context.xml" /> 
     394    <resolveFile name="app.tomcat.context.xml" 
     395                 file="${propval.app.tomcat.context.xml}" 
     396                 base="${app.sou.dir}"/> 
     397 
     398    <copy tofile="${app.dest.metainf}/context.xml" 
     399          file="${app.tomcat.context.xml}" 
     400          overwrite="yes" > 
     401      <filterset refid="property.filters" /> 
     402    </copy> 
    368403  </target> 
    369404 
  • trunk/build/quickstart-build.xml

    r961 r997  
    6969    <property name="bedework.build.file" 
    7070              location="${basedir}/bedework/build.xml" /> 
     71    <property name="org.bedework.user.build.properties" 
     72              location="${user.home}/bedework.build.properties" /> 
     73 
     74    <echo message="Load user properties from ${org.bedework.user.build.properties}" /> 
     75 
     76    <!-- Load user property definition overrides --> 
     77    <property file="${org.bedework.user.build.properties}" /> 
    7178 
    7279    <property file="${basedir}/bedework/deployment/deploy.properties" /> 
  • trunk/config/configs/democal.properties

    r966 r997  
    3030org.bedework.global.directory.browsing.disallowed=false 
    3131org.bedework.global.build.standalone.app=true 
     32 
     33# Comment this out if deploying on some other app server 
     34org.bedework.global.deploy.on.tomcat=true 
    3235 
    3336# uris to cross link apps - of dubious usefulness 
     
    4750org.bedework.app.bwconfig.default.contenttype=text/xml 
    4851org.bedework.app.bwconfig.war.name=bwconfig 
    49 org.bedework.app.bwconfig.context.root=bwconfig 
     52org.bedework.app.bwconfig.context.root=/bwconfig 
    5053org.bedework.app.bwconfig.root=/bwconfigrsrc 
    5154org.bedework.app.bwconfig.resources.dir=/webapps/ROOT/bwconfigrsrc 
     
    7275org.bedework.app.CalAdmin.war.name=caladmin 
    7376org.bedework.app.CalAdmin.ear.name=caladmin 
    74 org.bedework.app.CalAdmin.context.root=caladmin 
     77org.bedework.app.CalAdmin.context.root=/caladmin 
    7578org.bedework.app.CalAdmin.root=/caladminrsrc 
    7679org.bedework.app.CalAdmin.resources.dir=/webapps/ROOT/caladminrsrc 
     
    100103org.bedework.app.Events.version=3.2 
    101104org.bedework.app.Events.default.contenttype=text/xml 
    102 org.bedework.app.Events.web.xml=guest/web.xml 
     105org.bedework.app.Events.web.xml=war/WEB-INF/publicweb.xml 
     106org.bedework.app.Events.tomcat.context.xml=war/META-INF/publiccontext.xml 
    103107#org.bedework.app.Events.portal.platform=uportal2 
    104108#org.bedework.app.Events.portlet.name=PublicCal 
     
    106110org.bedework.app.Events.war.name=cal 
    107111org.bedework.app.Events.ear.name=cal 
    108 org.bedework.app.Events.context.root=cal 
     112org.bedework.app.Events.context.root=/cal 
    109113org.bedework.app.Events.root=/calrsrc 
    110114org.bedework.app.Events.resources.dir=/webapps/ROOT/calrsrc 
     
    130134org.bedework.app.SoEDept.version=3.2 
    131135org.bedework.app.SoEDept.default.contenttype=text/xml 
    132 org.bedework.app.SoEDept.web.xml=guest/web.xml 
     136org.bedework.app.SoEDept.web.xml=war/WEB-INF/publicweb.xml 
     137org.bedework.app.SoEDept.tomcat.context.xml=war/META-INF/publiccontext.xml 
    133138 
    134139org.bedework.app.SoEDept.war.name=soedept 
    135140org.bedework.app.SoEDept.ear.name=soedept 
    136 org.bedework.app.SoEDept.context.root=soedept 
     141org.bedework.app.SoEDept.context.root=/soedept 
    137142org.bedework.app.SoEDept.root=/calrsrc 
    138143org.bedework.app.SoEDept.resources.dir=/webapps/ROOT/calrsrc 
     
    158163org.bedework.app.UserCal.version=3.2 
    159164org.bedework.app.UserCal.default.contenttype=text/xml 
    160 org.bedework.app.UserCal.web.xml=user/web.xml 
     165org.bedework.app.UserCal.web.xml=war/WEB-INF/userweb.xml 
     166org.bedework.app.UserCal.tomcat.context.xml=war/META-INF/usercontext.xml 
    161167 
    162168org.bedework.app.UserCal.war.name=ucal 
    163169org.bedework.app.UserCal.ear.name=ucal 
    164 org.bedework.app.UserCal.context.root=ucal 
     170org.bedework.app.UserCal.context.root=/ucal 
    165171org.bedework.app.UserCal.root=/ucalrsrc 
    166172org.bedework.app.UserCal.resources.dir=/webapps/ROOT/ucalrsrc 
     
    187193org.bedework.app.Pubcaldav.sou.dir=server 
    188194org.bedework.app.Pubcaldav.interface.jar=bw-caldav 
     195 
     196org.bedework.app.Pubcaldav.web.xml=war/WEB-INF/publicweb.xml 
     197org.bedework.app.Pubcaldav.tomcat.context.xml=war/META-INF/publiccontext.xml 
    189198org.bedework.app.Pubcaldav.war.name=pubcaldav 
    190199org.bedework.app.Pubcaldav.ear.name=pubcaldav 
    191 org.bedework.app.Pubcaldav.context.root=pubcaldav 
     200org.bedework.app.Pubcaldav.context.root=/pubcaldav 
    192201 
    193202org.bedework.app.Pubcaldav.description=Bedework public caldav server. 
     
    210219org.bedework.app.Usercaldav.sou.dir=server 
    211220org.bedework.app.Usercaldav.interface.jar=bw-caldav 
     221 
     222org.bedework.app.Usercaldav.web.xml=war/WEB-INF/userweb.xml 
     223org.bedework.app.Usercaldav.tomcat.context.xml=war/META-INF/usercontext.xml 
    212224org.bedework.app.Usercaldav.war.name=ucaldav 
    213225org.bedework.app.Usercaldav.ear.name=ucaldav 
    214 org.bedework.app.Usercaldav.context.root=ucaldav 
     226org.bedework.app.Usercaldav.context.root=/ucaldav 
    215227 
    216228org.bedework.app.Usercaldav.security.domain=demo 
  • trunk/deployment/build.xml

    r952 r997  
    8181    <taskdef name="forEachApp" 
    8282             classname="org.bedework.deployment.ForEachAppTask"> 
     83      <classpath refid="app.xml.cp"/> 
     84    </taskdef> 
     85 
     86    <taskdef name="resolveFile" 
     87             classname="org.bedework.deployment.ResolveFile"> 
    8388      <classpath refid="app.xml.cp"/> 
    8489    </taskdef> 
     
    269274    </propertyset> 
    270275 
    271     <echo message="XXXXXXXXXXXX      type=${org.bedework.deploy.type}" /> 
    272     <echo message="XXXXXXXXXXXX      name=${org.bedework.deploy.name}" /> 
    273     <echo message="XXXXXXXXXXXX      path=${org.bedework.deploy.project.path}" /> 
    274  
    275276    <ant antfile="${org.bedework.deploy.type.dir}/${org.bedework.deploy.kind}/build.xml" 
    276277         inheritrefs="true" target="deploy" > 
  • trunk/deployment/deploy.properties

    r952 r997  
    3535 
    3636#  where the application server lives 
    37 org.bedework.appserver.dir=${org.bedework.project.bedework}/../jakarta-tomcat-5.0.28 
     37#org.bedework.appserver.dir=${org.bedework.project.bedework}/../jakarta-tomcat-5.0.28 
     38org.bedework.appserver.dir=${org.bedework.project.bedework}/../apache-tomcat-5.5.17 
    3839 
    3940#  where we deploy 
  • trunk/deployment/freebusyAggregator/jetspeed/resources/web.xml

    r952 r997  
    11<?xml version="1.0" encoding="ISO-8859-1"?> 
    22 
    3 <!-- guest/web.xml and user/web.xml in uwcalxml should be 
     3<!-- publicweb.xml and userweb.xml in source WEB-INF should be 
    44     identical except for the security piece. 
    55  --> 
  • trunk/deployment/freebusyAggregator/uportal2/build.xml

    r952 r997  
    77<project name="bwpublic.uportal2.deploy" default="deploy" > 
    88  <target name="init"> 
    9     <!-- Properties that differ from the personal client --> 
     9    <!-- Properties that differ from the personal client 
    1010    <property name="app.web.xml" 
    1111              value="${app.sou.dir}/war/WEB-INF/publicweb.xml" /> 
    12  
     12--> 
    1313    <!-- This should be in the config stuff --> 
    1414    <property name="propval.directory.browsing.disallowed" 
  • trunk/deployment/freebusyAggregator/webapp/build.xml

    r953 r997  
    2020    <property name="org.bedework.strutsapp" value="true" /> 
    2121 
     22    <!-- 
    2223    <property name="app.web.xml" 
    2324              value="${app.sou.dir}/war/WEB-INF/web.xml" /> 
     25              --> 
    2426 
    2527    <!-- This should be in the config stuff --> 
     
    6062 
    6163    <!-- Delete expanded version --> 
    62     <delete dir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}/${propval.app.context.root}" /> 
     64    <delete dir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}/${propval.app.war.name}" /> 
     65 
     66    <!-- Delete the quickstart context def --> 
     67    <delete file="${org.bedework.appserver.dir}/conf/Catalina/localhost/${propval.app.war.name}.xml" /> 
    6368 
    6469    <antcall target="deploy.uportal2" inheritRefs="true" /> 
  • trunk/deployment/publiccaldav/webapp/build.xml

    r953 r997  
    1919 
    2020    <!-- Properties that differ from the personal client --> 
     21    <!-- 
    2122    <property name="app.web.xml" 
    22               value="${app.sou.dir}/war/WEB-INF/publicweb.xml" /> 
     23              value="${app.sou.dir}/war/WEB-INF/web.xml" /> 
     24              --> 
    2325  </target> 
    2426 
     
    4244 
    4345    <!-- Delete expanded version --> 
    44     <delete dir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}/${propval.app.context.root}" /> 
     46    <delete dir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}/${propval.app.war.name}" /> 
     47 
     48    <!-- Delete the quickstart context def --> 
     49    <delete file="${org.bedework.appserver.dir}/conf/Catalina/localhost/${propval.app.war.name}.xml" /> 
    4550  </target> 
    4651 
  • trunk/deployment/usercaldav/webapp/build.xml

    r953 r997  
    1818 
    1919    <!-- Properties that differ from the personal client --> 
     20    <!-- 
    2021    <property name="app.web.xml" 
    21               value="${app.sou.dir}/war/WEB-INF/userweb.xml" /> 
     22              value="${app.sou.dir}/war/WEB-INF/web.xml" /> 
     23              --> 
    2224  </target> 
    2325 
     
    4143 
    4244    <!-- Delete expanded version --> 
    43     <delete dir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}/${propval.app.context.root}" /> 
     45    <delete dir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}/${propval.app.war.name}" /> 
     46 
     47    <!-- Delete the quickstart context def --> 
     48    <delete file="${org.bedework.appserver.dir}/conf/Catalina/localhost/${propval.app.war.name}.xml" /> 
    4449  </target> 
    4550 
  • trunk/deployment/webadmin/webapp/build.xml

    r953 r997  
    5252 
    5353    <!-- Delete expanded version --> 
    54     <delete dir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}/${propval.app.context.root}" /> 
     54    <delete dir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}/${propval.app.war.name}" /> 
     55 
     56    <!-- Delete the quickstart context def --> 
     57    <delete file="${org.bedework.appserver.dir}/conf/Catalina/localhost/${propval.app.war.name}.xml" /> 
    5558  </target> 
    5659 
  • trunk/deployment/webconfig/webapp/build.xml

    r953 r997  
    2020    <property name="org.bedework.strutsapp" value="true" /> 
    2121 
     22    <!-- 
    2223    <property name="app.web.xml" 
    2324              value="${app.sou.dir}/war/WEB-INF/web.xml" /> 
     25              --> 
    2426 
    2527    <!-- This should be in the config stuff --> 
     
    5759 
    5860    <!-- Delete expanded version --> 
    59     <delete dir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}/${propval.app.context.root}" /> 
     61    <delete dir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}/${propval.app.war.name}" /> 
     62 
     63    <!-- Delete the quickstart context def --> 
     64    <delete file="${org.bedework.appserver.dir}/conf/Catalina/localhost/${propval.app.war.name}.xml" /> 
    6065  </target> 
    6166 
  • trunk/deployment/webpublic/jetspeed/resources/web.xml

    r952 r997  
    11<?xml version="1.0" encoding="ISO-8859-1"?> 
    22 
    3 <!-- guest/web.xml and user/web.xml in uwcalxml should be 
     3<!-- publicweb.xml and userweb.xml in source WEB-INF should be 
    44     identical except for the security piece. 
    55  --> 
  • trunk/deployment/webpublic/uportal2/build.xml

    r952 r997  
    88  <target name="init"> 
    99    <!-- Properties that differ from the personal client --> 
     10    <!-- 
    1011    <property name="app.web.xml" 
    11               value="${app.sou.dir}/war/WEB-INF/publicweb.xml" /> 
     12              value="${app.sou.dir}/war/WEB-INF/web.xml" /> 
     13              --> 
    1214 
    1315    <!-- This should be in the config stuff --> 
  • trunk/deployment/webpublic/webapp/build.xml

    r953 r997  
    2121 
    2222    <!-- Properties that differ from the personal client --> 
     23    <!-- 
    2324    <property name="app.web.xml" 
    24               value="${app.sou.dir}/war/WEB-INF/publicweb.xml" /> 
     25              value="${app.sou.dir}/war/WEB-INF/web.xml" /> 
     26              --> 
    2527 
    2628    <!-- This should be in the config stuff --> 
     
    5557    <echo message="***************************************************************" /> 
    5658 
     59    <!-- Delete expanded version --> 
     60    <delete dir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}/${propval.app.war.name}" /> 
     61 
    5762    <!-- copy the war file. --> 
    58     <copy todir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}" file="${app.war.file}" 
     63    <copy todir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}" 
     64          file="${app.war.file}" 
    5965          overwrite="yes" /> 
    6066 
    61     <!-- Delete expanded version --> 
    62     <delete dir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}/${propval.app.context.root}" /> 
     67    <!-- Delete the quickstart context def --> 
     68    <delete file="${org.bedework.appserver.dir}/conf/Catalina/localhost/${propval.app.war.name}.xml" /> 
    6369 
    6470    <antcall target="deploy.uportal2" inheritRefs="true" /> 
  • trunk/deployment/webuser/jetspeed/resources/web.xml

    r952 r997  
    11<?xml version="1.0" encoding="ISO-8859-1"?> 
    22 
    3 <!-- guest/web.xml and user/web.xml in uwcalxml should be 
     3<!-- publicweb.xml and userweb.xml in source WEB-INF should be 
    44     identical except for the security piece. 
    55  --> 
  • trunk/deployment/webuser/uportal2/build.xml

    r952 r997  
    1212 
    1313    <!-- Properties that differ from the personal client --> 
     14    <!-- 
    1415    <property name="app.web.xml" 
    15               value="${app.sou.dir}/war/WEB-INF/userweb.xml" /> 
     16              value="${app.sou.dir}/war/WEB-INF/web.xml" /> 
     17              --> 
    1618 
    1719    <property name="propval.app.guestmode" value="false" /> 
  • trunk/deployment/webuser/webapp/build.xml

    r953 r997  
    2121 
    2222    <!-- Properties that differ from the public client --> 
     23    <!-- 
    2324    <property name="app.web.xml" 
    24               value="${app.sou.dir}/war/WEB-INF/userweb.xml" /> 
     25              value="${app.sou.dir}/war/WEB-INF/web.xml" /> 
     26              --> 
    2527 
    2628    <property name="propval.app.guestmode" value="false" /> 
     
    5658 
    5759    <!-- Delete expanded version --> 
    58     <delete dir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}/${propval.app.context.root}" /> 
     60    <delete dir="${org.bedework.appserver.dir}/${propval.app.deploy.dir}/${propval.app.war.name}" /> 
     61 
     62    <!-- Delete the quickstart context def --> 
     63    <delete file="${org.bedework.appserver.dir}/conf/Catalina/localhost/${propval.app.war.name}.xml" /> 
    5964 
    6065    <antcall target="deploy.uportal2" inheritRefs="true" />