Re: Possible to assign different class loader for each web app with tomcat

2008-05-09 Thread Mark Thomas
[EMAIL PROTECTED] wrote: Hi, Is it possible to configure a separate class loader for each web app running under tomcat? A colleague has informed that he can do this with web sphere and I am wondering if it is possible with tomcat. This is the case by default. No configuration is required.

Re: Possible to assign different class loader for each web app with tomcat

2008-05-09 Thread Mark Thomas
Mark Thomas wrote: [EMAIL PROTECTED] wrote: Hi, Is it possible to configure a separate class loader for each web app running under tomcat? A colleague has informed that he can do this with web sphere and I am wondering if it is possible with tomcat. This is the case by default. No

RE: Possible to assign different class loader for each web app with tomcat

2008-05-09 Thread paul.ockleford
Ok, that's strange because yesterday I had a small problem, and I assumed that it was due to the same class being loaded on startup by 2 web apps. I had a url endpoint loaded into a config class on startup from the web.xml, for some reason no messages were reaching the correct end point. This

Re: Possible to assign different class loader for each web app with tomcat

2008-05-09 Thread David Delbecq
This all depends on your webapp structure. If your config class is on the common or system class loader, it's shared by all webapps. Otherwise, (that mean if class is in WEB-INF/lib or WEB-INF/classes), it shouldn't be shared. Unless, of course, you specified a specific classloader to use by

RE: Possible to assign different class loader for each web app with tomcat

2008-05-09 Thread paul.ockleford
Thanks for the reply. To be honest I am not sure, both web apps are separated, have their own web.xml files and also are accessed via different ports, however as they are effectively the same application at different stages of development they each need to load parameters in on start up to a

Re: Possible to assign different class loader for each web app with tomcat

2008-05-09 Thread Mark Thomas
[EMAIL PROTECTED] wrote: Thanks for the reply. To be honest I am not sure, both web apps are separated, have their own web.xml files and also are accessed via different ports, however as they are effectively the same application at different stages of development they each need to load

RE: Possible to assign different class loader for each web app with tomcat

2008-05-09 Thread paul.ockleford
Ok thanks, it's starting to become clearer now. The class file is in a jar file that lives in tomcat\shared\lib. I am guessing that these classes are loaded by a class loader further up the hierarchy described in the tomcat docs. I suppose in this instance there would only be one class loaded?

Re: Possible to assign different class loader for each web app with tomcat

2008-05-09 Thread Mark Thomas
[EMAIL PROTECTED] wrote: Ok thanks, it's starting to become clearer now. The class file is in a jar file that lives in tomcat\shared\lib. I am guessing that these classes are loaded by a class loader further up the hierarchy described in the tomcat docs. I suppose in this instance there would

RE: Possible to assign different class loader for each web app with tomcat

2008-05-09 Thread paul.ockleford
Thanks for the replies, I think I understand what is happening now, I think for safety's sake I will use a separate config file for each web app instead of trying to share one between them all and load separate copies. Thank you. -Original Message- From: Mark Thomas [mailto:[EMAIL