简体   繁体   中英

javax.management.InstanceNotFoundException: Catalina:type=Server occurs when I run debug using Tomcat7 in IntelliJ IDEA

When I run debug using IntelliJ IDEA:

在此处输入图片说明

there comes an issue:

It is possible to bind and connect to localhost:1099
at the same time - application server will probably compete with some other software on the port

Application Server was not connected before run configuration stop, reason: javax.management.InstanceNotFoundException: Catalina:type=Server

And it did not open the broswer.

My Tomcat7 configuration is below:

在此处输入图片说明

Try a new vanilla Tomcat installation with unmodified configuration, configure IDEA to use this installation instead of the current one.

Some config or startup script modifications can break IDE integration.

Also check if the problem can be reproduced with the latest IntelliJ IDEA version, a related bug was fixed recently.

I restart my IntelliJ IDEA and Tomcat resolved this problem.

1) Restart IntelliJ IDEA
2) Restart Tomcat
3) Restart Mac

杀死Java进程,可能还有另一个Java实例正在运行,并且与最近的Java实例冲突。

I know this question is from 3 years ago but if anybody ends up finding this post I was able to solve this problem switching the JDK version from 11 to 8

PS: I was using TomEE WebProfile 7 and javax:javaee-api 7.0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM