Dear all,
I have a small issue with Nav after upgrading to 3.4 When i click on the link to Network explorer, i get the following error:
HTTP Status 404 - /navAdmin/servlet/navAdmin type Status report message /navAdmin/servlet/navAdmin description The requested resource (/navAdmin/servlet/navAdmin) is not available. Apache Tomcat/5.5
The catalog /var/www/nav/navAdmin only includes .htaccess and an index file that is zero bytes.
I am running Debian and i upgraded from a previous version(where network explorer worked) with the apt-get dist-upgrade command.
My google-fu came up with a previous poster where Morten Brekkevold replied:
NAV contains two Java servlets, vPServer.war and navAdmin.war . These are usually installed in the apache/webapps/ directory, and should be symlinked into Tomcat's webapps directory (wherever your Tomcat installation may be, you don't mention which distro you are using).
The catalog /var/www/nav/vPServer, as /var/www/nav/navAdmin, includes only .htaccess and index. A find reveals that both vPServer.war and navAdmin.war is installed in /var/lib/tomcat5.5/webapps/
I would apreciate any help or pointers that could help me solve this problem.
As a side note: When adding a Cisco 6509 running s72033_rp-ADVIPSERVICESK9_WAN-M), Version 12.2(33)SXH1, RELEASE SOFTWARE (fc3) to NAV, the cpu on the 6500 went through the roof. This could be a bug, though, i have seen CiscoWorks doing the same before. Any ideas? Is there a way to "nice" NAV on some types of equipment?
Regards, Rikard
On Tue, 29 Jul 2008 13:24:51 +0200 (MEST) Rikard Stemland Skjelsvik rskjels@pogostick.net wrote:
HTTP Status 404 - /navAdmin/servlet/navAdmin type Status report message /navAdmin/servlet/navAdmin description The requested resource (/navAdmin/servlet/navAdmin) is not available. Apache Tomcat/5.5
[snip]
The catalog /var/www/nav/vPServer, as /var/www/nav/navAdmin, includes only .htaccess and index. A find reveals that both vPServer.war and navAdmin.war is installed in /var/lib/tomcat5.5/webapps/
I would apreciate any help or pointers that could help me solve this problem.
Have you checked Tomcat's logs in /var/log/tomcat5.5 to see what the real problem is? The .war files are in the correct location, so I can't really say what the problem is without looking at the log files.
Your observation that /var/www/nav/navAdmin only contains an .htaccess file and a zero-byte index file is expected and normal. The .htaccess file tells mod_python to use a NAV proxy module, which in turn forwards requests to the local Tomcat server.
As a side note: When adding a Cisco 6509 running s72033_rp-ADVIPSERVICESK9_WAN-M), Version 12.2(33)SXH1, RELEASE SOFTWARE (fc3) to NAV, the cpu on the 6500 went through the roof.
Was this as you were adding it in the web interface, or after you had successfully added it? Does the cpu load spike every 6 hours after you've added it?
This could be a bug, though, i have seen CiscoWorks doing the same before. Any ideas? Is there a way to "nice" NAV on some types of equipment?
We've seen something like this happen to a Cisco 12416 (GSR) router every time NAV queries its routing table, which ends up taking about 20 minutes each time. On other identical 12416's we've not had this problem. Someone has suggested it might be a software problem in the one 12416 that displays this kind of behavior, but I'm not an expert on the equipment itself.
Thank you for your help!
There are several logfiles int /var/log/tomcat5.5, but only the ones with catalina* where non-zero bytes. They all seemed to contain the following(I have removed those lines that , to me, seems ok):
Jul 29, 2008 12:39:52 PM org.apache.catalina.startup.HostConfig checkResources INFO: Undeploying context [/navAdmin] Jul 29, 2008 12:39:52 PM org.apache.catalina.startup.HostConfig checkResources WARNING: Error while removing context [/navAdmin] java.lang.NullPointerException
Jul 29, 2008 12:39:52 PM org.apache.catalina.startup.HostConfig checkResources WARNING: Error during context [/navAdmin] destroy java.lang.NullPointerException
Jul 29, 2008 12:39:52 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive navAdmin.war Jul 29, 2008 12:39:52 PM org.apache.catalina.core.StandardContext preDeregister SEVERE: error stopping org.apache.commons.logging.LogConfigurationException: java.security.AccessControlException: access denied (java.io.FilePermission /var/lib/tomcat5.5/webapps/navAdmin/WEB-INF/classes/logging.properties read) (Caused by java.security.AccessControlException: access denied (java.io.FilePermission /var/lib/tomcat5.5/webapps/navAdmin/WEB-INF/classes/logging.properties read))
Caused by: java.security.AccessControlException: access denied (java.io.FilePermission /var/lib/tomcat5.5/webapps/navAdmin/WEB-INF/classes/logging.properties read) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529) ... 30 more Jul 29, 2008 12:39:52 PM org.apache.catalina.startup.HostConfig deployWAR SEVERE: Error deploying web application archive navAdmin.war org.apache.commons.logging.LogConfigurationException: java.security.AccessControlException: access denied (java.io.FilePermission /var/lib/tomcat5.5/webapps/navAdmin/WEB-INF/classes/logging.properties read) (Caused by java.security.AccessControlException: access denied (java.io.FilePermission /var/lib/tomcat5.5/webapps/navAdmin/WEB-INF/classes/logging.properties read))
Caused by: java.security.AccessControlException: access denied (java.io.FilePermission /var/lib/tomcat5.5/webapps/navAdmin/WEB-INF/classes/logging.properties read)
... 21 more Jul 29, 2008 12:39:52 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive vPServer.war Jul 29, 2008 12:39:52 PM org.apache.catalina.core.StandardContext preDeregister SEVERE: error stopping org.apache.commons.logging.LogConfigurationException: java.security.AccessControlException: access denied (java.io.FilePermission /var/lib/tomcat5.5/webapps/vPServer/WEB-INF/classes/logging.properties read) (Caused by java.security.AccessControlException: access denied (java.io.FilePermission /var/lib/tomcat5.5/webapps/vPServer/WEB-INF/classes/logging.properties read))
Caused by: java.security.AccessControlException: access denied (java.io.FilePermission /var/lib/tomcat5.5/webapps/vPServer/WEB-INF/classes/logging.properties read)
... 30 more Jul 29, 2008 12:39:52 PM org.apache.catalina.startup.HostConfig deployWAR SEVERE: Error deploying web application archive vPServer.war org.apache.commons.logging.LogConfigurationException: java.security.AccessControlException: access denied (java.io.FilePermission /var/lib/tomcat5.5/webapps/vPServer/WEB-INF/classes/logging.properties read) (Caused by java.security.AccessControlException: access denied (java.io.FilePermission /var/lib/tomcat5.5/webapps/vPServer/WEB-INF/classes/logging.properties read))
Caused by: java.security.AccessControlException: access denied (java.io.FilePermission /var/lib/tomcat5.5/webapps/vPServer/WEB-INF/classes/logging.properties read)
... 21 more
Does this make any sense at all? I sure hope it does :-)
-- Rikard
On Fri, 1 Aug 2008 11:13:07 +0200 (MEST) Rikard Stemland Skjelsvik rskjels@pogostick.net wrote:
Caused by: java.security.AccessControlException: access denied (java.io.FilePermission /var/lib/tomcat5.5/webapps/vPServer/WEB-INF/classes/logging.properties read)
... 21 more
Does this make any sense at all? I sure hope it does :-)
Yes it does. Did you follow the instructions in README.Debian? You need to set "TOMCAT5_SECURITY=no" in /etc/default/tomcat5.5 to allow the servlets access to the file system (or some more complicated settings somehwere else, if you want make sure they're only allowed to access NAV's config files and such).
That was it! Somehow i managed to miss that section in /usr/share/doc/nav/README.Debian
Thank you so much!
-- Rikard
On Fri, 1 Aug 2008, Morten Brekkevold wrote:
On Fri, 1 Aug 2008 11:13:07 +0200 (MEST) Rikard Stemland Skjelsvik rskjels@pogostick.net wrote:
Caused by: java.security.AccessControlException: access denied (java.io.FilePermission /var/lib/tomcat5.5/webapps/vPServer/WEB-INF/classes/logging.properties read)
... 21 more
Does this make any sense at all? I sure hope it does :-)
Yes it does. Did you follow the instructions in README.Debian? You need to set "TOMCAT5_SECURITY=no" in /etc/default/tomcat5.5 to allow the servlets access to the file system (or some more complicated settings somehwere else, if you want make sure they're only allowed to access NAV's config files and such).
-- mvh Morten Brekkevold UNINETT