karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "void.bato@wanadoo.fr" <void.b...@wanadoo.fr>
Subject SMTP appender issue on Karaf 4.1.1
Date Wed, 10 May 2017 13:30:33 GMT
Hi,
I put this appender:

log4j2.appender.email.type=SMTP
log4j2.appender.email.name=Email
log4j2.appender.email.SMTPHost=10.232.2.61
log4j2.appender.email.SMTPUsername=vincent.monnin@zeiss.com
log4j2.appender.email.SMTPPassword=
log4j2.appender.email.from=vincent.monnin@zeiss.com
log4j2.appender.email.to=vincent.monnin@zeiss.com
log4j2.appender.email.subject=Error !! Karaf frfousedi11
log4j2.appender.email.bufferSize=1

and retreived error class not found javax.mail.MessagingException :

2017-05-10 15:08:11,077 CM Configuration Updater (ManagedService Update:
pid=[or
g.ops4j.pax.logging]) ERROR Unable to invoke factory method in class class
org.a
pache.logging.log4j.core.appender.SmtpAppender for element SMTP.
java.lang.refle
ct.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at
org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build
(PluginBuilder.java:132)
        at
org.apache.logging.log4j.core.config.AbstractConfiguration.createPlug
inObject(AbstractConfiguration.java:918)
        at
org.apache.logging.log4j.core.config.AbstractConfiguration.createConf
iguration(AbstractConfiguration.java:858)
        at
org.apache.logging.log4j.core.config.AbstractConfiguration.createConf
iguration(AbstractConfiguration.java:850)
        at
org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigur
e(AbstractConfiguration.java:479)
        at
org.apache.logging.log4j.core.config.AbstractConfiguration.initialize
(AbstractConfiguration.java:219)
        at
org.apache.logging.log4j.core.config.AbstractConfiguration.start(Abst
ractConfiguration.java:231)
        at
org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerCo
ntext.java:491)
        at
org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:
244)
        at
org.ops4j.pax.logging.log4j2.internal.PaxLoggingServiceImpl.doUpdate(
PaxLoggingServiceImpl.java:207)
        at
org.ops4j.pax.logging.log4j2.internal.PaxLoggingServiceImpl.updated(P
axLoggingServiceImpl.java:154)
        at
org.ops4j.pax.logging.log4j2.internal.PaxLoggingServiceImpl$1ManagedP
axLoggingService.updated(PaxLoggingServiceImpl.java:408)
        at
org.apache.felix.cm.impl.helper.ManagedServiceTracker.updated(Managed
ServiceTracker.java:189)
        at
org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(M
anagedServiceTracker.java:152)
        at
org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfigur
ation(ManagedServiceTracker.java:85)
        at
org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.pr
ovide(ConfigurationManager.java:1463)
        at
org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.ru
n(ConfigurationManager.java:1419)
        at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141)
        at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoClassDefFoundError: javax/mail/MessagingException
        at
org.apache.logging.log4j.core.appender.SmtpAppender.createAppender(Sm
tpAppender.java:146)
        ... 24 more
Caused by: java.lang.ClassNotFoundException: javax.mail.MessagingException
not f
ound by org.ops4j.pax.logging.pax-logging-log4j2 [6]
        at
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDele
gation(BundleWiringImpl.java:1550)
        at
org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringIm
pl.java:79)
        at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadCla
ss(BundleWiringImpl.java:1958)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 25 more

2017-05-10 15:08:11,093 CM Configuration Updater (ManagedService Update:
pid=[or
g.ops4j.pax.logging]) ERROR Null object returned for SMTP in Appenders.
2017-05-10 15:08:11,093 CM Configuration Updater (ManagedService Update:
pid=[or
g.ops4j.pax.logging]) ERROR Unable to locate appender "Email" for logger
config
"root"




--
View this message in context: http://karaf.922171.n3.nabble.com/SMTP-appender-issue-on-Karaf-4-1-1-tp4050335.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Mime
View raw message