I'm getting the following error upon deploying a portlet I downloaded from the community, add-user-portlet:
log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
log4j:ERROR [WebappClassLoader
context: /add-user-portlet
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@1995d80
] whereas object of type
log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [WebappClassLoader
context:
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@1995d80
].
log4j:ERROR Could not instantiate appender named "CONSOLE".
It is clashing with a log4j loaded from the Liferay application, "context: ''". (The context is empty or root or /, which is the default Liferay context)
So, what do I do? I noticed the SDK, and/or IDE, adds log4j.jar to every portlet plugin project. It also adds a log4j.properties.
The thing is, I'm not getting this issue with my other deployed portlets.
Be kell jelentkezni ahhoz, hogy ez helytelenként legyen megjelölve.