com.intellij.javaee.oss.admin.jmx.JmxAdminException:com.intellij.execution.ExecutionException [英] com.intellij.javaee.oss.admin.jmx.JmxAdminException: com.intellij.execution.ExecutionException
问题描述
当我在IntelliJ IDEA中运行tomcat时,出现以下错误,我搜索了StackOverflow,未发现有关我的异常的任何信息.
When I run tomcat in IntelliJ IDEA, I get this below error, I have searched the StackOverflow, find nothing about my exception.
[2017-04-06 10:57:30,875]神器elecMaven探索:神器正在部署中,请稍候...
[2017-04-06 10:57:30,888]神器elecMaven探索:神器部署期间发生错误.有关详细信息,请参见服务器日志.
[2017-04-06 10:57:30,889]神器elecMaven探索:com.intellij.javaee.oss.admin.jmx.JmxAdminException:com.intellij.execution.ExecutionException:/Users/luowensheng/Desktop/TestIOS/itheima1128elecMaven/找不到该Web模块的classes/artifacts/elecMaven_explored.
[2017-04-06 10:57:30,875] Artifact elecMaven-explored: Artifact is being deployed, please wait...
[2017-04-06 10:57:30,888] Artifact elecMaven-explored: Error during artifact deployment. See server log for details.
[2017-04-06 10:57:30,889] Artifact elecMaven-explored: com.intellij.javaee.oss.admin.jmx.JmxAdminException: com.intellij.execution.ExecutionException: /Users/luowensheng/Desktop/TestIOS/itheima1128elecMaven/classes/artifacts/elecMaven_explored not found for the web module.
但是我的神器确实存在:
But my artifact is really exists:
那么,问题出在哪里?
我尝试过:
将以下代码添加到web.xml:
add the below code to web.xml:
<context-param>
<param-name>kmRootKey</param-name>
<param-value>km.root</param-value>
</context-param>
但是似乎没用.
推荐答案
问题可能是您没有创建正确的工件. 正确的步骤是:
The issue maybe you did not create the correct Artifact. The correct steps are:
创建工件时,您应该这样:
When you create the Artifact, you should like this:
如果在步骤3中选择清空",则可能会出现标题错误.
If you in the step3 choose the Empty, you maybe will get the error of title.
然后在Tomcat配置中,您可以像这样部署工件:
Then in Tomcat Configurations, you can deploy the Artifact like this:
并检查:
重新启动Tomcat.
Restart your Tomcat.
这篇关于com.intellij.javaee.oss.admin.jmx.JmxAdminException:com.intellij.execution.ExecutionException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!