We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sentry-spring-jakarta
17
6.9.1
1.Put in pom.xml
pom.xml
<dependency> <groupId>io.sentry</groupId> <artifactId>sentry-spring-jakarta</artifactId> <version>6.9.1</version> </dependency>
2.Create SentryConfiguration class
SentryConfiguration
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
applicationContext.xml
<bean class="SentryConfiguration"/>
Everything works.
Error: Caused by: java.lang.ClassNotFoundException: io.sentry.spring.SentrySpringServletContainerInitializer
Caused by: java.lang.ClassNotFoundException: io.sentry.spring.SentrySpringServletContainerInitializer
The text was updated successfully, but these errors were encountered:
Possibly in https://github.com/getsentry/sentry-java/blob/2285d6f7c0f240594d2771287868af8a94df6dc4/sentry-spring-jakarta/src/main/resources/META-INF/services/jakarta.servlet.ServletContainerInitializer io.sentry.spring.SentrySpringServletContainerInitializer should be replaced with io.sentry.spring.jakarta.SentrySpringServletContainerInitializer
io.sentry.spring.SentrySpringServletContainerInitializer
io.sentry.spring.jakarta.SentrySpringServletContainerInitializer
Sorry, something went wrong.
Fixes jakarta.servlet.ServletContainerInitializer (getsentry#2411)
180ed02
ClassNotFoundException
Thanks @js361014 for the analysis and fix. Just waiting for CI to finish, then I'll merge #2413
Fix ClassNotFoundException for `io.sentry.spring.SentrySpringServle…
f122116
…tContainerInitializer` in `sentry-spring-jakarta` (#2413) Co-authored-by: Alexander Dinauer <[email protected]> Fixes #2411
adinauer
Successfully merging a pull request may close this issue.
Integration
sentry-spring-jakarta
Java Version
17
Version
6.9.1
Steps to Reproduce
1.Put in
pom.xml
2.Create
SentryConfiguration
class3.Add
SentryConfiguration
toapplicationContext.xml
Expected Result
Everything works.
Actual Result
Error:
Caused by: java.lang.ClassNotFoundException: io.sentry.spring.SentrySpringServletContainerInitializer
The text was updated successfully, but these errors were encountered: