Exception fixing "docBase" for context [/appName]

Viewed 3075

I migrated a project from Eclipse to IntelliJ, and when I want to run my configured Tomcat, I had this error:

16-May-2020 12:58:13.133 GRAVE [RMI TCP Connection(5)-127.0.0.1] org.apache.catalina.startup.ContextConfig.beforeStart Exception fixing docBase for context [/appName] java.io.IOException: Impossible to create directory [C:\Program Files\apache-tomcat-9.0.34\webapps\appName]

I am not sure to have configure the context well.

Here is the META-INF/context.xml :

<?xml version="1.0" encoding="UTF-8"?>
<Context path="/appName"/>
<Context docBase="target/appName.war">

And here is the Tomcat config main page :

enter image description here

Can somebody help me ?

0 Answers
Related