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]



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

2008-08-20 Thread Caldarale, Charles R
 From: Dave Bender [mailto:[EMAIL PROTECTED]
 Subject: RE: How to tell Tomcat to use an additional
 classpath other than web-inf/classes?

 Why not add the path to the CLASSPATH variable in
 the 'TOMCAT_HOME/bin/setclasspath.sh' script (or
 setclasspath.bat for Windows)?

Because that prevents the webapp from being reloaded without starting Tomcat.  
It also introduces the distinct possibility of duplicating classes in the 
classloader hierarchy.  Putting anything in CLASSPATH other than the bare 
minimum Tomcat itself (not any webapp) actually needs is a Really Bad Idea.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
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: How to tell Tomcat to use an additional classpath other than web-inf/classes?

2008-08-18 Thread David Smith
I would personally use a build tool like Maven to a) build your custom 
code into a jar file and b) build the final, customized app using 
resources from your custom code and the third party app.  Then you have 
easy integration as new updates come out.  Even if nothing else, build 
your stuff into a jar file that can simply be dropped into the 
WEB-INF/lib directory of the third party app.


--David

swimming_rabbit wrote:

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.   
  



-
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: How to tell Tomcat to use an additional classpath other than web-inf/classes?

2008-08-18 Thread David Kramer
Since you're talking nfs, I assume you're on a *NIX OS.  How about use 
David Smith's idea to roll your stuff into one jar file, then use a 
symbolic link from that one jar file on your network share to the right 
tomcat directory?



David Smith wrote:
I would personally use a build tool like Maven to a) build your custom 
code into a jar file and b) build the final, customized app using 
resources from your custom code and the third party app.  Then you have 
easy integration as new updates come out.  Even if nothing else, build 
your stuff into a jar file that can simply be dropped into the 
WEB-INF/lib directory of the third party app.


--David

swimming_rabbit wrote:

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. 



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


The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential and/or privileged material. Any 
review, retransmission, dissemination or other use of, or taking of any action 
in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. If you received this in error, please contact 
the sender and delete the material from any computer.

-
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: How to tell Tomcat to use an additional classpath other than web-inf/classes?

2008-08-15 Thread Johnny Kewl


- Original Message - 
From: swimming_rabbit [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Friday, August 15, 2008 9:48 PM
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-other-than-web-inf-classes--tp19004517p19004517.html

Sent from the Tomcat - User mailing list archive at Nabble.com.


3 choices that come to mind

+ Make your own custom class loader...
+ Use Java's EX class loader mechanism... ie you can stick stuff in the JRE 
Ex folder... should work if no one upgrades the JRE

+ Use TC's POJO Application server my baby ;)
You can put your classes, JARs in a Tomcat on the other side of the world 
and they will still work ;)


You call em like this...
Class uiApp = vessel.getRemoteClass(com.yourco.the.class.to.run);

And thats it...

One TC at your office... with your classes in it... other TC's calling the 
above... anywhere.
This strange phenomenon is because TC just happens to be the most powerful 
application server on earth... but its a secret, dont tell glassfish ;)


---
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
--- 



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