You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Chris Walker <un...@btinternet.com> on 2006/05/29 23:45:45 UTC

Tomcat 5.5 Context Files

Hello,

I have just migrated a family of webapps from Tomcat 4 to Tomcat 5.5.  It's
working OK, but reading through the documentation I see there is a
recommendation that I remove the <Context> sections from server.xml and put
them in files in {catalina_root}/conf/[engine]/[Host].

But when I do this I find that each of the contexts just responds with an
empty HTML page - no HTTP error, and nothing in any of the Tomcat logs to
suggest an error.  This is the response:

----------------------------------------------------------------------------
---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html;
charset=windows-1252"></HEAD>
<BODY></BODY></HTML>
----------------------------------------------------------------------------
---

I've tried various names for the context XML files, and I've tried
specifying an absolute path for the context docBase, but it seems to make no
difference.

Can anybody suggest what I'm doing wrong?

Chris Walker

----------------------------------------------------------------------------
---
This is my server.xml after modification:

<Server port="8005" shutdown="SHUTDOWN">

  <Service name="Catalina">

    <Connector port="80"
               maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true" />

    <Connector port="8009"
               enableLookups="false" redirectPort="8443" protocol="AJP/1.3"
/>

    <Engine name="Catalina" defaultHost="www.iboserver.com">

        <Host name="www.iboserver.com" debug="0"
                appBase="webapps/ibo"
                unpackWARs="false"
                autoDeploy="false"
                liveDeploy="false"
                deployOnStartup="false"
                deployXML="false">

<!--
  This section moved to ./Catalina/www.iboserver.com/ROOT.xml
  vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
vvvvv

         <Context path="" docBase="ibo3"
                debug="1"
                reloadable="false"
                crossContext="true">

            <Logger className="org.apache.catalina.logger.FileLogger"
                 prefix="ibo3_log." suffix=".txt"
                 timestamp="true"/>

            <Valve className="org.apache.catalina.valves.AccessLogValve"
                 directory="logs"  prefix="ibo3_access" suffix=".log"
                 pattern="common" resolveHosts="false"/>

         </Context>

  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^
-->

<!--
  This section moved to ./Catalina/www.iboserver.com/ibo4.xml
  vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
vvvvvv

        <Context path="/ibo4" docBase="ibo4.200306.1"
                debug="1"
                reloadable="false"
                crossContext="true">

            <Logger className="org.apache.catalina.logger.FileLogger"
                prefix="ibo4_log." suffix=".txt"
                timestamp="true"/>

            <Valve className="org.apache.catalina.valves.AccessLogValve"
                 directory="logs"  prefix="ibo4_access" suffix=".log"
                 pattern="common" resolveHosts="false"/>

            <Environment name="url.root"
                value="https://www.invoicebackoffice.com/ibo4"
                type="java.lang.String" override="false"/>

            <Environment name="smtp.server"
                value="localhost"
                type="java.lang.String" override="false"/>

            <Environment name="dataStreamDefinitions"
                value="/etc/ibo/DataStreams.xml"
                type="java.lang.String" override="false"/>

            <Environment name="connectionPool/JDBCDriver"
                value="com.mysql.jdbc.Driver"
                type="java.lang.String" override="false"/>

            <Environment name="connectionPool/JDBCConnectionURL"
                value="jdbc:mysql://localhost/ibo"
                type="java.lang.String" override="false"/>

            <Environment name="connectionPool/User"
                value="root"
                type="java.lang.String" override="false"/>

            <Environment name="connectionPool/Password"
                value=""
                type="java.lang.String" override="false"/>

            <Environment name="connectionPool/ConnectionPoolSize"
                value="5"
                type="java.lang.String" override="false"/>

            <Environment name="connectionPool/ConnectionPoolMax"
                value="100"
                type="java.lang.String" override="false"/>

            <Environment name="connectionPool/ConnectionUseCount"
                value="50"
                type="java.lang.String" override="false"/>

            <Environment name="connectionPool/ConnectionTimeout"
                value="1200"
                type="java.lang.String" override="false"/>

            <Environment name="connectionPool/PoolDumpFrequency"
                value="1000"
                type="java.lang.String" override="false"/>

        </Context>
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^
-->
      </Host>

        <Host name="www.cboserver.com" debug="0"
                appBase="webapps/cbo"
                unpackWARs="false" autoDeploy="false"
deployOnStartup="false">

<!--
  This section moved to ./Catalina/www.cboserver.com/ROOT.xml
  vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
vvvvvvv

        <Context path="" docBase="cboweb.040506" debug="1"/>

  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^
-->

        <Logger className="org.apache.catalina.logger.FileLogger"
                 prefix="cbo_log." suffix=".txt"
                 timestamp="true"/>
         <Valve className="org.apache.catalina.valves.AccessLogValve"
                 directory="logs"  prefix="cbo_access" suffix=".log"
                 pattern="common" resolveHosts="false"/>
        </Host>

    </Engine>

  </Service>

</Server>



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat 5.5 Context Files

