Re: Question regarding tomcat class path handling

2006-01-16 Thread Sriram Narayanan
On 1/12/06, Oded Arbel <[EMAIL PROTECTED]> wrote: > On Wednesday, 11 בJanuary 2006 18:38, Sriram Narayanan wrote: > > I wrote something that works for me: > > http://issues.apache.org/bugzilla/show_bug.cgi?id=38223 > > Thanks. I didn't use your implementation for the reason noted in the > comment I

Re: Question regarding tomcat class path handling

2006-01-15 Thread Oded Arbel
On Friday, 13 בJanuary 2006 01:19, [EMAIL PROTECTED] wrote: > On Mon, Jan 09, 2006 at 08:16:00PM +0200, Oded Arbel wrote: > > The problem is like this (the actual system is far more complex): > > - suppose two web applications, app1 and app2, both use some API > > (which I developed myself). > > -

Re: Question regarding tomcat class path handling

2006-01-12 Thread erh
On Mon, Jan 09, 2006 at 08:16:00PM +0200, Oded Arbel wrote: > The problem is like this (the actual system is far more complex): > - suppose two web applications, app1 and app2, both use some API (which > I developed myself). > - I don't want to develop the API twice on both web applications, so I

Re: Question regarding tomcat class path handling

2006-01-12 Thread Sriram Narayanan
On 1/10/06, Oded Arbel <[EMAIL PROTECTED]> wrote: > > > > What you could do is to write your own WebAppClassLoader that'd add > > these folders to its lookup list. > > Hmm. interesting. How can I let such a class loader implementation to be > used instead of tomcat's WebAppClassLoader ? > The fol

Re: Question regarding tomcat class path handling

2006-01-12 Thread Oded Arbel
On Wednesday, 11 בJanuary 2006 18:38, Sriram Narayanan wrote: > I wrote something that works for me: > http://issues.apache.org/bugzilla/show_bug.cgi?id=38223 Thanks. I didn't use your implementation for the reason noted in the comment I attached to the issue, but you pointed me in the right dir

Re: Question regarding tomcat class path handling

2006-01-11 Thread Sriram Narayanan
On 1/10/06, Sriram Narayanan <[EMAIL PROTECTED]> wrote: > On 1/10/06, Oded Arbel <[EMAIL PROTECTED]> wrote: > > > > > > > What you could do is to write your own WebAppClassLoader that'd add > > > these folders to its lookup list. > > > > Hmm. interesting. How can I let such a class loader implement

AW: Question regarding tomcat class path handling

2006-01-10 Thread Eickvonder Bjoern
> 3. You might even wish to see if you could copy classes into > the classes folder while Tomcat is running. That way the web > apps would get reloaded. You'd need to configure Tomcat to > recognize the Web apps to be reloadable, of course. Or you might use an ant build-file which first stops t

Re: Question regarding tomcat class path handling

2006-01-10 Thread Sriram Narayanan
On 1/9/06, Oded Arbel <[EMAIL PROTECTED]> wrote: > > So now if an application uses a local library, and that library required > a third party jar, it can't find it. > The way I see it, I have two options - either put all the 3rd party > libraries back in the JVM classpath, or build jars from my lo

Re: Question regarding tomcat class path handling

2006-01-09 Thread Oded Arbel
> On 1/10/06, Oded Arbel <[EMAIL PROTECTED]> wrote: > >> >> An optimal setup for me, I think, is: >> - for each application to put the 3rd party dependencies in WEB-INF/lib >> (I'm using JPackage's build-jar-repository, which I auto invoke from >> the ant script, so its even automatic). > > I thoug

Re: Question regarding tomcat class path handling

2006-01-09 Thread Sriram Narayanan
On 1/10/06, Oded Arbel <[EMAIL PROTECTED]> wrote: > > An optimal setup for me, I think, is: > - for each application to put the 3rd party dependencies in WEB-INF/lib > (I'm using JPackage's build-jar-repository, which I auto invoke from > the ant script, so its even automatic). I thought you said

Re: Question regarding tomcat class path handling

2006-01-09 Thread Oded Arbel
On Monday, 9 בJanuary 2006 21:34, Boris Unckel wrote: > > But then, if the API library calls a 3rd party library, that > > library can't be put in WEB-INF/lib either - it has to be put in > > the tomcat's startup classpath as well. > > Ok. I will repeat to ensure I understand it: > You have a devel

Re: Question regarding tomcat class path handling

2006-01-09 Thread Boris Unckel
> But then, if the API library calls a 3rd party library, that library > can't be put in WEB-INF/lib either - it has to be put in the tomcat's > startup classpath as well. Ok. I will repeat to ensure I understand it: You have a development system where you do not want to jar for each test of your

Re: Question regarding tomcat class path handling

2006-01-09 Thread Oded Arbel
On Monday, 9 בJanuary 2006 20:02, Boris Unckel wrote: > > The way I see it, I have two options - either put all the 3rd party > > libraries back in the JVM classpath, or build jars from my locally > > developed libraries and copy them by hand to the web applications' > > folder. I don't like either

Re: Question regarding tomcat class path handling

2006-01-09 Thread Boris Unckel
> The way I see it, I have two options - either put all the 3rd party > libraries back in the JVM classpath, or build jars from my locally > developed libraries and copy them by hand to the web applications' > folder. I don't like either option, and I would really like a third one > - something

Question regarding tomcat class path handling

2006-01-09 Thread Oded Arbel
I have a development server where I have several java projects - some of them are web applications and some of them are libraries or other applications. I have a problem as some of the web applications are using libraries developed outside the web application root, and those libraries sometim