Foren
Log4j error
Jeff Williams, geändert vor 15 Jahren.
Log4j error
Regular Member Beiträge: 107 Beitrittsdatum: 15.07.08 Neueste Beiträge
Anyone seeing this in their log:
Not sure how to resolve this.
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
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@70cb6009
] whereas object of type
log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [WebappClassLoader
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@70cb6009
].
Not sure how to resolve this.
Evert Lammerts, geändert vor 15 Jahren.
RE: Log4j error
New Member Beiträge: 24 Beitrittsdatum: 10.10.08 Neueste Beiträge
Hi Jeff,
Did you ever find where this came from? I'm seeing the same here when I deploy a custom plugin portlet, and I think it means two instances of the commons library is being loaded. Another classloader or context issue?
I think this error is the cause of my portlet not being deployed when I try to use the commons FileUpload. Has anybody seen that before?
Did you ever find where this came from? I'm seeing the same here when I deploy a custom plugin portlet, and I think it means two instances of the commons library is being loaded. Another classloader or context issue?
I think this error is the cause of my portlet not being deployed when I try to use the commons FileUpload. Has anybody seen that before?
henry heng Lim, geändert vor 14 Jahren.
RE: Log4j error
New Member Beitrag: 1 Beitrittsdatum: 16.06.09 Neueste Beiträge
It very much looks like you have the log4j.jar loaded twice by two distinct class loaders.
I also face this problem last time and I solved this problem by remove one of the log4j.jar
I also face this problem last time and I solved this problem by remove one of the log4j.jar
delang j, geändert vor 14 Jahren.
RE: Log4j error
Expert Beiträge: 252 Beitrittsdatum: 14.07.08 Neueste Beiträge
how do i remove log4j.jar while it required jar?
anyone got anyone idea how to solve this?
anyone got anyone idea how to solve this?
Manish Kumar Gupta, geändert vor 14 Jahren.
RE: Log4j error
Liferay Master Beiträge: 535 Beitrittsdatum: 16.05.08 Neueste Beiträge
@delang
If you are using any IDE to create your application, you can specify log4j dependency for the compile time and not runtime. In that way, IDE will use the log4j for compilation your application but it will not bundle it. The portal should take care of providing runtime requirement of log4j.
If you are using any IDE to create your application, you can specify log4j dependency for the compile time and not runtime. In that way, IDE will use the log4j for compilation your application but it will not bundle it. The portal should take care of providing runtime requirement of log4j.
delang j, geändert vor 14 Jahren.
RE: Log4j error
Expert Beiträge: 252 Beitrittsdatum: 14.07.08 Neueste BeiträgeManish Kumar Gupta:
@delang
If you are using any IDE to create your application, you can specify log4j dependency for the compile time and not runtime. In that way, IDE will use the log4j for compilation your application but it will not bundle it. The portal should take care of providing runtime requirement of log4j.
thanks manish for you reply,
currently im using eclipse for developing application. could you guide me how to specify log4j dependency for the compile time and not runtime?
delang j, geändert vor 14 Jahren.
RE: Log4j error
Expert Beiträge: 252 Beitrittsdatum: 14.07.08 Neueste Beiträge
look like log4j.jar will automatically copy when deploy although i already remove it from 'required.portal.jars'.
Lisa Simpson, geändert vor 14 Jahren.
RE: Log4j error
Liferay Legend Beiträge: 2034 Beitrittsdatum: 05.03.09 Neueste Beiträge
I don't know but maybe someone else does... *BUMP*