NetXMS Support Forum

English Support => General Support => Topic started by: ahd-develop on February 25, 2025, 04:49:07 AM

Title: WAR file
Post by: ahd-develop on February 25, 2025, 04:49:07 AM
I have worked at this for over a day now and I'm totally lost. Tomcat manager is giving me the following error.

"FAIL - Application at context path [/nxmc-5.1.3] could not be started"


I've recently upgraded from Debian 11 to 12, somewhat accidentally. Huh? What? Latest kernel installing? Oh shit! Surprisingly however everything seemed to still be working. Even ended up on the latest NetXMS.

Debian:
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm

Tomcat:
bebop@summachine:/opt/tomcat/webapps# apt list tomcat10
Listing... Done
tomcat10/stable 10.1.6-1+deb12u2 all

I never was able to get the war file to work before. I can run the *,jar file client from my Debian 12 workstation but for the life of me I have never been able to get the war file working.

I'm a bit of a Linux newb and need assistance. I have loaded the war via the Tomcat web manager. I have also loaded it manually by putting it into the webapps directory. Each time I cleaned up the files and restarted tomcat "systemctl stop tomcat", clean stuff up, "systemctl start tomcat".

Help.

Title: Re: WAR file
Post by: ahd-develop on February 26, 2025, 04:20:37 AM
Hmmm... I checked through documentation and everything looks good for requirements. I didn't list Java version previously but here it is.

bebop@summachine:/opt/tomcat/work/Catalina/localhost/nxmc-5.1.3# java --version
openjdk 17.0.13 2024-10-15
OpenJDK Runtime Environment (build 17.0.13+11-Debian-2deb12u1)
OpenJDK 64-Bit Server VM (build 17.0.13+11-Debian-2deb12u1, mixed mode, sharing

There is no log file in /opt/tomcat/work/Catalina/localhost/nxmc-5.1.3 (empty directory) and I cannot glean anything useful (not that it doesn't exist) from the Tomcat log files.



Title: Re: WAR file
Post by: Filipp Sudanov on March 03, 2025, 05:10:12 PM
tomcat10 is not supported, they switched to servlet-api version 5, which is completely defferent and not supported by Eclipse RAP framework (we use it for webui).

You can try to use tomcat9, if it's available on Debian, or there's standalone web launcher base on jetty10 here: https://github.com/netxms/nxmc-web-launcher
Title: Re: WAR file
Post by: Hanfelt on March 05, 2025, 09:41:16 AM
The easiest way that i found when you are on debian is to install the web frontend / api in docker. Check the official documentation to install docker on debian first.

services:
  tomcat:
    image: tomcat:9.0
    container_name: tomcat9
    ports:
      - "8080:8080"
    volumes:
      - ./webapps:/usr/local/tomcat/webapps
      - ./logs:/usr/local/tomcat/logs
    environment:
      - TZ=Europe/Stockholm
      - CATALINA_OPTS=-Xms512m -Xmx1024m
      - NXMC_SERVER=x.x.x.x #WEB
      - NX_SERVER=x.x.x.x #API
    restart: unless-stopped


Download war files from netxms and drop them here with the same names as in the picture:
CleanShot 2025-03-05 at [email protected]

Its quite nice to manage docker with visual code or else you can just start the docker from shell.

http://localhost:8080 is the server running on.

Now you can install another docker like nginx-proxy-manager and let it point to this server.

Good luck.
Title: Re: WAR file
Post by: ahd-develop on March 16, 2025, 10:55:56 PM
Thank you gentlemen for your replies.

I am currently in the process of switching "everything" to Docker. Unfortunately I have to learn Docker from scratch. No big deal, it's how I have learned everything. I'm loving it though! ;D Embarrassed I have not learned it up until now. Docker is INCREDIBLE!!! <embarassed egg face grin>

I came from the world of Vmware as the only acceptable way of virtualization. Virtualizing the app on top of a virtual machine is making me giggle like a little school girl. Combine that with I have developed a love affair with Debian and all feels complete in the world.

Is there any chance of a dockerized 'current' version of Netxms? If not I am planning on a headless Debian VM with Netxms installed along with docker to run all of my containers. Dockerized Netxms would be awesome though.

I'm currently running on ESXi free for my home/lab. Sorry to ask here but does anybody have any experience with Proxmox? Any good? Would you run it in a small business, say up to 100 users?