I migrated log4j from 1.x to 2.x. After migration I am getting this error message:
org.apache.commoms.logging.LogConfigurationException: User-specified log class
org.apache.commons.logging.imple.Log4JLogger cannot be found or is not useable.
I verified that the commons-logging-1.2.jar file is available in WEB-INF/lib.
And also seen one more exception in console i.e:
com.sun.faces.config.ConfigurationException: source document: jar file tomahawk20-1.1.14.jar!/META-INF/faces-config.xml.
Cause: unable to create a new instance of org.apache.myfaces.webapp.filter.ServerResourcePhaseLostener.
What could be the problem here?
If you want to migrate from
log4j1.xtolog4j2.xthen should import newjar. Log4j2 jars:log4j-api-2.y.z.jar,log4j-core-2.y.z.jarAlso, there is a document help migrate from 1.x to 2.x. so, follow the documentation.
Link : Migrating from Log4j 1.x