Intertest CCS Apache Tomcat server starts but log shows slf4j exceptions
search cancel

Intertest CCS Apache Tomcat server starts but log shows slf4j exceptions

book

Article ID: 412065

calendar_today

Updated On:

Products

Common Components and Services for z/OS InterTest - CICS InterTest - Batch

Issue/Introduction

The Intertest CCS Apache Tomcat STC starts and shows "CA Testing Tools server has started - port:51920", but it contains several sl4j exceptions.

*****
 18-Aug-2025 02:45:42.285 SEVERE Ýmain¨ org.apache.catalina.startup.HostConfig.deployWAR Error deploying web application archive Ý/D0
 2/products/cai/testingtools/server/webapps/symdump.war¨
 java.lang.IllegalStateException: Error starting child
     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:729)
     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:698)
...

 Caused by: org.apache.catalina.LifecycleException: Failed to start component ÝStandardEngineÝCatalina¨.StandardHostÝlocalhost¨.Stand
 ardContextÝ/symdump¨¨
     at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
     ... 37 more
 Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'springBootWebApplication
 ': Unsatisfied dependency expressed through field 'symDumpBatFeatureRegistration'; nested exception is org.springframework.beans.fac
 tory.BeanCreationException: Error creating bean with name 'symDumpBatFeatureRegistration' defined in URL Ýwar:file:/D02/products/cai
 /testingtools/server/webapps/symdump.war*/WEB-INF/classes/com/ca/symdump/server/services/SymDumpBatFeatureRegistration.class¨: Insta
 ntiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org.slf4j.LoggerFactory
...
     ... 38 more
 Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'symDumpBatFeatureRegistration' de
 fined in URL Ýwar:file:/D02/products/cai/testingtools/server/webapps/symdump.war*/WEB-INF/classes/com/ca/symdump/server/services/Sym
 DumpBatFeatureRegistration.class¨: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org.slf4j.Logge
 rFactory
...
     ... 61 more
 Caused by: java.lang.NoClassDefFoundError: org.slf4j.LoggerFactory
     ... 72 more
 Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
     at java.net.URLClassLoader.findClass(URLClassLoader.java:610)
     at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:950)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:895)
     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:353)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:878)
     ... 82 more
*****


*****
18-Aug-2025 02:44:46.603 SEVERE Ýmain¨ org.apache.catalina.startup.HostConfig.deployWAR Error deploying web application archive Ý/D0
 2/products/cai/testingtools/server/webapps/intertest.war¨
 java.lang.IllegalStateException: Error starting child
     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:729)
...
 Caused by: org.apache.catalina.LifecycleException: Failed to start component ÝStandardEngineÝCatalina¨.StandardHostÝlocalhost¨.Stand
 ardContextÝ/intertest¨¨
     at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
     ... 37 more
 Caused by: java.lang.NoClassDefFoundError: org.slf4j.spi.SLF4JServiceProvider
     at java.lang.ClassLoader.defineClassImpl(Native Method)
...
     ... 38 more
 Caused by: java.lang.ClassNotFoundException: org.slf4j.spi.SLF4JServiceProvider
     at java.net.URLClassLoader.findClass(URLClassLoader.java:610)
     at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:950)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:895)
     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:353)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:878)
     ... 69 more
*****

Resolution

Engineering advised that the j2zsdk.jar file is not up to date. To do that:

  1. Reapply CCS PTFs LU08595 and LU17477.
  2. Rerun J2ZDPLOY to copy over the updated j2zsdk.jar file, which should now include the SLF4J library.

Latest STC log then showed error for Java to z/OS interface (J2Z) which is provided by the CCS USS services:
 12-Sep-2025 03:21:09.977 SEVERE ÝSysplex¨ com.ca.ccs.j2z.J2Z_Service.<clinit> Exception in System.load - J2ZJNIJ4 (EDC5205S DLL module not found.)

That error was resolved after it was found one of documented steps for "Complete REST API and Testing Tools Server Configuration Tasks" on page Configure the REST API and Testing Tools Server had not been done for the CAVHSRVR task. See the line in bold below:

*****
5. Modify CAI.CAVHPROC(CAVHSRVR) member to your site standards and copy the modified member to a system procedure library. This JCL procedure is used to start the Testing Tools Server. The owner of the CAVHSRVR task requires access to SURROGAT class profile BPX.SRV, and READ access to FACILITY class profile BPX.SERVER.
You have successfully configured the Testing Tools Server, and you can start the server using the modified procedure CAVHSRVR.

Note
If Program Control is enabled, ensure that one of the following conditions is true:

  - All STEPLIB libraries in the CAVHSRVR task are program controlled.

  - The owner of the CAVHSRVR task has read access to the BPX.DAEMON.HFSCTL facility.

*****