[logback-user] Class not found exception for Evaluator

Pepe Caballero jose.caballero at tecnova.es
Thu Jan 26 11:46:14 CET 2012


Exception is:
	at java.lang.ClassNotFoundException: util.log.LogSMTPEvaluator
	at 	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at 	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at 	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
	at 	at ch.qos.logback.core.util.Loader.loadClass(Loader.java:123)
	at 	at
ch.qos.logback.core.joran.action.NestedComplexPropertyIA.begin(NestedComplexPropertyIA.java:100)
at 	at
ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:276)
	at 	at
ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:148)
	at 	at
ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:131)
	at 	at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:52)
	at 	at
ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:147)
	at 	at
ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:135)
	at 	at
ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:97)

¿any idea?


Pepe Caballero wrote:
> 
> 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-tp33187958p33206642.html
Sent from the Logback User mailing list archive at Nabble.com.



More information about the Logback-user mailing list