On Thu, Mar 10, 2022 at 09:40:48AM -0700, Rob Sargent wrote:
> About context/context/value:  I have this context.xml. Is the value 
> correctly inside the outer Context?
> 
>     <Context reloadable="true">
> 
>        <Resource
>            name="jdbc/sgsdb/tbar"
>            url="jdbc:postgresql://localhost:5432:/tbar"
>            driverClassName="org.postgresql.Driver"
>            type="javax.sql.DataSource"
>            factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
>            testWhileIdle="false"
>            testOnBorrow="true"
>            testOnReturn="false"
>            validationInterval="30000"
>            validationQuery="select 1"
>            timeBetweenEvictionRunsMillis="30000"
>            maxActive="50"
>            initialSize="3"
>            maxWait="10000"
>            removeAbandonedTimeout="3600"
>            removeAbandoned="true"
>            minEvictableIdleTimeMillis="30000"
>            minIdle="1"
>            maxIdle="5"
>            logAbandoned="true"
>            username="shoc"
>            password="password"
>            />
> 
>        <Context>
>          <Valve
>          className="org.apache.catalina.valves.AccessLogValve"
>          prefix="sgs_access"
>          directory="${SGSSRVR_AccessLogDir}"
>          maxDays="7">
>          </Valve>
>        </Context>
>     </Context>

I don't think you can nest <Context>s that way, and I'm not sure what
it would mean.  I would remove the inner <Context></Context> pair.

-- 
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu

Attachment: signature.asc
Description: PGP signature

Reply via email to