简体   繁体   English

javax.management.InstanceNotFoundException: Catalina:type=Server 当我在 IntelliJ IDEA 中使用 Tomcat7 运行调试时发生

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

When I run debug using IntelliJ IDEA:当我使用 IntelliJ IDEA 运行调试时:

在此处输入图片说明

there comes an issue:出现一个问题:

It is possible to bind and connect to localhost:1099可以绑定并连接到 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运行配置停止前未连接应用服务器,原因:javax.management.InstanceNotFoundException:Catalina:type=Server

And it did not open the broswer.它没有打开浏览器。

My Tomcat7 configuration is below:我的Tomcat7配置如下:

在此处输入图片说明

Try a new vanilla Tomcat installation with unmodified configuration, configure IDEA to use this installation instead of the current one.尝试使用未修改配置的新 vanilla Tomcat 安装,将 IDEA 配置为使用此安装而不是当前安装。

Some config or startup script modifications can break IDE integration.某些配置或启动脚本修改可能会破坏 IDE 集成。

Also check if the problem can be reproduced with the latest IntelliJ IDEA version, a related bug was fixed recently.还要检查是否可以使用最新的 IntelliJ IDEA 版本重现该问题,最近修复了相关错误。

I restart my IntelliJ IDEA and Tomcat resolved this problem.我重新启动了我的 IntelliJ IDEA,Tomcat 解决了这个问题。

1) Restart IntelliJ IDEA 1)重启IntelliJ IDEA
2) Restart Tomcat 2)重启Tomcat
3) Restart Mac 3) 重启 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我知道这个问题来自 3 年前,但如果有人最终找到这篇文章,我能够解决这个问题,将 JDK 版本从 11 切换到 8

PS: I was using TomEE WebProfile 7 and javax:javaee-api 7.0 PS:我使用的是 TomEE WebProfile 7 和 javax:javaee-api 7.0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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