Reputation: 3589
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:
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.
Upvotes: 14
Views: 25326
Reputation: 470
Just clicking "Reload All Maven Projects" fixed it for me (Cleaning the Tomcat, removing and then re-adding the "...:war (exploded)" artifact did not work for me).
Upvotes: 0
Reputation: 11
In my case, I've resolved this problem by manually created folders in project root "out/artifacts/artifactName"
Upvotes: 0
Reputation: 2307
I also suffered with this issue... This occurs because
Tomcat doesn't find your project folder(application folder) to deploy. So
And unfortunately if above steps aren't helpful
Upvotes: 5
Reputation: 143
I faced with the same problem. In my case, it was a flag in Gradle's settings. I switched it on and forgot to set it back to off:
To check it go to "Build, Execution, Deployment" -> "Build Tools" -> "Gradle" -> "Runner". The flag "Delegate IDE build/run actions to gradle" must be unchecked.
Upvotes: 2
Reputation: 4210
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.
Upvotes: 8
Reputation: 26924
The issue maybe you did not create the correct Artifact. The correct steps are:
When you create the Artifact, you should like this:
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:
Restart your Tomcat.
Upvotes: 17