NetXMS Support Forum

English Support => General Support => Topic started by: madmucho on August 03, 2020, 04:51:09 PM

Title: Netxms tomcat .war deploy
Post by: madmucho on August 03, 2020, 04:51:09 PM
Dear support team,
i migrated to v3, and unable to get correct web ui .war file when i deploy latest .war from download section i still get app version 2.2.17 (9525) at logon screen and version conflict after login.

Screenshot attached.
Title: Re: Netxms tomcat .war deploy
Post by: Sch.Donat on August 03, 2020, 11:32:28 PM
Hi!

For me it seems the web server still uses the old file. You could try recreating the config files and see if that help. If you are windows, you try to reinstall the webui service (webui installer).

Regards
Title: Re: Netxms tomcat .war deploy
Post by: Victor Kirhenshtein on August 04, 2020, 10:31:05 AM
Sometimes it helps to undeploy application, stop Tomcat, clean Tomcat's working directory, and deploy application again.

Best regards,
Victor
Title: Re: Netxms tomcat .war deploy
Post by: madmucho on August 04, 2020, 12:04:28 PM
That is strange,

i using tomcat8 on debian 10, so i stop it, delete working dir /var/lib/tomcat8/webapps

start it for test, so no web working, i copy downloaded .war from web into webapps folder, it been automaticaly deployed i see v3 libs in plugins directory, but web told me same is i posted before.
:-\
i do upgrade of previous versions using this method and was ok.

#!/bin/bash

wget -O ROOT.war https://www.netxms.org/download/releases/3.4/nxmc-3.4.284.war
chown tomcat8:tomcat8 ROOT.war
service tomcat8 stop
cp -f ROOT.war /var/lib/tomcat8/webapps
service tomcat8 start
Title: Re: Netxms tomcat .war deploy
Post by: Victor Kirhenshtein on August 04, 2020, 04:11:33 PM
/var/lib/tomcat8/webapps is where application is deployed. But working directories for applications are in /var/lib/tomcat9/work/Catalina/localhost - try to delete them.

Best regards,
Victor
Title: Re: Netxms tomcat .war deploy
Post by: madmucho on August 06, 2020, 11:17:10 AM
Quote from: Victor Kirhenshtein on August 04, 2020, 04:11:33 PM
/var/lib/tomcat8/webapps is where application is deployed. But working directories for applications are in /var/lib/tomcat8/work/Catalina/localhost - try to delete them.

Best regards,
Victor

Thank You Victor, exactly like you write, after delete catalina work dir and start tomcat again new UI is up and running.

Problem solved.