Re: Load order for Global Resources

2008-08-11 Thread Mark Thomas

Dave Bender wrote:

Is the order that Tomcat 6.0.x loads/instantiates Custom Resources
definable?

I am afraid not.


If so, how? If not, is there a way to ensure that one custom
resource is loaded prior to another one?

Not that I am aware of.

I think the order is going to be be defined by the order in which the xml 
parser returns them.


Is there any way you can modify the code the the resource with the 
dependency to work around this?


Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Load order for Global Resources

2008-08-11 Thread Dave Bender
Thanks.  Some replies:

 I think the order is going to be be defined by the order in which the xml
parser returns them.
Has there been any change to the parser from version 4.x to version 6.x?  If
so, maybe that'll explain the problem.  If not, in theory, we should be
getting the same order of loading...in which case something else might be in
play.


 Is there any way you can modify the code the the resource with the
dependency to work around this?
My mind is starting to go there.  But the first task is to migrate this to
the current version of Tomcat and I'd like to avoid any coding changes
unless it is clear they need to be made.  This issue is still a mystery.  



Dave



 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Mark Thomas
Sent: Monday, August 11, 2008 3:57 PM
To: Tomcat Users List
Subject: Re: Load order for Global Resources

Dave Bender wrote:
 Is the order that Tomcat 6.0.x loads/instantiates Custom Resources 
 definable?
I am afraid not.

 If so, how? If not, is there a way to ensure that one custom resource 
 is loaded prior to another one?
Not that I am aware of.

I think the order is going to be be defined by the order in which the xml
parser returns them.

Is there any way you can modify the code the the resource with the
dependency to work around this?

Mark


-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Load order for Global Resources

2008-08-11 Thread Mark Thomas

Dave Bender wrote:

Thanks.  Some replies:


I think the order is going to be be defined by the order in which the xml

parser returns them.
Has there been any change to the parser from version 4.x to version 6.x?  If
so, maybe that'll explain the problem.  If not, in theory, we should be
getting the same order of loading...in which case something else might be in
play.


Xerces 2.9.1 in 4.1.37, the JDK (Xerces based?) in 6.0.x

See 
http://svn.apache.org/viewvc/tomcat/container/tags/tc4.1.x/TOMCAT_4_1_37/build.properties.default?view=markup 
for which version of Xerces was used. Similar urls can be used for any TC4 
release.


Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]