Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

com.intellij.javaee.oss.admin.jmx.JmxAdminException: com.intellij.execution.ExecutionException

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] 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:

enter image description here

So, where is the issue?


I have tried:

add the below code to web.xml:

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

But seems useless.

like image 867
qg_java_17137 Avatar asked Apr 06 '17 03:04

qg_java_17137


3 Answers

I also suffered with this issue... This occurs because

Tomcat doesn't find your project folder(application folder) to deploy. So

  • Click on "Edit configuration" button, top right in intellij
  • Configure Tomcat by clicking '+' symbol on left top and selecting "Tomcat server" then local.
  • Give "Name" to your project as per need.
  • Now in first tab "Server"...
  • Set path to local tomcat directory in your system.
  • Better change "Http port" 8080 to 808* (8086, 8087, 8088...)
  • Go to second tab "Deployment"
  • Under "Deploy at the server startup" Click on + symbol and select artifact. Now artifact having same name as your project-name should be listed in it. Then click OK

And unfortunately if above steps aren't helpful

  • Go to the Deployment tab, click on edit button(pencil). It will open a new window called
    "Project Structure".
  • Give "Name" and specify "Type" as Web Application: Exploded
  • Under Output directory give the location of your project folder like
    (D:\Workspace\Project_Folder).
like image 164
CodeWorld Avatar answered Oct 10 '22 23:10

CodeWorld


Select your artifact (File -> Project Structure -> Artifacts) and make sure Output directory points to correct directory (for example, path_to_webapp\target).

That's how I solved this problem.

like image 38
kolobok Avatar answered Oct 11 '22 01:10

kolobok


The issue maybe you did not create the correct Artifact. The correct steps are:

When you create the Artifact, you should like this:

enter image description here

If you in the step3 choose the Empty, you maybe will get the error of title.

Then in Tomcat Configurations, you can deploy the Artifact like this:

enter image description here

And check it: enter image description here

Restart your Tomcat.

like image 38
aircraft Avatar answered Oct 10 '22 23:10

aircraft