Web Interface does not work

Started by rainerh, May 15, 2017, 03:42:27 PM

Previous topic - Next topic

rainerh

Hello,

I made an update from V 2.0.6 to 2.1-M3
Everything works fine

Today I made the update from 2.1-M3 to 2.1-RC1
I think the server works fine, I can us it with my local Management Installation.

I made the update with WEB Interface on my DEBIAN (nxmc-2.1-RC1.war --> nxmc.war)
The neccessary folder (nxmc) was cerate automaticaly.

I cannot reach the side by http://server:8080/nxmc/ or http://server:8080/nxmc/nxmc/
Message:
HTTP Status 404 - ProxyServlet: /
type Status report
message ProxyServlet: /
description The requested resource is not available.
Apache Tomcat/7.0.56 (Debian)

Kevo

Thread right below this one about web interface on CentOS addresses this problem.

TL;DR;

Try installing the war file using the manager interface that you can install along with tomcat.

Kevo

Also, I should mention that I also couldn't get it to work with java 7.

So I added
deb http://ftp.debian.org/debian jessie-backports main
to /etc/apt/sources.list

Installed
apt-get install -t jessie-backports openjdk-8-jre-headless ca-certificates-java tomcat8 tomcat8-admin

And deployed it using the web manager interface that is linked from the default tomcat webpage.

I also upped the memory and cache sizes based on message I saw in the logs.



rainerh

Thanky to Kevo  :)
I did everythin and will have this configuraion on DEBIAN:
java version "1.8.0_131"
tomcat8
tomcat-admin
I delete all old files (nxmc.war) and directories (nxmc) in /var/lib/tomcat8/webapps
Then I started Tomcat Web Application Manager an deployed the nxmc.war file.
After a few seconds the /nxmc was listed in Applications
But when I click on this Applikation I will have a new message and the NETXMS GUI will not work:
HTTP Status 404 – Not Found
Type Status Report
Message ProxyServlet: /
Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
Apache Tomcat/8.5.12 (Debian)


rainerh

I solved the problem:

- uninstall all old versions, I found it with:  dpkg --get-selections | less | grep jdk | java | tomcat
example: # apt-get remove openjdk-7-jre-headless:amd64
# apt-get remove openjdk-7-jre:amd64
# apt-get remove tomcat7
In Logfile /var/log/tomcat8/catalina.out I found a missing JAVA servlet 2.3
solved with # apt-get install libservlet3.1-java
# service tomcat8 restart
# delete nxmc.war and folder
deployed with tomcat web admin page the new nxmc.war
And now it runs.

I have a new problem in LogFile:
[/nxmc] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache

Who can I manage / increase the cache level?

Kevo

Try adding

<Resources cachingAllowed="true" cacheMaxSize="100000" />

into the /var/lib/tomcat8/conf/context.xml file. It should be placed before the closing </Context> tag. You can of course modify the size value to whatever works for you. I think I got that number from googling and just tried it out and it seems to work for me.