[Solved] was server Upgrade log4j to 2.17.0 error

Because log4j has a jndi vulnerability, the company needs to upgrade log4j to version 2.17.0. After the upgrade, the local test is no problem, but the following error is reported when it is not in the test environment:

com.ibm.ws.ecs.internal.scan.context.impl.ScannerContextImpl scanJAR unable to open input stream for resource log4j-core-2.17.0.jar


Modify the amm.filter.properties file under the /opt/IBM/WebSphere/AppServer/properties file

Add the corresponding jar in Ignore-Scanning-Archives or add the corresponding package path in Ignore-Scanning-Packages to eliminate scanning to solve the problem.

The corresponding class file under these two attributes can be modified when there is no annotation.

Similar Posts: