I have looked into all the available configuration options in IDEA to
set up a project as a webapp. I have set the Catalina Home variable in
the Run/Debug window to point to my Tomcat 4.0.4 installation. But when
I try to run the debugger I get an error window with the message: "Could
not find the main class. Program will exit" followed by a a second popup
title "VM terminated" with the message "VM initialization failed
for...." and listing the Tomcat startup up command with the full classpath.
What is going wrong here? My Tomcat works fine on its own.
How do I get IDEA working with Tomcat?
Any help or pointers gratefully accepted and urgently needed.