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. Problems with Centos and Tomcat web server install

Problems with Centos and Tomcat web server install

Scheduled Pinned Locked Moved Support
8 Posts 6 Posters 55.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.
  • C
    C
    curruscanis
    wrote on last edited by
    #1

    I have installed the 2.0 beta on a fresh install of CentOS 6.4, 64bit.  I have NetXMS installed and working with the management console, however I am having issues with the website.

    I have copied the Web "WAR" file with this command to the appropriate tomcat directory:
     cp nxmc-2.0-M4.war /var/lib/tomcat6/webapps

    The website then propagates as expected to the "nxmc-2.0-M4" directory

    However when I try to access the website at http://server ip address/nxmc-2.0-M4/nxmc

    ( just in case your wondering... no http://server ip address/nxmc does not work either... 🙂

    I am getting the following error when attempting to access the website:

    HTTP Status 404 - ProxyServlet: /nxmc-2.0-M4/nxmc

    type Status report

    message ProxyServlet: /nxmc-2.0-M4/nxmc

    description The requested resource (ProxyServlet: /nxmc-2.0-M4/nxmc) is not available.

    Apache Tomcat/6.0.24

    -------------------

    Any ideas?

    Also, Victor, great software!  If there is anything I can do to help let me know.

    Thank you.

    1 Reply Last reply
    0
    • T
      T
      tomaskir
      wrote on last edited by
      #2

      Look into the tomcat logs, is the app properly deployed?

      You can also install the web-manager, and deploy the app using it.
      It will show you a lot of details and statistics, as well if the app deployed or not.

      1 Reply Last reply
      0
      • A
        A
        Alex Kirhenshtein
        wrote on last edited by
        #3

        For 2.x branch you need at least Tomcat7 (Servlet API 3.0) running on JRE7 or newer.

        1 Reply Last reply
        0
        • C
          C
          curruscanis
          wrote on last edited by
          #4

          Thank you Alex, that was my problem.

          I installed Java 1.8 64 bit in my case, and removed tomcat 6 - and installed Tomcat 7

          A bit of messing with it and it works.

          Thank you all for such quick assistance!

          1 Reply Last reply
          0
          • T
            T
            tardoe
            wrote on last edited by
            #5

            Hi All,

            We have a vanilla install of nxmc-2.1-M3 and I can't seem to get it working with either Java 1.7 or 1.8 or Tomcat7 or Tomcat8.

            Exactly the same symtoms as above.

            Cheers!

            1 Reply Last reply
            0
            • K
              K
              Kevo
              wrote on last edited by
              #6

              I am trying to install the webui on a debian 8 container and I'm having the same issue. Getting a 404 error. I've tried increasing memory, but no luck. The app does show it's running on the tomcat manager interface, and the only other error I can find in the log is a message about increasing cache size.

              Anyone know where I should look next.

              1 Reply Last reply
              0
              • K
                K
                Kevo
                wrote on last edited by
                #7

                So instead of loading the file into the webapps directory I deployed it through the manager interface in the browser. That seems to work fine. Not sure what the difference is, but it worked the first time and it seems the problem is solved.

                1 Reply Last reply
                0
                • N
                  N
                  new centos7 user
                  wrote on last edited by
                  #8

                  Re: Steps to Install NetXMS on CentOS 6.4 with web frontend
                  « Reply #3 on: June 10, 2017, 10:00:26 pm »
                  ReplyQuoteModifyModifyRemoveRemove
                  Hello,

                  I have a question as I am new to centos 7 and netxms and following you steps.

                  The /etc/init.d file what is file location?
                  I used nano /etc/init.d but will not save.
                  Where do I place the file or what directory do I open to edit?

                  So were is the tomcat file placed in the root directory?

                  Create tomcat startup script in /etc/init.d
                    #!/bin/bash
                  # description: Tomcat Start Stop Restart
                  # processname: tomcat
                  # chkconfig: 234 20 80
                  JAVA_HOME=/opt/jdk1.8.0_45
                  export JAVA_HOME
                  PATH=$JAVA_HOME/bin:$PATH
                  export PATH
                  CATALINA_HOME=/usr/local/tomcat7

                  case $1 in
                  start)
                  sh $CATALINA_HOME/bin/startup.sh
                  ;;
                  stop)
                  sh $CATALINA_HOME/bin/shutdown.sh
                  ;;
                  restart)
                  sh $CATALINA_HOME/bin/shutdown.sh
                  sh $CATALINA_HOME/bin/startup.sh
                  ;;
                  esac
                  exit 0
                  Make script execuitable:  chmod 755 tomcat
                  Chkconfig –add tomcat

                  Install NetXMS Web Frontend:
                  wget https://www.netxms.org/download/webui/nxmc-2.0-M4.war
                  cp nxmc-2.0-M4.war nxmc.war
                  cp nxmc.war /usr/local/tomcat7/webapps
                  service tomcat start

                  Thanks for your help

                  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