Graham,

On 7/7/23 08:48, Graham Leggett wrote:
1. Please read
https://tomcat.apache.org/tomcat-9.0-doc/config/context.html#Defining_a_context 
<https://tomcat.apache.org/tomcat-9.0-doc/config/context.html#Defining_a_context>

You are injecting a Context into a Host at the time when the
server.xml file is parsed. It does not go through the proper
"deployment" processing at start time.

I understand the different places that tomcat looks for contexts, I don’t 
understand “It does not go through the proper “deployment” processing at start 
time”. Can you clarify?

2. What result did you expect?

What I have is a context that is tightly bound to the tomcat that contains it. 
The whole tomcat generated is autogenerated, so creating lots of little files 
and somehow mapping their filenames safely on the filesystem is complexity I 
would rather avoid. One single server.xml is perfect in this case.

Where I am getting stuck is that tomcat is being coy with the deployment - I 
see tomcat complain loudly if you point at an appBase that doesn’t exist, but 
you change it to an appBase that does exist and tomcat starts fine, says 
nothing, and every URL returns a 404. Something has gone wrong somewhere, but 
without being given a clue as to what it is, I’m stuck.

When you start Tomcat, do you get a message about /foo/bar being deployed in catalina.out? For example, I get this for every deployment:

Jul 06, 2023 4:09:33 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory [/full/path/to/web/application]
Jul 06, 2023 4:09:39 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deployment of web application directory [/full/path/to/web/application] has finished in [6,007] ms

Are you seeing that, and does it include (a) the expected path to your application and (b) no errors indicating that deployment has failed?

-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to