java.io.FileNotFoundException errors after CU2 patch
search cancel

java.io.FileNotFoundException errors after CU2 patch

book

Article ID: 233201

calendar_today

Updated On:

Products

CA Service Operations Insight (SOI)

Issue/Introduction

After CU2 patch installation, observed several error messages (java.io.FileNotFoundException) in UI and Manager log files.

WARNING [WrapperStartStopAppMain] org.apache.tomcat.util.scan.StandardJarScanner.processURLs Failed to scan [file:/E:/CA/SOI/SamUI/lib/activation.jar] from classloader hierarchy
       java.io.FileNotFoundException: E:\CA\SOI\SamUI\lib\activation.jar (The system cannot find the file specified)
 …
WARNING [WrapperStartStopAppMain] org.apache.tomcat.util.scan.StandardJarScanner.processURLs Failed to scan [file:/E:/CA/SOI/jre-64/lib/tools.jar] from classloader hierarchy
       java.io.FileNotFoundException: E:\CA\SOI\jre-64\lib\tools.jar (The system cannot find the file specified)


These files do not exist in the above folder:

 PS E:\ca\soi\SamUI\lib> dir activat*
     Directory: E:\ca\soi\SamUI\lib
 Mode                LastWriteTime     Length Name
 ----                -------------     ------ ----
 -a---        07.09.2017     00:27      62983 activation-1.1.jar
 
 PS E:\ca\soi\jre-64\lib> dir t*


     Directory: E:\ca\soi\jre-64\lib
 Mode                LastWriteTime     Length Name
 ----                -------------     ------ ----
 -a---        17.04.2019     14:53     105734 tzdb.dat
 -a---        17.04.2019     14:53       9577 tzmappings

Cause

Reference to tools.jar is a historical reference that would not cause a problem but had not been removed.

Changes in Tomcat configuration for jarscanner relate to the upgrade to Tomcat 9.0.45 in CU2

There is no functional impact to the errors

Resolution

1.) Stop all the SOI Services

2.) For UI, 

        a.) Go to <SOI_HOME>\SamUI\conf\ and edit context.xml

        b.) Add <JarScanner scanManifest="false"/> entry within <Context> tag and save it.

        c.) Go to <SOI_HOME>\jsw\conf\ and edit soi-user-interface.conf 

        d.) Comment(by adding #) or remove below entry

                wrapper.java.classpath.2=%JAVA_HOME%/lib/tools.jar

3.) For Manager, 

        a.) Go to <SOI_HOME>\tomcat\conf\context.xml and edit context.xml

        b.) Add <JarScanner scanManifest="false"/> entry within <Context> tag and save it.     

        c.) Go to <SOI_HOME>\jsw\conf\ and edit soi-manager.conf

        d.) Comment(by adding #) or remove below entry 

                wrapper.java.classpath.2=%JAVA_HOME%/lib/tools.jar

4.) Now Start all the SOI Services in the recommended order.

Additional Information

This is still necessary after applying CU3