Security Analytics UI returns Could not resolve view with name 'error/error' in servlet with name 'mvc'
Issue
jetty server continuously throws errors similar to below either everyday or every other day:
- "HTTP ERROR: 500
Problem accessing /incident/alerts. Reason:
javax.servlet.ServletException: Could not resolve view with name 'error/error' in servlet with name 'mvc'"
Problem accessing /incident/alerts. Reason:
javax.servlet.ServletException: Could not resolve view with name 'error/error' in servlet with name 'mvc'"
OR
- "HTTP ERROR: 500
Problem accessing /admin/appliances.Reason:
org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.NoClassDefFoundError: com/netwitness/platform/server/common/error/web/ui/ErrorInfo"
Problem accessing /admin/appliances.Reason:
org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.NoClassDefFoundError: com/netwitness/platform/server/common/error/web/ui/ErrorInfo"
The restart of jettysrv fixes it temporarily but only for one day or two.
Cause
The script /etc/cron.daily/tmpwatch is run every day. It is supposed to have two entries to be excluded while scanning the /tmp, the jetty-0.0.0.0-443-root.war-any directory and the jetty-0.0.0.0-8443-root.war-any. When the entry for folder "jetty-0.0.0.0-443-root.war-_any" is missing in the tmpwatch script, the files under /tmp are deleted every time it runs hence causing the HTTP error.Resolution
Add entry "jetty-0.0.0.0-443-root.war-_any" to be excluded in /etc/cron.daily/tmpwatch.From :
#! /bin/sh
flags=-umc
/usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x /tmp/.XIM-unix \
-x /tmp/.nbsp;
-X '/tmp/hsperfdata_*' \
-x /tmp/jetty-0.0.0.0-8443-root.war-_-any- 10d /tmp
/usr/sbin/tmpwatch "$flags" 30d /var/tmp
for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do
if [ -d "$d" ]; then
/usr/sbin/tmpwatch "$flags" -f 30d "$d"
fi
done
flags=-umc
/usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x /tmp/.XIM-unix \
-x /tmp/.nbsp;
-X '/tmp/hsperfdata_*' \
-x /tmp/jetty-0.0.0.0-8443-root.war-_-any- 10d /tmp
/usr/sbin/tmpwatch "$flags" 30d /var/tmp
for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do
if [ -d "$d" ]; then
/usr/sbin/tmpwatch "$flags" -f 30d "$d"
fi
done
TO:
#! /bin/sh
flags=-umc
/usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x /tmp/.XIM-unix \
-x /tmp/.nbsp;
-X '/tmp/hsperfdata_*' \
-x /tmp/jetty-0.0.0.0-443-root.war-_-any- \
-x /tmp/jetty-0.0.0.0-8443-root.war-_-any- 1d /tmp
/usr/sbin/tmpwatch "$flags" 30d /var/tmp
for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do
if [ -d "$d" ]; then
/usr/sbin/tmpwatch "$flags" -f 30d "$d"
fi
done
flags=-umc
/usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x /tmp/.XIM-unix \
-x /tmp/.nbsp;
-X '/tmp/hsperfdata_*' \
-x /tmp/jetty-0.0.0.0-443-root.war-_-any- \
-x /tmp/jetty-0.0.0.0-8443-root.war-_-any- 1d /tmp
/usr/sbin/tmpwatch "$flags" 30d /var/tmp
for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do
if [ -d "$d" ]; then
/usr/sbin/tmpwatch "$flags" -f 30d "$d"
fi
done
Product Details
RSA Product Set: Security AnalyticsRSA Product/Service Type: SA Server
RSA Version/Condition: 10.6.x
Approval Reviewer Queue
ASOC Approval Group