Integration
sentry-spring-jakarta
Java Version
17
Version
6.9.1
Steps to Reproduce
1.Put in pom.xml
<dependency>
<groupId>io.sentry</groupId>
<artifactId>sentry-spring-jakarta</artifactId>
<version>6.9.1</version>
</dependency>
2.Create SentryConfiguration class
import io.sentry.spring.jakarta.EnableSentry;
import org.springframework.context.annotation.Configuration;
@EnableSentry(dsn = "DSN_URL")
@Configuration
public class SentryConfiguration {
}
3.Add SentryConfiguration to applicationContext.xml
<bean class="SentryConfiguration"/>
Expected Result
Everything works.
Actual Result
Error: Caused by: java.lang.ClassNotFoundException: io.sentry.spring.SentrySpringServletContainerInitializer