remote debugging with ROOT context

When I try to debug a web app in tomcat with IntelliJ4.0.3, it works great
as long as I provide a context path. If I omit a context path in the debug
invocation settings, I get the following execption (w/o its whole
stacktrace):

SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\Documents and
Settings\Mike
Strong\.IntelliJIdea\system\tomcat_nsfext_fd7d5005\webapps\ROOT does not
exist or is not a readable directory

I have to debug this without a context prefix because many of our JSPs break
if an arbitary context prefix is present (inherited code).

Please advise.

Thanks!

M. Strong




3 comments
Comment actions Permalink

Do you build your project into exploded directory or .war file?

0
Comment actions Permalink

I believe I tried it both ways, but most recently it was with exploded
directory; however, I just noticed that this problem was marked as fixed by
you in build 2180. So, I suspect your question is irrelevant now, since
you've apparently solved it.


"Alexei Nikitin" <lex@intellij.com> wrote in message
news:32789326.1089728031302.JavaMail.itn@is.intellij.net...

Do you build your project into exploded directory or .war file?



0
Comment actions Permalink

The problem seems to be in webapps directory. Tomcat may fail to start web application if webapps directory does not exist.

Tomcat plugin in IDEA 4.5 will point to the location in the source CATALINA_BASE, not to the teprorary one.

You may set absolute path in servex.xml for webapps directory, that should solve the problem in IDEA 4.0

0

Please sign in to leave a comment.