Error when starting tomcat through intellij

I am using tomcat 6.0.16, struts 2, and maven to compile.

When I startup my application through tomcat it works fine.

When I startup my application through intellij I get the following error

java.lang.IllegalArgumentException: Document base /home/kal/.IntelliJIdea70/system/tomcat_Unnamed_sonicswap30653ea5/webapps/cobalt does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(
at org.apache.catalina.core.StandardContext.resourcesStart(

The compiled war does not have the webapps directory.
I am wondering how I include it in the war or serve out of the tomcat directory


Message was edited by:
kal stevens

Please sign in to leave a comment.