Posted by Markus Schönhaber <ma...@schoenhaber.de>.
Chris Walker wrote:
> I have just migrated a family of webapps from Tomcat 4 to Tomcat 5.5.  It's
> working OK, but reading through the documentation I see there is a
> recommendation that I remove the <Context> sections from server.xml and put
> them in files in {catalina_root}/conf/[engine]/[Host].
>
> But when I do this I find that each of the contexts just responds with an
> empty HTML page - no HTTP error, and nothing in any of the Tomcat logs to
> suggest an error.  This is the response:
>
> ---------------------------------------------------------------------------
>- ---
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META http-equiv=Content-Type content="text/html;
> charset=windows-1252"></HEAD>
> <BODY></BODY></HTML>
> ---------------------------------------------------------------------------
>- ---
>
> I've tried various names for the context XML files, and I've tried
> specifying an absolute path for the context docBase, but it seems to make
> no difference.
>
> Can anybody suggest what I'm doing wrong?
>
> Chris Walker
>
> ---------------------------------------------------------------------------
>- ---
> This is my server.xml after modification:
>
> <Server port="8005" shutdown="SHUTDOWN">
>
>   <Service name="Catalina">
>
>     <Connector port="80"
>                maxHttpHeaderSize="8192"
>                maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
>                enableLookups="false" redirectPort="8443" acceptCount="100"
>                connectionTimeout="20000" disableUploadTimeout="true" />
>
>     <Connector port="8009"
>                enableLookups="false" redirectPort="8443" protocol="AJP/1.3"
> />
>
>     <Engine name="Catalina" defaultHost="www.iboserver.com">
>
>         <Host name="www.iboserver.com" debug="0"
>                 appBase="webapps/ibo"
>                 unpackWARs="false"
>                 autoDeploy="false"
>                 liveDeploy="false"

I don't see "liveDeploy" documented for the <Host> element.

>                 deployOnStartup="false"

http://tomcat.apache.org/tomcat-5.5-doc/config/host.html#Automatic%20Application%20Deployment
says that the individual XML files in conf/[engine name]/[host name] will be 
processed when this is set to "true". You should change the value.

>                 deployXML="false">
>
> <!--
>   This section moved to ./Catalina/www.iboserver.com/ROOT.xml
>  
> vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> vvvvv
>
>          <Context path="" docBase="ibo3"

If your <Context> is located in an individual XML file, the "path" attribute 
must not be set:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html#Common%20Attributes
It won't hurt though, since Tomcat simply ignores it in this case.
Also, AFAIK setting "docBase" in an individual XML file is only useful if it 
points to a directory *outside* of the <Host>'s appBase. For example, if 
{appBase}/ibo3 exists, it will be the webapp reachable by
http://www.iboserver.com/ibo3
There is no way i know of for making this reachable by
http://www.iboserver.com/fordprefect
Especially there seems no way to define a directory other than {appBase}/ROOT 
as the directory containing the <Host>'s root webapp.

So, you could try the following:
- set "deployOnStartup" to "true",
- remove the "path" and "docBase" attributes from the <Context> descriptor,
- rename (move) the directory containing your root webapp ("ibo3"?) to 
{appBase}/ROOT

HTH
  mks

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat 5.5 Context Files

Posted by Mark Petrovic <ms...@gmail.com>.
Incidentally, I, too, have found the "path" and "docBase" attributes to be
tricky in Tomcat.  I fiddle with them until I get the desired result (ugh),
but the language describing them has never helped me much in figuring out
why what works actually works.

On 5/29/06, Mark Petrovic <ms...@gmail.com> wrote:
>
> Hi.
>
> Context fragments can also be put in your webapp's META-INF directory, per
> the 4th bullet item here
>
> http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
>
> E.g.,
>
> pluto:PGCRM> jar tf dist/crmrpc.war |head -3
> META-INF/
> META-INF/MANIFEST.MF
> META-INF/context.xml
>
> where context.xml contains, in my particular case, a JDBC resource
> definition
>
> <Context path="/crmrpc" debug="5" reloadable="true" crossContext="true">
>    <Resource
>       name="jdbc/crm"
>       auth="Container"
>       type=" javax.sql.DataSource"
>       maxActive="100"
>       maxIdle="30"
>       maxWait="10000"
>       username="u"
>       password="p"
>       driverClassName=" com.mysql.jdbc.Driver"
>       url="jdbc:mysql://localhost:3306/cm?autoReconnect=true"
>       />
> </Context>
>
>
>
> On 5/29/06, Chris Walker <un...@btinternet.com> wrote:
> >
> > Hello,
> >
> > I have just migrated a family of webapps from Tomcat 4 to Tomcat 5.5
> > .  It's
> > working OK, but reading through the documentation I see there is a
> > recommendation that I remove the <Context> sections from server.xml and
> > put
> > them in files in {catalina_root}/conf/[engine]/[Host].
> >
> > But when I do this I find that each of the contexts just responds with
> > an
> > empty HTML page - no HTTP error, and nothing in any of the Tomcat logs
> > to
> > suggest an error.  This is the response:
> >
> >
> > ----------------------------------------------------------------------------
> > ---
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> > <HTML><HEAD>
> > <META http-equiv=Content-Type content="text/html;
> > charset=windows-1252"></HEAD>
> > <BODY></BODY></HTML>
> > ----------------------------------------------------------------------------
> >
> > ---
> >
> > I've tried various names for the context XML files, and I've tried
> > specifying an absolute path for the context docBase, but it seems to
> > make no
> > difference.
> >
> > Can anybody suggest what I'm doing wrong?
> >
> > Chris Walker
> >
> >
> > ----------------------------------------------------------------------------
> > ---
> > This is my server.xml after modification:
> >
> > <Server port="8005" shutdown="SHUTDOWN">
> >
> >   <Service name="Catalina">
> >
> >     <Connector port="80"
> >                maxHttpHeaderSize="8192"
> >                maxThreads="150" minSpareThreads="25"
> > maxSpareThreads="75"
> >                enableLookups="false" redirectPort="8443"
> > acceptCount="100"
> >                connectionTimeout="20000" disableUploadTimeout="true" />
> >
> >     <Connector port="8009"
> >                enableLookups="false" redirectPort="8443"
> > protocol="AJP/1.3"
> > />
> >
> >     <Engine name="Catalina" defaultHost="www.iboserver.com ">
> >
> >         <Host name="www.iboserver.com" debug="0"
> >                 appBase="webapps/ibo"
> >                 unpackWARs="false"
> >                 autoDeploy="false"
> >                 liveDeploy="false"
> >                 deployOnStartup="false"
> >                 deployXML="false">
> >
> > <!--
> >   This section moved to ./Catalina/www.iboserver.com/ROOT.xml
> >
> >   vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> > vvvvv
> >
> >          <Context path="" docBase="ibo3"
> >                 debug="1"
> >                 reloadable="false"
> >                 crossContext="true">
> >
> >             <Logger className="org.apache.catalina.logger.FileLogger"
> >                  prefix="ibo3_log." suffix=".txt"
> >                  timestamp="true"/>
> >
> >             <Valve className="org.apache.catalina.valves.AccessLogValve"
> >                  directory="logs"  prefix="ibo3_access" suffix=".log"
> >                  pattern="common" resolveHosts="false"/>
> >
> >          </Context>
> >
> >
> >   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > ^^^^^^
> > -->
> >
> > <!--
> >   This section moved to ./Catalina/www.iboserver.com/ibo4.xml
> >
> >   vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> > vvvvvv
> >
> >         <Context path="/ibo4" docBase="ibo4.200306.1"
> >                 debug="1"
> >                 reloadable="false"
> >                 crossContext="true">
> >
> >             <Logger className="org.apache.catalina.logger.FileLogger"
> >                 prefix="ibo4_log." suffix=".txt"
> >                 timestamp="true"/>
> >
> >             <Valve className="org.apache.catalina.valves.AccessLogValve"
> >                  directory="logs"  prefix="ibo4_access" suffix=".log"
> >                  pattern="common" resolveHosts="false"/>
> >
> >             <Environment name="url.root"
> >                 value="https://www.invoicebackoffice.com/ibo4"
> >                 type=" java.lang.String" override="false"/>
> >
> >             <Environment name="smtp.server"
> >                 value="localhost"
> >                 type="java.lang.String" override="false"/>
> >
> >             <Environment name="dataStreamDefinitions"
> >                 value="/etc/ibo/DataStreams.xml"
> >                 type="java.lang.String" override="false"/>
> >
> >             <Environment name="connectionPool/JDBCDriver"
> >                 value="com.mysql.jdbc.Driver"
> >                 type="java.lang.String" override="false"/>
> >
> >             <Environment name="connectionPool/JDBCConnectionURL"
> >                 value="jdbc:mysql://localhost/ibo"
> >                 type="java.lang.String" override="false"/>
> >
> >             <Environment name="connectionPool/User"
> >                 value="root"
> >                 type="java.lang.String" override="false"/>
> >
> >             <Environment name="connectionPool/Password"
> >                 value=""
> >                 type="java.lang.String" override="false"/>
> >
> >             <Environment name="connectionPool/ConnectionPoolSize"
> >                 value="5"
> >                 type="java.lang.String" override="false"/>
> >
> >             <Environment name="connectionPool/ConnectionPoolMax"
> >                 value="100"
> >                 type=" java.lang.String" override="false"/>
> >
> >             <Environment name="connectionPool/ConnectionUseCount"
> >                 value="50"
> >                 type="java.lang.String " override="false"/>
> >
> >             <Environment name="connectionPool/ConnectionTimeout"
> >                 value="1200"
> >                 type="java.lang.String" override="false"/>
> >
> >             <Environment name="connectionPool/PoolDumpFrequency"
> >                 value="1000"
> >                 type="java.lang.String" override="false"/>
> >
> >         </Context>
> >
> >   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > ^^^^^
> > -->
> >       </Host>
> >
> >         <Host name="www.cboserver.com" debug="0"
> >                 appBase="webapps/cbo"
> >                 unpackWARs="false" autoDeploy="false"
> > deployOnStartup="false">
> >
> > <!--
> >   This section moved to ./Catalina/www.cboserver.com/ROOT.xml
> >
> >   vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> > vvvvvvv
> >
> >         <Context path="" docBase="cboweb.040506" debug="1"/>
> >
> >   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >
> > ^^^^^^^
> > -->
> >
> >         <Logger className="org.apache.catalina.logger.FileLogger"
> >                  prefix="cbo_log." suffix=".txt"
> >                  timestamp="true"/>
> >          <Valve className="org.apache.catalina.valves.AccessLogValve"
> >                  directory="logs"  prefix="cbo_access" suffix=".log"
> >                  pattern="common" resolveHosts="false"/>
> >         </Host>
> >
> >     </Engine>
> >
> >   </Service>
> >
> > </Server>
> >
> >
> >
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
>
>
> --
> Mark
> AE6RT
>



-- 
Mark
AE6RT

Re: Tomcat 5.5 Context Files

Posted by Chris Walker <un...@btinternet.com>.
After following up the advice from David and others, I
think I've got the configuration I need.  I'm posting
a minimal version of the setup as it seems to me that
this might be a fairly common requirement:

- I'm running two applications on a single server;
each has its own domain name.  

