Skip to content

java.lang.ClassNotFoundException: io.sentry.spring.SentrySpringServletContainerInitializer #2411

@js361014

Description

@js361014

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions