2

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 ?

jozinho22
  • 459
  • 2
  • 7
  • 24
  • Do you use any antivirus software? Also please try to run IDE with administrator rights. – y.bedrov May 18 '20 at 09:10
  • No, I don't use any. I get back to Eclipse I think it's a better solution ^^ – jozinho22 May 18 '20 at 10:40
  • You can see the solutions for the following answer: https://stackoverflow.com/questions/14599507/error-deploying-java-war-file-severe-exception-fixing-docbase-for-context/14620816 – Dmitry Rakovets Aug 17 '20 at 19:13

0 Answers0