On 3/11/2022 9:40 AM, Rob Sargent wrote:
On Mar 11, 2022, at 8:17 AM, Thomas Hoffmann (Speed4Trade GmbH)
<thomas.hoffm...@speed4trade.com.invalid> wrote:
-----Ursprüngliche Nachricht-----
Von: Rob Sargent <rsarg...@xmission.com>
Gesendet: Freitag, 11. März 2022 15:14
An: Tomcat Users List <users@tomcat.apache.org>
Betreff: Re: correct usage of properties to supply database port
On Mar 11, 2022, at 6:50 AM, Mark H. Wood <mw...@iupui.edu> wrote:
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
Thanks. I’ll take a look at that. I don’t see any related error messages but
I’ll
check my logging.
Thanks
Nesting of Context is not allowed as far as I know.
The documentation tells, which parent nodes/Elements are allowed , e.g. valve:
https://tomcat.apache.org/tomcat-10.0-doc/config/valve.html
only allowed in host, Context or Engine Element.
Ok. Thanks for digging in to that. I am not able to investigate (or correct) at
the moment
Related warnings from your initial post:
WARNING: No rules found matching [Context/Context/Valve]
WARNING: No rules found matching [Context/Context]
-Terence Bandoian
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org