Problem:
The eHealth AlarmForwarder solution has been installed and configured on Spectrum tomcat OneClick web servers. After doing so, the GdEventServlet for the AlarmForwarder tool is throwing errors.
In the tomcat.log file after enabling the GdEventServlet in the web.xml file, the following errors are now observed:
Dec 22, 2015 07:56:28 AM (localhost-startStop-1) (org.apache.cxf.transport.servlet.AbstractCXFServlet) - (INFO) - Replaced the http destination factory with servlet transport factory
Dec 22, 2015 7:56:28 AM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet [ApacheCXF JAX-RS] in web application [/spectrum] threw load() exception
java.lang.ClassNotFoundException: com.ca.spectrum.restful.servlet.OneClickServlet
com.ca.spectrum.restful.servlet.GdEventServlet
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
<<<more java "at java.*" messages cut from here for brevity>>>
at java.lang.Thread.run(Thread.java:745)
Then this similar error shows up, continuing to repeat once every second throughout the life of the log file:
Dec 22, 2015 8:01:44 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Allocate exception for servlet ApacheCXF JAX-RS
java.lang.ClassNotFoundException: com.ca.spectrum.restful.servlet.OneClickServlet
com.ca.spectrum.restful.servlet.GdEventServlet
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
<<<more java "at java.*" messages cut from here for brevity>>>
at java.lang.Thread.run(Thread.java:745)
Cause:
Use of tab instead of spaces in the web.xml file when adding the new line for the GdEventServlet
Solution:
Remove the tab from the web.xml file. Replace it with the appropriate number of spaces (space bar key) to align the new GdEventServlet entry with the others it sits below in the file.
After making the change, the tomcat web server on the Spectrum OneClick web server will need to be restarted. A simple method of doing so is to run the command:
$SPECROOT/tomcat/webapps/spectrum/restart.bat