Hello
I think that your problem is with Eclipse and not with Tomcat
How have you configured Tomcat in Eclipse
(Windows=>Preferences=>Tomcat=>Advanced Parameters=>Tomcat Base )?
sorry for the path under Eclipse : i try to translate my Eclipse which is in
french  ;-)
I am using JNDI data source with Elipse 3.0 and JDK 1.4 and Tomcat 4.1.27
without problem
This data source is defined in server.xml
Hope that will work under Eclipse 3.1, JDK 1.5 ant Tomcat 5.5 with these
modifications : putting reference of JNDI data source in a
META-INF/context.xml and using it in WEB-INF/web.xml


Jean-Claude


-----Message d'origine-----
De : Minilin-inbox [mailto:[EMAIL PROTECTED]
Envoyé : lundi 20 mars 2006 17:11
À : Tomcat Users List
Objet : Re: JNDI in embedded tomcat


I'm sorry, I should have given the question more detailed.
Generally, we config our JNDI data source in configuration file and put it
into "conf/catalina/localhost", when tomcat is starting up alone, the
configuration is loaded by tomcat and then we can find our data source like
that:
Context context = new InitialContext()
context.lookup("my_data_sourc_name");

But now I start up tomcat in Eclipse and the configuration isn't loaded
automatically and also the data source couldn't be found.
So, the question is how could I make the configuration file work.

In one word, how to make tomcat(started by Eclipse) include a data source
that I can find out like the above snippet.


----- Original Message ----- 
From: "David Smith" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Monday, March 20, 2006 8:15 AM
Subject: Re: JNDI in embedded tomcat


> Details please. This question is way to general to answer without even
> so much as a version number.
> 
> JNDI config information for tomcat can be found at
> http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html for
> tomcat 5.5.x
> 
> --David
> 
> Minilin-inbox wrote:
> 
>>Hi, All,
>>
>>I want to start tomcat by program, but I also need a JNDI data source.
>>Could anyone tell me how to config a Tomcat JNDI data source by program, 
>>or any method let the data source configuration file work?
>>
>>Minilin
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to