[logback-user] Class not found exception for Evaluator
Pepe Caballero
jose.caballero at tecnova.es
Mon Jan 23 14:19:48 CET 2012
I generated a smtp appender with my evaluator.
in logBack.xml I have
<appender name="Email"
class="ch.qos.logback.classic.net.SMTPAppender">
<evaluator class="util.log.LogSMTPEvaluator"/>
<smtpHost>${correo.name.direccionSMTP}</smtpHost>
<to>${correo.name.to}</to>
<from>${correo.name.from}</from>
<username>${correo.name.usuario}</username>
<password>${correo.name.clave}</password>
<layout class="ch.qos.logback.classic.html.HTMLLayout">
<pattern>%d{yyyy-MM-dd HH:mm:ss}==> %m%n</pattern>
</layout>
</appender>
When I deploy in integrated Weblogic Server with Jdeveloper11 it works fine.
But, when i generated ear and deploy over my Weblogic Server i get:
12:32:57,830 |-ERROR in
ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Could not create
component [evaluator] of type [util.log.LogSMTPEvaluator]
java.lang.ClassNotFoundException: util.log.LogSMTPEvaluator
at java.lang.ClassNotFoundException: util.log.LogSMTPEvaluator
My aplication.ear have:
- model.jar
- logback-access-1.0.0.jar
- logback-classic-1.0.0.jar
- logback-core-1.0.0.jar
- anothers jar libraries
- view.war
logback.xml is in view.war/WEB-INF/log-back.xml and
util.log.LogSMTPEvaluator in model.jar.
LogBack is initialize in a servlet init in view.war
Any idea?
--
View this message in context: http://old.nabble.com/Class-not-found-exception-for-Evaluator-tp33187958p33187958.html
Sent from the Logback User mailing list archive at Nabble.com.
More information about the Logback-user
mailing list