Name jdbc is not bound in this Context [message #215678] |
Wed, 18 June 2008 06:41 |
Eclipse User |
|
|
|
Originally posted by: frank.niedermann.ifm.com
Hello,
we are migrating from WebSphere Developer Studio to Eclipse. I have
integrated Tomcat 5.5.26 as Server into Eclipse 3.2. If I start our
web projects in Tomcat out of Eclipse I get an exception:
Name jdbc is not bound in this Context
I can think of two reasons for that:
1. We have configured our JDBC connections with JNDI in the server.xml
located in the Tomcat directory. Eclipse does not seem to read/know
that file.
2. While deploying the projects into Tomcat (without Eclipse) we use
a deployment descriptor which defines which data source to use from the
server.xml. Eclipse also does not know about that (how should it).
In WebSphere developer studio there were ways to configure JNDI and
JDBC for projects before running them on the server. How can I do
that within Eclipse and Tomcat?
Thanks,
Frank
|
|
|
|
Re: Name jdbc is not bound in this Context [message #215703 is a reply to message #215678] |
Wed, 18 June 2008 12:11 |
Eclipse User |
|
|
|
Originally posted by: frank.niedermann.ifm.com
Hi,
we already solved this issue with the help of Rainer Jung
from KippData.
We had to add a context.xml into the META-INF directory of
our projects containing the data sources.
It's possible to add the data sources to the server.xml used
by Eclipse, it's located under Servers/Tomcat.
Frank
|
|
|
|
Powered by
FUDForum. Page generated in 0.02139 seconds