I searched the forum but could not find anything related. I did find out what was wrong so I thought I'd post here and see if this is a bug or maybe I'm just stupid.
I have project with a web module which is set to deploy using tomcat. In the project I have a tomcat-conf/ directory which contains a conf/ directory for tomcat 5.0.18.
I've configured the Tomcat application server to have a home of /usr/local/apache/tomcat and a base of $myproject$/tomcat-conf/
In this tomcat-conf directory is a server.xml (and catalina.properties, .policy and web.xml) that contains some 'personal' settings.
When I try to run this web module, I get a dialog box:
-- Run Error --
Error running $myproject$: Error running Tomcat Server
Exception occured: java.lang.NullPointerException
Exception message: null
That's all, no log, no Run panel with output, just the dialog.
If I create the "Catalina/localhost/" sub-directory under tomcat-conf/conf/ and put a ROOT.xml context file inthere everything works fine.
In other words I've solved the problem but it would be nice if IntelliJ gave a slightly more intelligable error some time in the future for when I forget to do this.