RE: How to tell Tomcat to use an additional classpath other than web-inf/classes?

2008-08-20 Thread Dave Bender
Why not add the path to the CLASSPATH variable in the
'TOMCAT_HOME/bin/setclasspath.sh' script (or setclasspath.bat for
Windows)? 

We've done that for getting Tomcat to recognize server-specific properties
files and it seems to do the trick.

Dave


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
swimming_rabbit
Sent: Friday, August 15, 2008 2:48 PM
To: users@tomcat.apache.org
Subject: How to tell Tomcat to use an additional classpath other than
web-inf/classes?


Does anyone know of a way to tell Tomcat to use an additional classpath
(other than WEB-INF/classes)  when loading an application? I've got an off
the shelf application that requires us to copy our custom classes into the
application's WEB-INF/classes/ directory every time we upgrade, which is
frequent. Ideally, I would like to put the upgraded files on nfs (which is
outside Tomcat folder) that Tomcat can pick up every time it is  restarted.

-- 
View this message in context:
http://www.nabble.com/How-to-tell-Tomcat-to-use-an-additional-classpath-othe
r-than-web-inf-classes--tp19004517p19004517.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
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]



Load order for Global Resources

2008-08-11 Thread Dave Bender
Is the order that Tomcat 6.0.x loads/instantiates Custom Resources
definable?  If so, how? If not, is there a way to ensure that one custom
resource is loaded prior to another one? 
 
Tomcat 4.x seemed to have the behavior that custom resources were created in
the order they appear in the server.xml file.  I'm migrating an application
that appears to have a dependency on that order of loading.  It runs fine in
Tomcat 4.0 (and Sun Web server 6.x), but it's failing to load in Tomcat 6.0.
It throws an error where one custom resource object refers to another that's
available via JNDI but that item hasn't been loaded yet.
 
Dave
 
 
 


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]