Jon,
On 11/16/21 12:55, jonmcalexan...@wellsfargo.com.INVALID wrote:
I meant the other configuration files. I guess I haven't dug deep enough, but
DOES Tomcat handle the catalina.properties, catalina.policy,
logging.properties, etc. files hierarchically similar to how Microsoft handles
web.config files? CATALINA_HOME being the parent and Instances automatically
inheriting from the Parent unless overridden at the instance level in its conf
folder?
Basically can I publish a parent catalina.policy file and NOT include one in
the instance?
My presentation says you need your own if you want to use the security
manager. Looking at catalina.sh, it always uses CATALINA_BASE for that
purpose, but it could be detected at runtime. Patches are welcome.
When using the Windows Service runner, the path to the catalina.policy
file is captured in the Windows Registry, so you can't detect it on the
fly. That path must be passed-into the launching JVM, so by the time
Tomcat gets chance to observe the situation, it's too late to make any
changes.
So if you were to change this in catalina.sh|bat, you'd want to make a
similar change to service.bat to auto-detect the (current) situation and
store the appropriate path in the registry, understanding that any
change to the file-layout would require a refresh of that stored-info.
-chris
-----Original Message-----
From: Christopher Schultz <ch...@christopherschultz.net>
Sent: Tuesday, November 16, 2021 11:39 AM
To: users@tomcat.apache.org
Subject: Re: How to *properly* create and use a CATALINA_BASE installation
Jon,
On 11/16/21 08:55, jonmcalexan...@wellsfargo.com.INVALID wrote:
I too would like to know more of what Chris is saying in regards to the conf
folder.
You mean conf/[engine]/[host]/[webapp].xml? This is just "standard"
deployment descriptor stuff:
https://urldefense.com/v3/__http://tomcat.apache.org/tomcat-8.5-
doc/config/context.html*Naming__;Iw!!F9svGWnIaVPGSwU!-
J4ClOAv1FBlpqrYFufoMLwNKP7MYp1SNF2n56QIN2gbaVLDGedI1-
_HG16mI1aNMIUDsoU$
-chris
Thanks,
Sent with BlackBerry Work
(https://urldefense.com/v3/__http://www.blackberry.com__;!!F9svGWnIa
VP
GSwU!-J4ClOAv1FBlpqrYFufoMLwNKP7MYp1SNF2n56QIN2gbaVLDGedI1-
_HG16mI1aNO
XCqE2Q$ ) ________________________________
From: Michael B Allen <iop...@gmail.com>
Sent: Nov 15, 2021 4:24 PM
To: Tomcat Users List <users@tomcat.apache.org>
Subject: Re: How to *properly* create and use a CATALINA_BASE
installation
On Mon, Nov 15, 2021 at 4:31 PM Christopher Schultz
<ch...@christopherschultz.net> wrote:
conf
All of the conf files.
Specifically, you'll want server.xml and web.xml. You can also choose
to customize context.xml, and put any [engine]/[host]/[webapp].xml
deployment descriptors there.
Hi chros,
Ok, so then the minimum required is server.xml and web.xml?
And then there are optional files like context.xml? Are all of the
other files also optional and completely overwrite settings like
tomcat-users.xml or only some?
I have confirmed that adding only web.xml alone resolves the issue
completely. I no longer get 404's and the application works. But I
would like to further understand this as much as possible to document
it for my customers.
Thanks,
Mike
--
Michael B Allen
Java Active Directory Integration
https://urldefense.com/v3/__http://www.ioplex.com/__;!!F9svGWnIaVPG
SwU
!7AZZQCO9WJpNEOtenm9YTmcUeIkzx380FbL8mx5PyVGCQ-
EBXRwRiA3AwP2ZQheJHlz-1
L4$
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org