Any idea which version has it fixed sandy? I've tried Tomcat 4.1.30 as
well as 5.0.19 to no avail. Is it only in cvs at this point?
Thanks,
David
-Original Message-
From: Sandy McArthur [mailto:[EMAIL PROTECTED]
Sent: Friday, April 30, 2004 3:12 PM
To: Tomcat Developers List
Subject: Re: Which class stores the JNDI resources?
Been there. This has been fixed already. Use a newer release of tomcat.
On Apr 30, 2004, at 1:34 PM, David wrote:
Hi I've run into some problems with Tomcats JNDI storing.. Here is the
situation:
Running Struts 1.1, with a Spring plugin that loads a JNDI Datasource
object.
Resource specified itself in the default context, OR specified in
GlobalResources with a resourceLink to it in the default context.
What happens as I have traced is:
-Tomcat loads
-Resource gets loaded into the namespace WITHOUT its resource params
-Tomcat loads the Struts Action Servlet from my webapp
-Plugin executes and gets an empty DataSource object from the DBCP
Factory
-Struts Action servlet finishes executing its init
-Tomcat loads the Resource into the namespace AGAIN WITH its resource
params
From that point forward I can get a fully populated functioning
datasource.
Now this will work if I specify a resource link inside a specific
Context element for my webapp within server.xml, however we want to
deploy our webapp via a war file so it needs to be in the default
context.
Can anyone point me to the class handling the saves to JNDI so I can
see
exactly what is happening? Or a good workaround for this?
Thanks,
David
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Sandy McArthur
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]