Setting classpath out of the webapp directory

2004-05-03 Thread Honza Spurn
Hi there, I'have been trying to set the classpath of the webapp out of the directory of this webapp. This is for me little important, since some classes I'd like to use (I have to use) in other webapps. I want to have only one file of this class -- I don't want to copy classes between the

Re: Setting classpath out of the webapp directory

2004-05-03 Thread Eric Noel
On 5/3/2004 4:26 PM, Honza Spurn wrote: Hi there, I'have been trying to set the classpath of the webapp out of the directory of this webapp. This is for me little important, since some classes I'd like to use (I have to use) in other webapps. I want to have only one file of this class -- I don't

RE: Setting classpath out of the webapp directory

2004-05-03 Thread Mazin Safadi
, May 03, 2004 10:26 To: Tomcat Maillisting Subject: Setting classpath out of the webapp directory Hi there, I'have been trying to set the classpath of the webapp out of the directory of this webapp. This is for me little important, since some classes I'd like to use (I have to use) in other webapps

Re: Setting classpath out of the webapp directory

2004-05-03 Thread Chris Wahl
it's easy :) put your classes or jars to be *shared by your webapps* into the directory ---%TOMCAT_HOME%\shared\classes or %TOMCAT_HOME%\shared\lib Regards, Potomac - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Setting classpath out of the webapp directory

2004-05-03 Thread Honza Spurn
Eric Noel wrote: On 5/3/2004 4:26 PM, Honza Spurn wrote: Hi there, I'have been trying to set the classpath of the webapp out of the directory of this webapp. This is for me little important, since some classes I'd like to use (I have to use) in other webapps. I want to have only one file

Re: Setting classpath out of the webapp directory

2004-05-03 Thread Tim Funk
Place your classes in common/lib or shared/lib But you need to be careful. The common/lib and shared/lib classloaders cannot see the WEB-INF classloader - which means that you can easily get the no class found errors. Multiple copies of JAR files in each classloader is OK. You can do that via

Re: Setting classpath out of the webapp directory

2004-05-03 Thread Honza Spurn
I've done: - in the common directory I've created src directory - into the src dir I've copied all shared java-sourced classes - i've compiled them into the common/classes directory - i've copied some shared libaries into the common/lib - i've removed whole directory

RE: Setting classpath out of the webapp directory

2004-05-03 Thread Shapira, Yoav
Hi, I want to have only one file of this class -- I don't want to copy classes between the webapps. Why? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This

Re: Setting classpath out of the webapp directory

2004-05-03 Thread Honza Spurný
Shapira, Yoav wrote: Hi, I want to have only one file of this class -- I don't want to copy classes between the webapps. Why? Yoav Shapira Beacuase when you are developing both webapps at the same time, duplicates leads into some data inconsistences, doesn't it? Honza S. This e-mail,

RE: Setting classpath out of the webapp directory

2004-05-03 Thread Shapira, Yoav
Hi, Beacuase when you are developing both webapps at the same time, duplicates leads into some data inconsistences, doesn't it? Not if your development and deployment process is well-controlled. Yoav Shapira This e-mail, including any attachments, is a confidential business communication,

Re: Setting classpath out of the webapp directory

2004-05-03 Thread Honza Spurný
Shapira, Yoav wrote: Hi, Beacuase when you are developing both webapps at the same time, duplicates leads into some data inconsistences, doesn't it? Not if your development and deployment process is well-controlled. Yoav Shapira OK, you are right, but I think, is really better to have

RE: Setting classpath out of the webapp directory

2004-05-03 Thread Shapira, Yoav
Hi, OK, you are right, but I think, is really better to have the same code in one file -- i think is;t better than have one code in a lot of files, don't you? :) I completely agree, but the above is unrelated to your previous question. The same code should only be in one file, of course. Then

RE: Setting classpath out of the webapp directory

2004-05-03 Thread zze-NADIFI Abderrahim FTRD/DTL/CAE
Hi, I think I'm not concerned by your message. Thanks in advanced to delete my adress from your list of users. -Message d'origine- De : Shapira, Yoav [mailto:[EMAIL PROTECTED] Envoye : lundi 3 mai 2004 15:17 A : Tomcat Users List Objet : RE: Setting classpath out of the webapp directory