Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. WAR file

WAR file

Scheduled Pinned Locked Moved Support
5 Posts 3 Posters 27.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ahd-developA
    ahd-developA
    ahd-develop
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • ahd-developA
      ahd-developA
      ahd-develop
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • F
        F
        Filipp Sudanov
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • H
          H
          Hanfelt
          wrote on last edited by
          #4

          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 08.31.52@2x.png

          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.

          1 Reply Last reply
          0
          • ahd-developA
            ahd-developA
            ahd-develop
            wrote on last edited by
            #5

            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?

            1 Reply Last reply
            0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            Powered by NodeBB Contributors
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups