RE: JNDI datasource lost on redeploy

2004-02-06 Thread Burgess, Jay S
dataSource = (DataSource) envContext.lookup(jdbc/protodb); At the time a connection is required: conn = dataSource.getConnection(); Jay -Original Message- From: Josh Rehman [mailto:[EMAIL PROTECTED] Sent: Thursday, February 05, 2004 6:19 PM To: Tomcat Users List Subject: Re: JNDI datasource

Re: JNDI datasource lost on redeploy

2004-02-05 Thread Josh Rehman
Can't solve your problem, but two things:first, try posting a war that reproduces the bug. In this case it might be an ant script that undeploys and redeploys a trivial war. Second, it has recently come to light that you aren't supposed to mess with server.xml Contexts anymore with TC5. You

Re: JNDI datasource lost on redeploy - solved

2004-02-05 Thread todd runstein
Got it! The reference to conf/Catalina/localhost helped me search the archives to find a message from Derek Mahar on 12/15/03 named JNDI Issue with GlobalNamingResources DefaultContext Solved. In it, Derek suggests placing the context file in META-INF/context.xml. So I pulled out the Context

RE: JNDI datasource lost on redeploy

2004-02-05 Thread Burgess, Jay S
Having just gone through this headache last week, I can provide a solution that works for me (for TC5 only!). First, create a file called context.xml and put it in a directory called META-INF at the same level in your source hierarchy as WEB-INF. context.xml should contain your Context and

Re: JNDI datasource lost on redeploy

2004-02-05 Thread Josh Rehman
That's a really nice write up, Jay. Would it be convenient for you to post a simple project that does this with a build file? Sounds like something that could make it into the FAQ. If that's too much trouble I can produce a project zip perhaps. Burgess, Jay S wrote: Having just gone through

RE: JNDI datasource lost on redeploy

2004-02-05 Thread Hernani Mourao
: JNDI datasource lost on redeploy Having just gone through this headache last week, I can provide a solution that works for me (for TC5 only!). First, create a file called context.xml and put it in a directory called META-INF at the same level in your source hierarchy as WEB-INF. context.xml

RE: JNDI datasource lost on redeploy

2004-02-05 Thread todd runstein
. Any help will be very much appreciated. Thanks, Hernani -Original Message- From: Burgess, Jay S [mailto:[EMAIL PROTECTED] Sent: quinta-feira, 5 de Fevereiro de 2004 23:48 To: Tomcat Users List Subject: RE: JNDI datasource lost on redeploy Having just gone through this headache

RE: JNDI datasource lost on redeploy

2004-02-05 Thread Hernani Mourao
runstein [mailto:[EMAIL PROTECTED] Sent: sexta-feira, 6 de Fevereiro de 2004 0:50 To: Tomcat Users List Subject: RE: JNDI datasource lost on redeploy Don't know if this is the reason, but this is from the ant manuals war task entry: We regulary receive bug reports that this task is creating the WEB-INF