Tomcat JDBC Connection Pooling

Ok, I've finally got TC5 running in IJ and can set breakpoints and debug. However, I can't seem to get my connection pool working. It works fine when I start outside of IJ, but whenever I try to display a JSP that uses a data object I get the error 'Name jdbc is not bound in this Context'. Of course I can't access the default TC site or the admin/manager sites. Not sure what I have misconfigured. Any thoughts?

2 comments

Hi,
If you configured context in Tomcat and set the base directory in IDEA
correctly then you need to setup context name in Run/Debug configuration

Cary Beuershausen wrote:

Ok, I've finally got TC5 running in IJ and can set breakpoints and debug. However, I can't seem to get my connection pool working. It works fine when I start outside of IJ, but whenever I try to display a JSP that uses a data object I get the error 'Name jdbc is not bound in this Context'. Of course I can't access the default TC site or the admin/manager sites. Not sure what I have misconfigured. Any thoughts?



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Actually, your problem is that you have to edit the ROOT.xml (if you have chosen "/").

Its not very intuitive, but when you choose your "context" you are choosing which ]]>.xml file in the conf/Catalina/localhost dir you are running your app on. (intellij does some jiggery pokery with that file - so to point tomcat at the exploded dir)

-Nick

0

Please sign in to leave a comment.