Tomcat integration problem

Let me first say: I love Intellij!

But .... the Tomcat integration into Intellij IDEA, using "Local" configuration, has had a problem for several versions now and the problem continues in 6.0 (although, I will admit that I have not found any other posts on this, so maybe it is just me ;) .

When setting up Tomcat to run under the Local configuration setting, you are allowed to set the values for Tomcat home and the Tomcat base.

GOOD THING: Intellij picks up all the jar files in tomcat, including those in the tomcat\shared\lib directory and adds them to the Libraries section of the config. This makes it very easy to compile the web app against the shared libraries in tomcat.

BAD THING: During runtime, the shared\lib and shared\classes directories are completely ignored! Intellij updates the CATALINA_BASE param to something like: c:\documents and settings\jim\.IntelliJIdea60\system\tomcat__b4e51af9. Intellij recreates the conf, logs, and work directory, but does not copy over the shared\lib or shared\classes directories (which should be part of CATALINA_BASE). This causes all kinds of class not found exceptions during runtime.

In the past, I have just switched to use the Remote configuration instead of Local when running/debugging ... but I really would like to see the Local configuration work properly. Am I missing something? Are there any changes that can be made to this plugin to fix this problem? Thanks for any help/advice/workarounds!

3 comments

Hello Jim,

Looks like a bug. Please file a Jira request (http://www.jetbrains.net/jira/browse/IDEA).

Let me first say: I love Intellij!

But .... the Tomcat integration into Intellij IDEA, using "Local"
configuration, has had a problem for several versions now and the
problem continues in 6.0 (although, I will admit that I have not found
any other posts on this, so maybe it is just me ;) .

When setting up Tomcat to run under the Local configuration setting,
you are allowed to set the values for Tomcat home and the Tomcat base.

GOOD THING: Intellij picks up all the jar files in tomcat, including
those in the tomcat\shared\lib directory and adds them to the
Libraries section of the config. This makes it very easy to compile
the web app against the shared libraries in tomcat.

BAD THING: During runtime, the shared\lib and shared\classes
directories are completely ignored! Intellij updates the
CATALINA_BASE param to something like: c:\documents and
settings\jim\.IntelliJIdea60\system\tomcat__b4e51af9. Intellij
recreates the conf, logs, and work directory, but does not copy over
the shared\lib or shared\classes directories (which should be part of
CATALINA_BASE). This causes all kinds of class not found exceptions
during runtime.

In the past, I have just switched to use the Remote configuration
instead of Local when running/debugging ... but I really would like to
see the Local configuration work properly. Am I missing something?
Are there any changes that can be made to this plugin to fix this
problem? Thanks for any help/advice/workarounds!



0

I'm having the same problem as the original poster. I searched the forums and Jira and I don't see any resolution. I tried to submit the question to IntelliJ IDEA support and the submit kept timing out. I'm using version 7.0 build #7684. Does anyone know of a resolution to this problem with the Tomcat local configuration?

0

Was an issue ever filed for this?  I'm having a similar problem where only a subset of CATALINA_BASE is copied over.


0

Please sign in to leave a comment.