imi-ms / MoPat

Mobile Patient Survey (MoPat) is a Java based web application to create, distribute, complete and export medical questionnaires.
Apache License 2.0
8 stars 1 forks source link

Replace Jakarta activation with angus activation #58

Closed ywarnecke closed 3 months ago

ywarnecke commented 3 months ago

There seems to be a problem with Jakarta activation, which causes an error upon deployment:

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [de.imi.mopat.helper.controller.MailSender]: Factory method 'mailSender' threw exception with message: Provider for jakarta.activation.spi.MimeTypeRegistryProvider cannot be found

Replacing the dependency with angus activation seems to fix the issue:

<dependency>
    <groupId>org.eclipse.angus</groupId>
    <artifactId>angus-activation</artifactId>
    <version>2.0.2</version>
</dependency>

https://mvnrepository.com/artifact/org.eclipse.angus/angus-activation

ywarnecke commented 3 months ago

Merged in #61