Project
IntelliJ IDEA
Priority
Normal
Type
Bug
Fix versions
No Fix versions
State
Won't fix
Assignee
Michael Golubev
Subsystem
No subsystem
Affected versions
11.0.2 (111.277)
Fixed in build
No Fixed in build
  • Created by   Ryan Bohn
    3 months ago (02 Feb 2012 20:17)
  • Updated by   Ryan Bohn
    3 months ago (04 Feb 2012 03:49)
 
IDEA-80764 Run/Debug for Tomcat 6 not reading JNDI config
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
When I perform a Run/Debug with my Tomcat 6.0.26 instance, it is not reading my JNDI config, which is located in [tomcat-home]/conf/Catalina/localhost. When I start Tomcat from the command line, I have no issues. This has only become an issues within the last couple EAP releases and worked fine before. I've tried rebuilding caches and workspace.xml with no luck. I am running on Mac OSX Lion.
Comments (2)
 
History
 
Linked Issues (?)
 
Michael Golubev
  Michael Golubev
03 Feb 2012 21:50
3 months ago
Hello,

I am not familiar with JNDI configuration, but the path '[tomcat-home]/conf/Catalina/localhost' is the path to the deployment descriptors,
so each file under the path defines an application to be deployed to the server.
IDEA copies Tomcat configuration (and possibly modifies the copy) on each start of the run configuration.
The '[tomcat-home]/conf/Catalina/localhost' folder of the copy is cleared by default.
Since you don't need to clean the folder copy, you should just check the 'Deploy applications configured in Tomcat instance' in the IDEA Tomcat run configuration.

Alternatively – as I can see from docs (http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html), but haven't tried it myself – you may configure JNDI with:
  • <application root>/META-INF/context.xml
  • <application root>/META-INF/web.xml
  • [tomcat-home]/conf/server.xml

Also, there were no relevant changes in IDEA Tomcat support since 11 release, so I suspect you've just lost the value of 'Deploy applications configured in Tomcat instance' checkbox somehow.

Regards,
Michael
Related Changes
Resolved Date
3 months ago (03 Feb 2012 21:50)
State
SubmittedWon't fix
Ryan Bohn
  Ryan Bohn
04 Feb 2012 03:49
3 months ago
Checking the 'Deploy applications configured in Tomcat instance' worked. Thanks!