Skip to content
New issue

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

[SolutionShare] run/debug pinpoint-web error using intellij idea community edition #11301

Closed
yjqg6666 opened this issue Jul 30, 2024 · 2 comments · Fixed by #11487
Closed

[SolutionShare] run/debug pinpoint-web error using intellij idea community edition #11301

yjqg6666 opened this issue Jul 30, 2024 · 2 comments · Fixed by #11487
Milestone

Comments

@yjqg6666
Copy link
Contributor

What version of pinpoint are you using?

3.0.0

Describe your problem**

Debug/Run pinpoint web in Intellij Idea got " java.lang.NoClassDefFoundError: jakarta/servlet/ServletException" error.

What have you done?

image

Run/Debug Pinpoint web from Intellij Idea got the following error,

[ main] ERROR o.s.b.SpringApplication -- Application run failed
java.lang.NoClassDefFoundError: jakarta/servlet/ServletException
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContextFactory.createContext(ServletWebServerApplicationContextFactory.java:52) ~[spring-boot-3.2.4.jar:3.2.4]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContextFactory.create(ServletWebServerApplicationContextFactory.java:47) ~[spring-boot-3.2.4.jar:3.2.4]
at org.springframework.boot.DefaultApplicationContextFactory.getFromSpringFactories(DefaultApplicationContextFactory.java:70) ~[spring-boot-3.2.4.jar:3.2.4]
at org.springframework.boot.DefaultApplicationContextFactory.create(DefaultApplicationContextFactory.java:50) ~[spring-boot-3.2.4.jar:3.2.4]
at org.springframework.boot.SpringApplication.createApplicationContext(SpringApplication.java:589) [spring-boot-3.2.4.jar:3.2.4]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:331) [spring-boot-3.2.4.jar:3.2.4]
at com.navercorp.pinpoint.common.server.starter.BasicStarter.start(BasicStarter.java:70) [pinpoint-commons-server-3.0.0.jar:3.0.0]
at com.navercorp.pinpoint.web.WebApp.main(WebApp.java:55) [classes/:?]

@yjqg6666
Copy link
Contributor Author

The solution is:

  1. in project root pom.xml, delete line "provided" for "spring-boot-starter-tomcat"
    image

  2. in module pinpoint-web pom.xml, delete line "provided" for "spring-boot-starter-tomcat"
    image

@yjqg6666 yjqg6666 changed the title run/debug pinpoint-web error using intellij idea community edition [SolutionShare] run/debug pinpoint-web error using intellij idea community edition Jul 30, 2024
@emeroad emeroad added this to the 3.0.1 milestone Sep 11, 2024
emeroad added a commit to emeroad/pinpoint that referenced this issue Sep 11, 2024
@emeroad emeroad linked a pull request Sep 11, 2024 that will close this issue
@emeroad
Copy link
Member

emeroad commented Sep 11, 2024

Fixed a Tomcat dependency issue for IntelliJ Community Edition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants