logback SMTPAppender

I have a new application, which leverage logback for logging. With the SMTPAppender on classpath, and the appener configured.

On application startup, it however still failed the application, complaining about `SMTPAppender` without much details.

Turned out it has a dependency on javax.activation and javax.mail, even though the exception didn’t mention about it.

With the dependency on classpath, the application started successfully.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s