Thanks! Ok let me know if I can achive things in a better way. Now I have a server.xml like this:
<Server port="8005" shutdown="SHUTDOWN"> <Listener ... <Service name="Catalina"> <Connector port="8080" ... <Engine name="Catalina" defaultHost="localhost"> <Realm .. <Host name="localhost" appBase="webapps" ... </Engine> </Service> <Service name="a"> <Connector port="11111" clientAuth="false" keyAlias="aaaaaaaa" /> <Engine name="a" > <Realm ... <Host name="host1" appBase="services/a" > </Host> </Engine> </Service> <Service name="b"> <Connector port="222222" clientAuth="true" keyAlias="bbbbbbbb" /> <Engine name="b" > <Realm ... <Host name="host2" appBase="services/b" > </Host> </Engine> </Service> <Service name="c"> <Connector port="333333" clientAuth="true" keyAlias="ccccccc" /> <Engine name="c" > <Realm ... <Host name="host3" appBase="services/c" > </Host> </Engine> </Service> Please note that we need different ports and different configurations (like clientAuth or keyAlias) for the applications. If there is a better way and have a tomcat manager to deploy all applications, please let me know! Thank you in advance! Am Di., 4. Dez. 2018 um 11:53 Uhr schrieb Mark Thomas <ma...@apache.org>: > On 04/12/2018 10:19, Frank Schullerer wrote: > > Hello, > > > > I think this question is independent from the tomcat version but I tried > it > > with Tomcat 9.0.13 on Windows. > > We have several "service" tags in our server.xml because we have several > > applications > > running in one tomcat with several ports and different configuration > > (clientAuth etc). > > I tried to use the tomcat manager to deploy to different services but it > > failed. It seems that the tomcat manager can only deploy within the same > > service because when I deploy the tomcat manager itself to a different > > service than it works. I can deploy to that service. > > > > Is this correct or can I configure the tomcat manager to deploy to other > > services? I also tried to achive that with a configuration with > > "context.xml" but failed. > > > > Please help! > > TL;DR you can't deploy services that way. > > The Tomcat Manager application only works with the Host to which it has > been deployed. > > In Tomcat: > - There is exactly one Server > - A Server may contain 0 or more Services > - A Service may contain 0 or more Connectors and no more than one Engine > - An Engine may contain 0 or more Hosts > - A host may contain 0 or more Contexts (Context == web application) > > (I left a few things like Valves and Executors out to keep it simple) > > > The Tomcat Host Manager application only works with the Engine > associated with the Host to which it has been deployed. > > Mark > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >