I'm trying to run (or more specifically debug) a servlet through IntelliJ, but cannot get Tomcat to start. I get the following error:
Error running Tomcat: Cannot load C:\Documents and Settings\MooreJ\.IntelliJIdea50\system\tomcat_Unnamed_a3e0a9e\conf\Catalina\localhost\myWebApp.xml (Access is denied)
I'm using version 5.1.1 but have downloaded an evaluation of 6.0.2 and have the same problem. I've gone back to basics and have a new project, with a new web module MyWebApp containing a simple servlet TestServlet. I've set up a Tomcat 5 run configuration that should deploy MyWebApp and set the startup script to C:\jakarta-tomcat-5.0.27\bin\catalina.bat. I also pass in an environment variable CATALINA_BASE=C:\jakarta-tomcat-5.0.27\ (on advice I found trawling the net) though I'm not sure if this is correct.
Does anyone have any ideas what's going wrong?
Thanks in advance