REST web services does not start due to ClassNotFoundException

Document ID : KB000124213
Last Modified Date : 08/01/2019
Show Technical Document Details
Issue:
The CA Service Desk Manager REST web services does not start and the following messages appear in the pdm_tomcat_rest.log:

INFO: Deploying web application archive E:\Program Files (x86)\CA\Service Desk Manager\bopcfg\www\CATALINA_BASE_REST\webapps\caisd-rest.war 
Dec 19, 2018 11:34:53 AM org.apache.catalina.core.StandardContext listenerStart 
SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener 
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener 
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720) 
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571) 
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:506) 
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:488) 
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:115) 
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4932) 
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5524) 
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) 
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) 
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) 
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649) 
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1081) 
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1877) 
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) 
at java.util.concurrent.FutureTask.run(Unknown Source) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 
at java.lang.Thread.run(Unknown Source) 

Dec 19, 2018 11:34:53 AM org.apache.catalina.core.StandardContext listenerStart 
SEVERE: Skipped installing application listeners due to previous error(s)
Environment:
CA Service Desk Manager 14.1.xx on Windows
Cause:
The jars from the JCF subdirectory are not being loaded..
Resolution:
  1. Open file named catalina.properties that exists in $NX_ROOT\bopcfg\www\CATALINA_BASE_REST\conf 
  2. Locate line that contains "common.loader="
  3. Confirm that the "CXF" path is missing from the statement:   
    common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar
  4. Add the "CXF" path such that the statement matches the following:  
    common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar,${catalina.base}/../../../java/lib/CXF/*.jar
  5. Recycle SDM REST Tomcat. To do that, run "pdm_tomcat_nxd -c STOP -t REST", wait 10 seconds, and then run "pdm_tomcat_nxd -c START -t REST".