You are not logged in.

#1 2024-03-05 07:47:09

tachtler
Member
Registered: 2020-08-23
Posts: 38

[solved] - Tomcat update overrides webapps/ROOT application

Hi,

I deploy my web application as ROOT.war in tomcat9.

However, with every  update of tomcat9 the directory

/var/lib/tomcat9/webapps

and all web applications contained therein are also redeployed, which means that my web application is overwritten.

Under CentOS, this problem was solved by excluding the ROOT and sample web applications in a separate RPM package.

Does anyone have the same problem under Archlinux and if so, how was it solved?

Thanks and regards
Klaus.

Last edited by tachtler (2024-03-05 09:57:59)

Offline

#2 2024-03-05 08:47:16

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,267

Re: [solved] - Tomcat update overrides webapps/ROOT application

I'd deploy my actual application under it's actual name and instead reconfigure the Context path root to point there.

If you're dead set in overriding the ROOT path instead: https://wiki.archlinux.org/title/Pacman … _to_system

Offline

#3 2024-03-05 09:47:55

tachtler
Member
Registered: 2020-08-23
Posts: 38

Re: [solved] - Tomcat update overrides webapps/ROOT application

Hi V1del,

thank you for the link, I will try this good idea!

Greetings
Klaus.

Offline

#4 2024-03-05 09:57:40

tachtler
Member
Registered: 2020-08-23
Posts: 38

Re: [solved] - Tomcat update overrides webapps/ROOT application

Hi V1del,

configure the following parameter inside

/etc/pacman.conf

will solve my little problem:

[options]
...
NoExtract=var/lib/tomcat9/webapps/ROOT/*
...

Thank you again!
Klaus.

Offline

Board footer

Powered by FluxBB