java - com.intellij.javaee.oss.admin.jmx.JmxAdminException : com. intellij.execution.ExecutionException 异常

标签 java intellij-idea artifact

当我在 IntelliJ IDEA 中运行 tomcat 时,出现以下错误,我搜索了 StackOverflow,没有找到任何关于我的异常的信息。

[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.

但我的 Artifact 是真实存在的:

enter image description here

那么,问题出在哪里呢?


我试过:

将以下代码添加到 web.xml 中:

<context-param>
    <param-name>kmRootKey</param-name>
    <param-value>km.root</param-value>
</context-param>

但似乎没用。

最佳答案

问题可能是您没有创建正确的 Artifact 。 正确的步骤是:

当您创建 Artifact 时,您应该喜欢这样:

enter image description here

如果你在step3中选择了Empty,你可能会得到title的错误。

然后在 Tomcat 配置中,您可以像这样部署 Artifact:

enter image description here

并检查它: enter image description here

重新启动您的 Tomcat。

关于java - com.intellij.javaee.oss.admin.jmx.JmxAdminException : com. intellij.execution.ExecutionException 异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43244946/

相关文章:

java - 如何设置字符串(HH :mm) to UTC time with current date and convert it to local time

java - 显示速度脚本的空值而不是空

java - 执行 JAR 时 Netty 类未找到异常

java - 处理共享 IntelliJ 项目的 .IML 文件中的重大(但无意义)持续更改

java - 我如何使用 git 在 Intellij 中管理 workspace.xml

Maven:为什么 Artifact 文件名中缺少-SNAPSHOT后缀?

.net - 在 Visual Studio 解决方案的上下文中,什么是 Artifact ?

java - 如何获取所选元素的背景颜色?

grails - intellij grails 无法在 groovy 编译时解析外部库

java - 在 spring 工具套件中找不到丢失的 com.css maven Artifact