NetXMS Support Forum

English Support => General Support => Topic started by: curruscanis on June 17, 2015, 11:06:35 PM

Title: Problems with Centos and Tomcat web server install
Post by: curruscanis on June 17, 2015, 11:06:35 PM
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.
Title: Re: Problems with Centos and Tomcat web server install
Post by: tomaskir on June 18, 2015, 12:51:05 AM
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.
Title: Re: Problems with Centos and Tomcat web server install
Post by: Alex Kirhenshtein on June 18, 2015, 01:44:28 AM
For 2.x branch you need at least Tomcat7 (Servlet API 3.0) running on JRE7 or newer.
Title: Re: Problems with Centos and Tomcat web server install
Post by: curruscanis on June 18, 2015, 05:52:25 PM
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!

Title: Re: Problems with Centos and Tomcat web server install
Post by: tardoe on May 05, 2017, 03:38:04 PM
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!
Title: Re: Problems with Centos and Tomcat web server install
Post by: Kevo on May 10, 2017, 05:07:18 PM
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.
Title: Re: Problems with Centos and Tomcat web server install
Post by: Kevo on May 15, 2017, 04:25:41 AM
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.
Title: Re: Problems with Centos and Tomcat web server install
Post by: new centos7 user on June 12, 2017, 03:11:26 PM

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