- Within each application there may be one or more
contexts, corresponding to different versions of the
webapp (used by different customers).

- Various site-specific parameters need to be set
within the context, where they will override values in
web.xml.

- I don't want any kind of auto deployment

server.xml
----------
<Server port="8005" shutdown="SHUTDOWN">

  <Service name="Catalina">
    <Connector port="8080" />

    <Engine name="Catalina" defaultHost="host1">

      <!-- it seems that if both autoDeploy and
deployOnStartup are false, the host returns empty
pages, but if either one is false then it's OK -->
      <Host name="host1" appBase="noapps"
autoDeploy="false" unpackWARs="false"
deployXML="false" />
      <Host name="host2" appBase="noapps"
autoDeploy="false" unpackWARs="false"
deployXML="false" />

    </Engine>
    
  </Service>
</Server>

directory structure
-------------------
{catalina_home}
  conf
    Catalina
      host1
        ROOT.xml: <Context
docBase="${catalina.home}/ibo/ibo3" />
        ibo4.xml: <Context
docBase="${catalina.home}/ibo/ibo4" />
        ...
      host2
        ROOT.xml: <Context
docBase="${catalina.home}/cbo/cbo.1.23.45" />
        ...
  noapps
    [nothing in here - would appBase="dev/null" work?]
  ibo
    ibo3
      WEB-INF
    ibo4
      WEB-INF
  cbo
    cbo.1.23.45
      WEB-INF
      
I seem to have problems if the context directories
aren't below ${catalina.home}, but this I can live
with.
 
Thanks to all who helped.
 
Chris
--- David Smith <dn...@cornell.edu> wrote:

> Some thoughts:
> 
> 1. The naming of all the associated files with your
> webapp should be
> consistent with the path attribute of the context
> element (assuming ibo4
> is it's name):
>     Context xml file should be named ibo4.xml
>     The webapp's directory should be named ibo4
>     If deploying from a .war file, the .war file
> should be named ibo4.war.
> 
> 2. The name of the root application is ROOT (case
> sensitive), so if this
> is to be the webapp to respond on request to /*, the
> war file, context
> xml file, and the webapp's folder should all be
> named ROOT (ROOT.xml,
> ROOT.war, webapps/ROOT).
> 
> It should also be noted that with the context xml
> file in
> config/Catalina/www.iboserver.com/ibo4.xml, the path
> and docbase
> attributes may be ignored under tomcat 5.5.  Open
> your manager webapp to
> see what's deployed and under what names.
> 
> --David
> 
> Chris Walker wrote:
> 
> >Thanks Mark.  I noticed that, but my objective is
> to
> >store configuration parameters that are
> >platform-specific outside the webapp.  The stuff in
> >the server's context definitions nicely overrides
> >anything in web.xml.
> >
> >Chris
> >
> >--- Mark Petrovic <ms...@gmail.com> wrote:
> >
> >  
> >
> >>Hi.
> >>
> >>Context fragments can also be put in your webapp's
> >>META-INF directory, per
> >>the 4th bullet item here
> >>
> >>
> >>    
> >>
>
>http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
> >  
> >
> >>E.g.,
> >>
> >>pluto:PGCRM> jar tf dist/crmrpc.war |head -3
> >>META-INF/
> >>META-INF/MANIFEST.MF
> >>META-INF/context.xml
> >>
> >>where context.xml contains, in my particular case,
> a
> >>JDBC resource
> >>definition
> >>
> >><Context path="/crmrpc" debug="5"
> reloadable="true"
> >>crossContext="true">
> >>   <Resource
> >>      name="jdbc/crm"
> >>      auth="Container"
> >>      type="javax.sql.DataSource"
> >>      maxActive="100"
> >>      maxIdle="30"
> >>      maxWait="10000"
> >>      username="u"
> >>      password="p"
> >>      driverClassName="com.mysql.jdbc.Driver"
> >>     
> >>
> >>    
> >>
>
>url="jdbc:mysql://localhost:3306/cm?autoReconnect=true"
> >  
> >
> >>      />
> >></Context>
> >>
> >>
> >>On 5/29/06, Chris Walker
> <un...@btinternet.com>
> >>wrote:
> >>    
> >>
> >>>Hello,
> >>>
> >>>I have just migrated a family of webapps from
> >>>      
> >>>
> >>Tomcat 4 to Tomcat 5.5
> >>    
> >>
> >>>.  It's
> >>>working OK, but reading through the documentation
> >>>      
> >>>
> >>I see there is a
> >>    
> >>
> >>>recommendation that I remove the <Context>
> >>>      
> >>>
> >>sections from server.xml and
> >>    
> >>
> >>>put
> >>>them in files in
> >>>      
> >>>
> >>{catalina_root}/conf/[engine]/[Host].
> >>    
> >>
> >>>But when I do this I find that each of the
> >>>      
> >>>
> >>contexts just responds with an
> >>    
> >>
> >>>empty HTML page - no HTTP error, and nothing in
> >>>      
> >>>
> >>any of the Tomcat logs to
> >>    
> >>
> >>>suggest an error.  This is the response:
> >>>
> >>>
> >>>
> >>>      
> >>>
>
>----------------------------------------------------------------------------
> >  
> >
> >>>---
> >>><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
> >>>      
> >>>
> >>Transitional//EN">
> >>    
> >>
> >>><HTML><HEAD>
> >>><META http-equiv=Content-Type content="text/html;
> >>>charset=windows-1252"></HEAD>
> >>><BODY></BODY></HTML>
> >>>
> >>>
> >>>      
> >>>
>
>----------------------------------------------------------------------------
> >  
> >
> >>>---
> >>>
> >>>I've tried various names for the context XML
> >>>      
> >>>
> >>files, and I've tried
> >>    
> >>
> >>>specifying an absolute path for the context
> >>>      
> >>>
> >>docBase, but it seems to make
> >>    
> >>
> >>>no
> >>>difference.
> >>>
> >>>Can anybody suggest what I'm doing wrong?
> >>>
> >>>Chris Walker
> >>>
> >>>
> >>>
> >>>      
> >>>
>
>----------------------------------------------------------------------------
> >  
> >
> >>>---
> >>>This is my server.xml after modification:
> >>>
> >>><Server port="8005" shutdown="SHUTDOWN">
> >>>
> >>>  <Service name="Catalina">
> >>>
> >>>    <Connector port="80"
> 
=== message truncated ===


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat 5.5 Context Files

Posted by David Smith <dn...@cornell.edu>.
Some thoughts:

1. The naming of all the associated files with your webapp should be
consistent with the path attribute of the context element (assuming ibo4
is it's name):
    Context xml file should be named ibo4.xml
    The webapp's directory should be named ibo4
    If deploying from a .war file, the .war file should be named ibo4.war.

2. The name of the root application is ROOT (case sensitive), so if this
is to be the webapp to respond on request to /*, the war file, context
xml file, and the webapp's folder should all be named ROOT (ROOT.xml,
ROOT.war, webapps/ROOT).

It should also be noted that with the context xml file in
config/Catalina/www.iboserver.com/ibo4.xml, the path and docbase
attributes may be ignored under tomcat 5.5.  Open your manager webapp to
see what's deployed and under what names.

--David

Chris Walker wrote:

>Thanks Mark.  I noticed that, but my objective is to
>store configuration parameters that are
>platform-specific outside the webapp.  The stuff in
>the server's context definitions nicely overrides
>anything in web.xml.
>
>Chris
>
>--- Mark Petrovic <ms...@gmail.com> wrote:
>
>  
>
>>Hi.
>>
>>Context fragments can also be put in your webapp's
>>META-INF directory, per
>>the 4th bullet item here
>>
>>
>>    
>>
>http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
>  
>
>>E.g.,
>>
>>pluto:PGCRM> jar tf dist/crmrpc.war |head -3
>>META-INF/
>>META-INF/MANIFEST.MF
>>META-INF/context.xml
>>
>>where context.xml contains, in my particular case, a
>>JDBC resource
>>definition
>>
>><Context path="/crmrpc" debug="5" reloadable="true"
>>crossContext="true">
>>   <Resource
>>      name="jdbc/crm"
>>      auth="Container"
>>      type="javax.sql.DataSource"
>>      maxActive="100"
>>      maxIdle="30"
>>      maxWait="10000"
>>      username="u"
>>      password="p"
>>      driverClassName="com.mysql.jdbc.Driver"
>>     
>>
>>    
>>
>url="jdbc:mysql://localhost:3306/cm?autoReconnect=true"
>  
>
>>      />
>></Context>
>>
>>
>>On 5/29/06, Chris Walker <un...@btinternet.com>
>>wrote:
>>    
>>
>>>Hello,
>>>
>>>I have just migrated a family of webapps from
>>>      
>>>
>>Tomcat 4 to Tomcat 5.5
>>    
>>
>>>.  It's
>>>working OK, but reading through the documentation
>>>      
>>>
>>I see there is a
>>    
>>
>>>recommendation that I remove the <Context>
>>>      
>>>
>>sections from server.xml and
>>    
>>
>>>put
>>>them in files in
>>>      
>>>
>>{catalina_root}/conf/[engine]/[Host].
>>    
>>
>>>But when I do this I find that each of the
>>>      
>>>
>>contexts just responds with an
>>    
>>
>>>empty HTML page - no HTTP error, and nothing in
>>>      
>>>
>>any of the Tomcat logs to
>>    
>>
>>>suggest an error.  This is the response:
>>>
>>>
>>>
>>>      
>>>
>----------------------------------------------------------------------------
>  
>
>>>---
>>><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
>>>      
>>>
>>Transitional//EN">
>>    
>>
>>><HTML><HEAD>
>>><META http-equiv=Content-Type content="text/html;
>>>charset=windows-1252"></HEAD>
>>><BODY></BODY></HTML>
>>>
>>>
>>>      
>>>
>----------------------------------------------------------------------------
>  
>
>>>---
>>>
>>>I've tried various names for the context XML
>>>      
>>>
>>files, and I've tried
>>    
>>
>>>specifying an absolute path for the context
>>>      
>>>
>>docBase, but it seems to make
>>    
>>
>>>no
>>>difference.
>>>
>>>Can anybody suggest what I'm doing wrong?
>>>
>>>Chris Walker
>>>
>>>
>>>
>>>      
>>>
>----------------------------------------------------------------------------
>  
>
>>>---
>>>This is my server.xml after modification:
>>>
>>><Server port="8005" shutdown="SHUTDOWN">
>>>
>>>  <Service name="Catalina">
>>>
>>>    <Connector port="80"
>>>               maxHttpHeaderSize="8192"
>>>               maxThreads="150"
>>>      
>>>
>>minSpareThreads="25" maxSpareThreads="75"
>>    
>>
>>>               enableLookups="false"
>>>      
>>>
>>redirectPort="8443" acceptCount="100"
>>    
>>
>>>               connectionTimeout="20000"
>>>      
>>>
>>disableUploadTimeout="true" />
>>    
>>
>>>    <Connector port="8009"
>>>               enableLookups="false"
>>>      
>>>
>>redirectPort="8443"
>>    
>>
>>>protocol="AJP/1.3"
>>>/>
>>>
>>>    <Engine name="Catalina"
>>>      
>>>
>>defaultHost="www.iboserver.com">
>>    
>>
>>>        <Host name="www.iboserver.com" debug="0"
>>>                appBase="webapps/ibo"
>>>                unpackWARs="false"
>>>                autoDeploy="false"
>>>                liveDeploy="false"
>>>                deployOnStartup="false"
>>>                deployXML="false">
>>>
>>><!--
>>>  This section moved to
>>>      
>>>
>>./Catalina/www.iboserver.com/ROOT.xml
>>    
>>
>>> 
>>>      
>>>
>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
>  
>
>>>vvvvv
>>>
>>>         <Context path="" docBase="ibo3"
>>>                debug="1"
>>>                reloadable="false"
>>>                crossContext="true">
>>>
>>>            <Logger
>>>      
>>>
>>className="org.apache.catalina.logger.FileLogger"
>>    
>>
>>>                 prefix="ibo3_log." suffix=".txt"
>>>                 timestamp="true"/>
>>>
>>>            <Valve
>>>      
>>>
>className="org.apache.catalina.valves.AccessLogValve"
>  
>
>>>                 directory="logs" 
>>>      
>>>
>>prefix="ibo3_access" suffix=".log"
>>    
>>
>>>                 pattern="common"
>>>      
>>>
>>resolveHosts="false"/>
>>    
>>
>>>         </Context>
>>>
>>>
>>> 
>>>      
>>>
>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>  
>
>>>^^^^^^
>>>-->
>>>
>>><!--
>>>  This section moved to
>>>      
>>>
>>./Catalina/www.iboserver.com/ibo4.xml
>>    
>>
>>> 
>>>      
>>>
>vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
>  
>
>>>vvvvvv
>>>
>>>        <Context path="/ibo4"
>>>      
>>>
>>docBase="ibo4.200306.1"
>>    
>>
>>>                debug="1"
>>>                reloadable="false"
>>>                crossContext="true">
>>>
>>>            <Logger
>>>      
>>>
>>className="org.apache.catalina.logger.FileLogger"
>>    
>>
>>>                prefix="ibo4_log." suffix=".txt"
>>>                timestamp="true"/>
>>>
>>>            <Valve
>>>      
>>>
>className="org.apache.catalina.valves.AccessLogValve"
>  
>
>>>                 directory="logs" 
>>>      
>>>
>>prefix="ibo4_access" suffix=".log"
>>    
>>
>>>                 pattern="common"
>>>      
>>>
>>resolveHosts="false"/>
>>    
>>
>>>            <Environment name="url.root"
>>>               
>>>      
>>>
>>value="https://www.invoicebackoffice.com/ibo4"
>>    
>>
>>>                type="java.lang.String"
>>>      
>>>
>>override="false"/>
>>    
>>
>>>            <Environment name="smtp.server"
>>>                value="localhost"
>>>                type="java.lang.String"
>>>      
>>>
>>override="false"/>
>>    
>>
>>>            <Environment
>>>      
>>>
>>name="dataStreamDefinitions"
>>    
>>
>>>                value="/etc/ibo/DataStreams.xml"
>>>                type="java.lang.String"
>>>      
>>>
>>override="false"/>
>>    
>>
>>>            <Environment
>>>      
>>>
>>name="connectionPool/JDBCDriver"
>>    
>>
>>>                value="com.mysql.jdbc.Driver"
>>>                type="java.lang.String"
>>>      
>>>
>>override="false"/>
>>
>>    
>>
>=== message truncated ===
>  
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat 5.5 Context Files

Posted by Chris Walker <un...@btinternet.com>.
Thanks Mark.  I noticed that, but my objective is to
store configuration parameters that are
platform-specific outside the webapp.  The stuff in
the server's context definitions nicely overrides
anything in web.xml.

Chris

--- Mark Petrovic <ms...@gmail.com> wrote:

> Hi.
> 
> Context fragments can also be put in your webapp's
> META-INF directory, per
> the 4th bullet item here
> 
>
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
> 
> E.g.,
> 
> pluto:PGCRM> jar tf dist/crmrpc.war |head -3
> META-INF/
> META-INF/MANIFEST.MF
> META-INF/context.xml
> 
> where context.xml contains, in my particular case, a
> JDBC resource
> definition
> 
> <Context path="/crmrpc" debug="5" reloadable="true"
> crossContext="true">
>    <Resource
>       name="jdbc/crm"
>       auth="Container"
>       type="javax.sql.DataSource"
>       maxActive="100"
>       maxIdle="30"
>       maxWait="10000"
>       username="u"
>       password="p"
>       driverClassName="com.mysql.jdbc.Driver"
>      
>
url="jdbc:mysql://localhost:3306/cm?autoReconnect=true"
>       />
> </Context>
> 
> 
> On 5/29/06, Chris Walker <un...@btinternet.com>
> wrote:
> >
> > Hello,
> >
> > I have just migrated a family of webapps from
> Tomcat 4 to Tomcat 5.5
> > .  It's
> > working OK, but reading through the documentation
> I see there is a
> > recommendation that I remove the <Context>
> sections from server.xml and
> > put
> > them in files in
> {catalina_root}/conf/[engine]/[Host].
> >
> > But when I do this I find that each of the
> contexts just responds with an
> > empty HTML page - no HTTP error, and nothing in
> any of the Tomcat logs to
> > suggest an error.  This is the response:
> >
> >
> >
>
----------------------------------------------------------------------------
> > ---
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
> Transitional//EN">
> > <HTML><HEAD>
> > <META http-equiv=Content-Type content="text/html;
> > charset=windows-1252"></HEAD>
> > <BODY></BODY></HTML>
> >
> >
>
----------------------------------------------------------------------------
> > ---
> >
> > I've tried various names for the context XML
> files, and I've tried
> > specifying an absolute path for the context
> docBase, but it seems to make
> > no
> > difference.
> >
> > Can anybody suggest what I'm doing wrong?
> >
> > Chris Walker
> >
> >
> >
>
----------------------------------------------------------------------------
> > ---
> > This is my server.xml after modification:
> >
> > <Server port="8005" shutdown="SHUTDOWN">
> >
> >   <Service name="Catalina">
> >
> >     <Connector port="80"
> >                maxHttpHeaderSize="8192"
> >                maxThreads="150"
> minSpareThreads="25" maxSpareThreads="75"
> >                enableLookups="false"
> redirectPort="8443" acceptCount="100"
> >                connectionTimeout="20000"
> disableUploadTimeout="true" />
> >
> >     <Connector port="8009"
> >                enableLookups="false"
> redirectPort="8443"
> > protocol="AJP/1.3"
> > />
> >
> >     <Engine name="Catalina"
> defaultHost="www.iboserver.com">
> >
> >         <Host name="www.iboserver.com" debug="0"
> >                 appBase="webapps/ibo"
> >                 unpackWARs="false"
> >                 autoDeploy="false"
> >                 liveDeploy="false"
> >                 deployOnStartup="false"
> >                 deployXML="false">
> >
> > <!--
> >   This section moved to
> ./Catalina/www.iboserver.com/ROOT.xml
> >
> >  
>
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> > vvvvv
> >
> >          <Context path="" docBase="ibo3"
> >                 debug="1"
> >                 reloadable="false"
> >                 crossContext="true">
> >
> >             <Logger
> className="org.apache.catalina.logger.FileLogger"
> >                  prefix="ibo3_log." suffix=".txt"
> >                  timestamp="true"/>
> >
> >             <Valve
>
className="org.apache.catalina.valves.AccessLogValve"
> >                  directory="logs" 
> prefix="ibo3_access" suffix=".log"
> >                  pattern="common"
> resolveHosts="false"/>
> >
> >          </Context>
> >
> >
> >  
>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > ^^^^^^
> > -->
> >
> > <!--
> >   This section moved to
> ./Catalina/www.iboserver.com/ibo4.xml
> >
> >  
>
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> > vvvvvv
> >
> >         <Context path="/ibo4"
> docBase="ibo4.200306.1"
> >                 debug="1"
> >                 reloadable="false"
> >                 crossContext="true">
> >
> >             <Logger
> className="org.apache.catalina.logger.FileLogger"
> >                 prefix="ibo4_log." suffix=".txt"
> >                 timestamp="true"/>
> >
> >             <Valve
>
className="org.apache.catalina.valves.AccessLogValve"
> >                  directory="logs" 
> prefix="ibo4_access" suffix=".log"
> >                  pattern="common"
> resolveHosts="false"/>
> >
> >             <Environment name="url.root"
> >                
> value="https://www.invoicebackoffice.com/ibo4"
> >                 type="java.lang.String"
> override="false"/>
> >
> >             <Environment name="smtp.server"
> >                 value="localhost"
> >                 type="java.lang.String"
> override="false"/>
> >
> >             <Environment
> name="dataStreamDefinitions"
> >                 value="/etc/ibo/DataStreams.xml"
> >                 type="java.lang.String"
> override="false"/>
> >
> >             <Environment
> name="connectionPool/JDBCDriver"
> >                 value="com.mysql.jdbc.Driver"
> >                 type="java.lang.String"
> override="false"/>
> 
=== message truncated ===


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat 5.5 Context Files

Posted by Mark Petrovic <ms...@gmail.com>.
Hi.

Context fragments can also be put in your webapp's META-INF directory, per
the 4th bullet item here

http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

E.g.,

pluto:PGCRM> jar tf dist/crmrpc.war |head -3
META-INF/
META-INF/MANIFEST.MF
META-INF/context.xml

where context.xml contains, in my particular case, a JDBC resource
definition

<Context path="/crmrpc" debug="5" reloadable="true" crossContext="true">
   <Resource
      name="jdbc/crm"
      auth="Container"
      type="javax.sql.DataSource"
      maxActive="100"
      maxIdle="30"
      maxWait="10000"
      username="u"
      password="p"
      driverClassName="com.mysql.jdbc.Driver"
      url="jdbc:mysql://localhost:3306/cm?autoReconnect=true"
      />
</Context>


On 5/29/06, Chris Walker <un...@btinternet.com> wrote:
>
> Hello,
>
> I have just migrated a family of webapps from Tomcat 4 to Tomcat 5.5
> .  It's
> working OK, but reading through the documentation I see there is a
> recommendation that I remove the <Context> sections from server.xml and
> put
> them in files in {catalina_root}/conf/[engine]/[Host].
>
> But when I do this I find that each of the contexts just responds with an
> empty HTML page - no HTTP error, and nothing in any of the Tomcat logs to
> suggest an error.  This is the response:
>
>
> ----------------------------------------------------------------------------
> ---
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META http-equiv=Content-Type content="text/html;
> charset=windows-1252"></HEAD>
> <BODY></BODY></HTML>
>
> ----------------------------------------------------------------------------
> ---
>
> I've tried various names for the context XML files, and I've tried
> specifying an absolute path for the context docBase, but it seems to make
> no
> difference.
>
> Can anybody suggest what I'm doing wrong?
>
> Chris Walker
>
>
> ----------------------------------------------------------------------------
> ---
> This is my server.xml after modification:
>
> <Server port="8005" shutdown="SHUTDOWN">
>
>   <Service name="Catalina">
>
>     <Connector port="80"
>                maxHttpHeaderSize="8192"
>                maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
>                enableLookups="false" redirectPort="8443" acceptCount="100"
>                connectionTimeout="20000" disableUploadTimeout="true" />
>
>     <Connector port="8009"
>                enableLookups="false" redirectPort="8443"
> protocol="AJP/1.3"
> />
>
>     <Engine name="Catalina" defaultHost="www.iboserver.com">
>
>         <Host name="www.iboserver.com" debug="0"
>                 appBase="webapps/ibo"
>                 unpackWARs="false"
>                 autoDeploy="false"
>                 liveDeploy="false"
>                 deployOnStartup="false"
>                 deployXML="false">
>
> <!--
>   This section moved to ./Catalina/www.iboserver.com/ROOT.xml
>
>   vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> vvvvv
>
>          <Context path="" docBase="ibo3"
>                 debug="1"
>                 reloadable="false"
>                 crossContext="true">
>
>             <Logger className="org.apache.catalina.logger.FileLogger"
>                  prefix="ibo3_log." suffix=".txt"
>                  timestamp="true"/>
>
>             <Valve className="org.apache.catalina.valves.AccessLogValve"
>                  directory="logs"  prefix="ibo3_access" suffix=".log"
>                  pattern="common" resolveHosts="false"/>
>
>          </Context>
>
>
>   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> ^^^^^^
> -->
>
> <!--
>   This section moved to ./Catalina/www.iboserver.com/ibo4.xml
>
>   vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> vvvvvv
>
>         <Context path="/ibo4" docBase="ibo4.200306.1"
>                 debug="1"
>                 reloadable="false"
>                 crossContext="true">
>
>             <Logger className="org.apache.catalina.logger.FileLogger"
>                 prefix="ibo4_log." suffix=".txt"
>                 timestamp="true"/>
>
>             <Valve className="org.apache.catalina.valves.AccessLogValve"
>                  directory="logs"  prefix="ibo4_access" suffix=".log"
>                  pattern="common" resolveHosts="false"/>
>
>             <Environment name="url.root"
>                 value="https://www.invoicebackoffice.com/ibo4"
>                 type="java.lang.String" override="false"/>
>
>             <Environment name="smtp.server"
>                 value="localhost"
>                 type="java.lang.String" override="false"/>
>
>             <Environment name="dataStreamDefinitions"
>                 value="/etc/ibo/DataStreams.xml"
>                 type="java.lang.String" override="false"/>
>
>             <Environment name="connectionPool/JDBCDriver"
>                 value="com.mysql.jdbc.Driver"
>                 type="java.lang.String" override="false"/>
>
>             <Environment name="connectionPool/JDBCConnectionURL"
>                 value="jdbc:mysql://localhost/ibo"
>                 type="java.lang.String" override="false"/>
>
>             <Environment name="connectionPool/User"
>                 value="root"
>                 type="java.lang.String" override="false"/>
>
>             <Environment name="connectionPool/Password"
>                 value=""
>                 type="java.lang.String" override="false"/>
>
>             <Environment name="connectionPool/ConnectionPoolSize"
>                 value="5"
>                 type="java.lang.String" override="false"/>
>
>             <Environment name="connectionPool/ConnectionPoolMax"
>                 value="100"
>                 type="java.lang.String" override="false"/>
>
>             <Environment name="connectionPool/ConnectionUseCount"
>                 value="50"
>                 type="java.lang.String" override="false"/>
>
>             <Environment name="connectionPool/ConnectionTimeout"
>                 value="1200"
>                 type="java.lang.String" override="false"/>
>
>             <Environment name="connectionPool/PoolDumpFrequency"
>                 value="1000"
>                 type="java.lang.String" override="false"/>
>
>         </Context>
>
>   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> ^^^^^
> -->
>       </Host>
>
>         <Host name="www.cboserver.com" debug="0"
>                 appBase="webapps/cbo"
>                 unpackWARs="false" autoDeploy="false"
> deployOnStartup="false">
>
> <!--
>   This section moved to ./Catalina/www.cboserver.com/ROOT.xml
>
>   vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> vvvvvvv
>
>         <Context path="" docBase="cboweb.040506" debug="1"/>
>
>
>   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> ^^^^^^^
> -->
>
>         <Logger className="org.apache.catalina.logger.FileLogger"
>                  prefix="cbo_log." suffix=".txt"
>                  timestamp="true"/>
>          <Valve className="org.apache.catalina.valves.AccessLogValve"
>                  directory="logs"  prefix="cbo_access" suffix=".log"
>                  pattern="common" resolveHosts="false"/>
>         </Host>
>
>     </Engine>
>
>   </Service>
>
> </Server>
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


-- 
Mark
AE6RT