Hello I have the next errors when Tomee 1.7.0 server starts with an ear
application.log4j:ERROR A "org.apache.log4j.RollingFileAppender" object is
not assignable to a "org.apache.log4j.Appender" variable.log4j:ERROR The
class "org.apache.log4j.Appender" was loaded bylog4j:ERROR
[org.apache.openejb.core.TempClassLoader@1c588c7] whereas object of
typelog4j:ERROR "org.apache.log4j.RollingFileAppender" was loaded by
[org.apache.openejb.util.classloader.URLClassLoaderFirst@ec66b5].log4j:ERROR
Could not instantiate appender named "networx".I have an ear application in
tomee/apps folder and log4j.jar is inside the ear file. No other log4j
classes exist in the application and server.When i add log4j.jar to
Tomee/lib folder it works fine and errors don't appear. However this is not
convenient and i need to include log4j in the ear application itself.
Changing RollingFileAppender to any other adapter doesn't fix the issus.
Adding openejb.log.factory=log4j doesn't fix the issue as well.



--
View this message in context: 
http://tomee-openejb.979440.n4.nabble.com/Log4j-Error-object-is-not-assignable-to-a-org-apache-log4j-Appender-variable-tp4674248.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to