Jakub,

On 5/30/24 05:25, Jakub Królikowski wrote:
Where is your <Manager> configuration located? It *should* be inside
your <Context> located in META-INF/context.xml in your web application.
If it's in there, then everything it does should be in the context (and
ClassLoader) of your web application -- where your classes should be
locatable.

If you have it anywhere else, it probably won't work the way you expect
it to work.

Yes, you are right! Thank you for this hint!
I have configured <Manager> in <tomcat-dir>/conf/server.xml.
And indeed - interestingly, StandardManager, works correctly even there!
PersistentManager, however, does not.
After moving the configuration to <app-dir>/META-INF/context.xml, both
managers work fine.
It may be worth mentioning this in the documentation:
https://tomcat.apache.org/tomcat-10.1-doc/config/manager.html#Persistence_Across_Restarts

Would you like to provide a documentation patch/PR that works for you?

-chris

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

Reply via email to