RE: Datasource - OK in app context - Fails in Global context

2004-01-12 Thread Altankov Peter
Hi From: Antonio Fiol Bonnin [mailto:[EMAIL PROTECTED] Sent: 11 2004 . 11:39 Subject: Re: Datasource - OK in app context - Fails in Global context So, could someone summarize for me the different ways of creating a JDBC DataSource in Tomcat? I will start the summary, so that it's

RE: Datasource - OK in app context - Fails in Global context

2004-01-12 Thread Bruno.Melloni
, if not, the workaround works just fine. Bruno. -Original Message- From: ext Keshav Sarin [mailto:[EMAIL PROTECTED] Sent: Friday, January 09, 2004 4:23 PM To: [EMAIL PROTECTED] Subject: RE: Datasource - OK in app context - Fails in Global context There's a catch though In TC 4.x, if you put a app

RE: Datasource - OK in app context - Fails in Global context

2004-01-12 Thread Keshav Sarin
] Subject: RE: Datasource - OK in app context - Fails in Global context There's a catch though In TC 4.x, if you put a app context entry in the server.xml, the app doesn't get reloaded even if the war is overwritten or the app directory is deleted or the server is restarted. The fully

RE: Datasource - OK in app context - Fails in Global context

2004-01-12 Thread Bruno.Melloni
- From: ext Keshav Sarin [mailto:[EMAIL PROTECTED] Sent: Monday, January 12, 2004 9:25 AM To: [EMAIL PROTECTED] Subject: RE: Datasource - OK in app context - Fails in Global context When I tested 5.0 for auto deployment, the datasource JNDI context was no longer available to the application

RE: Datasource - OK in app context - Fails in Global context

2004-01-12 Thread Keshav Sarin
: Datasource - OK in app context - Fails in Global context When I tested 5.0 for auto deployment, the datasource JNDI context was no longer available to the application and a SQLException was thrown in the logs (the app interacts with database on initialization). The application worked fine after

RE: Datasource - OK in app context - Fails in Global context

2004-01-12 Thread Bruno.Melloni
-effects. -Original Message- From: ext Keshav Sarin [mailto:[EMAIL PROTECTED] Sent: Monday, January 12, 2004 11:26 AM To: [EMAIL PROTECTED] Subject: RE: Datasource - OK in app context - Fails in Global context On a different topic, do you have the database driver under WEB-INF/lib or common

Re: Datasource - OK in app context - Fails in Global context

2004-01-11 Thread Antonio Fiol BonnĂ­n
So, could someone summarize for me the different ways of creating a JDBC DataSource in Tomcat? I will start the summary, so that it's easier to correct/complete. Please fill in the gaps ;-) 1. Have the DataSource defined in your application's context. That way, if you have two apps, you

Datasource - OK in app context - Fails in Global context

2004-01-09 Thread Bruno.Melloni
I have an Oracle JDBC datasource that I defined in the Tomcat5 context for an application (conf/Catalina/localhost/nwg.xml). Works fine, context file listed below. But when I tried to move the datasource to the GlobalNamingResources section of server.xml so that it would be accessible to

Re: Datasource - OK in app context - Fails in Global context

2004-01-09 Thread Keshav Sarin
Have you defined a reference to the global resource in the ResourceLink element of the application context ? [EMAIL PROTECTED] 01/09/04 10:38AM I have an Oracle JDBC datasource that I defined in the Tomcat5 context for an application (conf/Catalina/localhost/nwg.xml). Works fine, context file

RE: Datasource - OK in app context - Fails in Global context

2004-01-09 Thread Bruno.Melloni
[mailto:[EMAIL PROTECTED] Sent: Friday, January 09, 2004 3:22 PM To: [EMAIL PROTECTED]; Melloni Bruno (Nokia-BI/Dallas) Subject: Re: Datasource - OK in app context - Fails in Global context Have you defined a reference to the global resource in the ResourceLink element of the application context

RE: Datasource - OK in app context - Fails in Global context

2004-01-09 Thread Keshav Sarin
hair on this issue for almost a month. Bruno -Original Message- From: ext Keshav Sarin [mailto:[EMAIL PROTECTED] Sent: Friday, January 09, 2004 3:22 PM To: [EMAIL PROTECTED]; Melloni Bruno (Nokia-BI/Dallas) Subject: Re: Datasource - OK in app context - Fails in Global context Have you

RE: Datasource - OK in app context - Fails in Global context

2004-01-09 Thread Jacob Kjome
- From: ext Keshav Sarin [mailto:[EMAIL PROTECTED] Sent: Friday, January 09, 2004 3:22 PM To: [EMAIL PROTECTED]; Melloni Bruno (Nokia-BI/Dallas) Subject: Re: Datasource - OK in app context - Fails in Global context Have you defined a reference to the global resource in the ResourceLink element