Article 5DBHD More issues with Tomcat 9

More issues with Tomcat 9

by
mfoley
from LinuxQuestions.org on (#5DBHD)
I've upgraded to Tomcat 9 from Tomcat 8. Tomcat fails to start. I get errors like:
Code:26-Jan-2021 13:42:03.571 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin Match [Server/Service/Engine/Host] failed to se
t property [xmlValidation] to [false]
26-Jan-2021 13:42:03.575 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin Match [Server/Service/Engine/Host] failed to se
t property [xmlNamespaceAware] to [false]
26-Jan-2021 13:42:03.576 WARNING [main] org.apache.tomcat.util.digester.Digester.endElement No rules found matching [Server/Service/Engine/Host
/Logger]In my server.xml I have <Host> configs like:
Code: <Host name="www.horeb-wright3.org" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">

<Alias>horeb-wright3.org</Alias>
<Logger className="org.apache.catalina.logger.FileLogger" directory="logs/" prefix="horeb_access_log" suffix=".log" timestamp="true"/>

<Context path="" docBase="horeb-wright3" reloadable="false" allowLinking="true">
<WatchedResource>/WEB-INF/web.xml</WatchedResource>
</Context>
</Host>I've tried searching for this problem, and I'm gleaning that there is an issue with xmlValidation and xmlNamespaceAware and allowLinking in the <Host> directive, and there being issues with <Context> directives in server.xml. When I remove the <Context> element, that error disappears (allowLinking and WatchedResouce are defined in context.xml). But what to do with xmlValidation and xmlNamespaceAware? According to the Tomcat 9 documentation https://tomcat.apache.org/tomcat-9.0...nfig/host.html, these are no longer attributes of the <Host> element. Do they go somewhere else? Should they simply be removed from <Host>?latest?d=yIl2AUoC8zA latest?i=L1OfwowdRD0:hakXFmGw3Q4:F7zBnMy latest?i=L1OfwowdRD0:hakXFmGw3Q4:V_sGLiP latest?d=qj6IDK7rITs latest?i=L1OfwowdRD0:hakXFmGw3Q4:gIN9vFwL1OfwowdRD0
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments