RE: WebappClassLoader - don't understand what's happening

2005-06-03 Thread Herrmann, Sascha \(GE Healthcare\)
assistance. > did lose my mind in the maze of classloading several time. I know what you mean :o) Sascha > -Original Message- > From: delbd [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 02, 2005 4:02 PM > To: Tomcat Users List > Subject: Re: WebappClassLoader - don&#

Re: WebappClassLoader - don't understand what's happening

2005-06-02 Thread delbd
stake reading the output? I am sure that > > > > the class is > > > > > not loaded again. > > > > see message above, i just didn't know how you concluded the > > class was shared, > > one common error is to give an instance of some object to a &g

RE: WebappClassLoader - don't understand what's happening

2005-06-02 Thread Herrmann, Sascha \(GE Healthcare\)
Thursday, June 02, 2005 2:32 PM > To: Tomcat Users List > Subject: Re: WebappClassLoader - don't understand what's happening > > > Le Jeudi 2 Juin 2005 13:49, Herrmann, Sascha (GE Healthcare) a écrit : > > Thanks for your reply. > > > > It coul

Re: WebappClassLoader - don't understand what's happening

2005-06-02 Thread delbd
r. So what am I doing wrong? I believe > the debug output would be very helpful in understanding the problem. Yes have same problem here to get usefull log messages from Realms. Seems you have to modify directly the logging level in your java home, logging.properties (and setting it to debug for wh

RE: WebappClassLoader - don't understand what's happening

2005-06-02 Thread Herrmann, Sascha \(GE Healthcare\)
e WebappClassLoader. So what am I doing wrong? I believe the debug output would be very helpful in understanding the problem. Sascha > -Original Message- > From: delbd [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 02, 2005 12:33 PM > To: Tomcat Users List > Subject: Re: WebappCla

Re: WebappClassLoader - don't understand what's happening

2005-06-02 Thread delbd
This indeed should not happen as this would break sun specs. I would be quite surprised it it was at all possible :/ How did you conclude the webappclassloader is sharing the class between webapps in your case? Are you sure you are not mistakenly using a shared class? Not only does every webapp

RE: webappclassloader

2005-03-25 Thread Richard Mixon (qwest)
Its hard to tell - you need to tell us more - e.g. what version of Tomcat are you using. I have gotten similar messages when I used the deployer app to undeploy a webapp, but due to a lock on a file (i.e. a JSP file was open in a text editor) all of the files were not deleted by the deployer app.

RE: WebappClassLoader not garbage collected if web app used java.beans.Introspector

2004-09-23 Thread Shapira, Yoav
e app in memory, and the former is significantly cleaner from the JVM's perspective. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Paulsen, Jay [mailto:[EMAIL PROTECTED] >Sent: Thursday, September 23, 2004 12:20 PM >To: Tomcat U

RE: WebappClassLoader not garbage collected if web app used java.beans.Introspector

2004-09-23 Thread Paulsen, Jay
I suppose Tomcat shouldn't probably do an indiscriminate flushCaches(). It would probably have to selectively clear only the cache entries for classes loaded by the webapp classloader? In the end though, while this fixed by contrived web app I used in the testcases, it still doesn't fix my real we

RE: WebappClassLoader not garbage collected if web app used java.beans.Introspector

2004-09-23 Thread Shapira, Yoav
Hi, >Instead of requiring the web app to call flushCaches, could Tomcat do it >when it shutsdown the webapp and discards the classloader? It could. I was considering that when I attached the info you posted to the relevant Bugzilla issues yesterday. But it's not trivial, because Tomcat might b

Re: WebappClassLoader: Lifecycle error : CL stopped

2004-03-18 Thread Jacob Kjome
See my other message for the reasoning. I would recommend not to use commons-logging in your code. It does nothing for you and can only cause problems. Just use Log4j directly. If other apps use commons-logging such as Struts, you'll obviously have to include commons-logging, but don't let it i

Re: WebappClassLoader: Lifecycle error : CL stopped

2004-03-18 Thread Jacob Kjome
Quoting Jerald Powel <[EMAIL PROTECTED]>: > > > Hello, > > Yes, I see it in the Javadoc. Here's my confusion. I am not 'using' > Log4j-1.2.8 at all! To implement the logic you talk of, I would have to get a > JAR from the Apache web site? Yes, but you are using commons-logging and common

Re: WebappClassLoader: Lifecycle error : CL stopped

2004-03-18 Thread Jerald Powel
I have put down to the method not found thing to I my importing java.util.logging.LogManager! I have since acquired the JAR from Apache.org, implemented: public void contextDestroyed(ServletContextEvent event) { org.apache.log4j.LogManager.shutdown(); } in a servlet implementin

Re: WebappClassLoader: Lifecycle error : CL stopped

2004-03-18 Thread Jerald Powel
Hello, Yes, I see it in the Javadoc. Here's my confusion. I am not 'using' Log4j-1.2.8 at all! To implement the logic you talk of, I would have to get a JAR from the Apache web site? Even though I am not using Log4j whatsoever on my app, is this necessary? I dont know what class I was r

RE: WebappClassLoader: Lifecycle error : CL stopped

2004-03-18 Thread Shapira, Yoav
nformatics >-Original Message- >From: Jacob Kjome [mailto:[EMAIL PROTECTED] >Sent: Thursday, March 18, 2004 12:31 AM >To: Tomcat Users List >Subject: Re: WebappClassLoader: Lifecycle error : CL stopped > >At 10:38 PM 3/17/2004 +, you wrote: > >>Hi, >> >

Re: WebappClassLoader: Lifecycle error : CL stopped

2004-03-17 Thread Jacob Kjome
At 10:38 PM 3/17/2004 +, you wrote: Hi, Thank you for that, and excuse my delay in responding. I tried what you suggested, but found the LogManager class did not contain such a method. It did have one method to speak of - getLogManager() which returns an instance of LogManager, but tha

Re: WebappClassLoader: Lifecycle error : CL stopped

2004-03-17 Thread Jerald Powel
Hi, Thank you for that, and excuse my delay in responding. I tried what you suggested, but found the LogManager class did not contain such a method. It did have one method to speak of - getLogManager() which returns an instance of LogManager, but that also has no shutdown method. I found r

Re: WebappClassLoader: Lifecycle error : CL stopped

2004-03-15 Thread Jacob Kjome
This has to do with Log4j. Make sure you set up a servlet context listener and do LogManager.shutdown() in the contextDestroyed() method. This will take care of your troubles. Jake At 02:13 AM 3/16/2004 +, you wrote: Hello all, Can anyone shed some light on the above error please?

Re: WebappClassLoader not GC'd after webapp reload (Tomcat 4.1.24, 5.0.18)

2004-01-29 Thread Remy Maucherat
Tatyana Apine wrote: Hi all, I've got a problem and was wondering if you ever experienced something like this. My webapplication is using Struts(1.1) and Log4J (1.2.7). I run it on tomcat 4.1.24 (I also tried 5.0.18 and got the same behavior). I use OptimizeIt (version 4.2) to see what classes

RE: WebappClassLoader won't load resource from jar file ?!?

2003-11-18 Thread Shapira, Yoav
pira Millennium ChemInformatics >-Original Message- >From: Jay Garala [mailto:[EMAIL PROTECTED] >Sent: Tuesday, November 18, 2003 11:40 AM >To: 'Tomcat Users List' >Subject: RE: WebappClassLoader won't load resource from jar file ?!? > >Put the JA

RE: WebappClassLoader won't load resource from jar file ?!?

2003-11-18 Thread Jay Garala
Put the JARs in the WEB-INF/lib dir! -Original Message- From: Steph Richardson [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 11:34 AM To: Tomcat Users List Subject: WebappClassLoader won't load resource from jar file ?!? I have a web app containing resource files in severa

Re: webappclassloader problem

2002-03-22 Thread Jean-pierre Cartal
I found the problem. I was trying to instantiate a class that was located in a jar in common/lib, however this class was implementing an interface located in a jar in WEB-INF/lib, and thus the signature could not be found :-( [EMAIL PROTECTED] wrote: > Hi, > > I've a webapp which contains has

[Summary] Re: WebappClassLoader question

2001-07-27 Thread Vincent Massol
--- Original Message - From: "Andrew Inggs" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 27, 2001 10:01 AM Subject: RE: WebappClassLoader question > Hi Vincent > > You seem to be missing at least two things here: > > 1. In y

Re: WebappClassLoader question

2001-07-27 Thread Craig R. McClanahan
EB-INF/lib > Class C is in WEB-INF/classes > > Any idea. If not, I'll try to make the most simple example that reproduces > what I have and I'll send it over. > Thanks a lot. > -Vincent > > - Original Message - > From: "Craig R. McClanahan"

RE: WebappClassLoader question

2001-07-27 Thread Jim Cheesman
> > > > The problem is, Cactus (Jakarta's J2EE testing package) raises an > > exception if junit.jar is not found; it should catch the exception and > > kindly explain the situation to the user. > > > > Right now, the exception is raised in a strange place, and > > thus the user > > is faced with

RE: WebappClassLoader question

2001-07-27 Thread Ignacio J. Ortega
> -Mensaje original- > De: Alex Fernández [mailto:[EMAIL PROTECTED]] > Enviado el: viernes 27 de julio de 2001 11:17 > Para: [EMAIL PROTECTED] > Asunto: Re: WebappClassLoader question > > > The problem is, Cactus (Jakarta's J2EE testing package) raises an &g

Re: WebappClassLoader question

2001-07-27 Thread Vincent Massol
- Original Message - From: "Andrew Inggs" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 27, 2001 10:01 AM Subject: RE: WebappClassLoader question > Hi Vincent > > You seem to be missing at least two things here: > > 1. In your

Re: WebappClassLoader question

2001-07-27 Thread Alex Fernández
Hola Nacho, "Ignacio J. Ortega" wrote: > I'm lost here, where you put the Junit.jar? , because it will be on some > place? no? to allow you load classes from , no?, i think you need the > entire inheritance chain for resolving dependencies, so you need > Junit.jar in some place in classpath AFAIK

RE: WebappClassLoader question

2001-07-27 Thread Andrew Inggs
Hi Vincent You seem to be missing at least two things here: 1. In your original post you said: > When I access the servlet, I get a ClassNotFoundException on a > JUnit class. So far it is normal ... > When I debugged it, I have actually found that the error was > happening when ServletTestRedir

Re: WebappClassLoader question

2001-07-27 Thread Dmitri Colebatch
nal details. > > Classes A, B, and D are in a jar under WEB-INF/lib > Class C is in WEB-INF/classes > > Any idea. If not, I'll try to make the most simple example that reproduces > what I have and I'll send it over. > Thanks a lot. > -Vincent > > - Original

Re: WebappClassLoader question

2001-07-27 Thread Vincent Massol
nd D are in a jar under WEB-INF/lib Class C is in WEB-INF/classes Any idea. If not, I'll try to make the most simple example that reproduces what I have and I'll send it over. Thanks a lot. -Vincent - Original Message - From: "Craig R. McClanahan" <[EMAIL PROTECTED]>

Re: WebappClassLoader question

2001-07-26 Thread Craig R. McClanahan
t; Now all of this is packaged in a war, classes A and B and in a jar put in > > WEB-INF/lib and class C is put in WEB-INF/classes. The junit jar is *not* > > put in WEB-INF/lib. > > > > Calling the servlet A result in an error occurring between the logs "before >

Re: WebappClassLoader question

2001-07-26 Thread Craig R. McClanahan
; error" and "after error" and the log "I would have thought here" is never > printed because the error happens _before_ ... This is what I don't > understand. > > Any idea ? > Thanks a lot > -Vincent > > - Original Message - > Fro

RE: WebappClassLoader question

2001-07-26 Thread Ignacio J. Ortega
Hola Vincent: > -Mensaje original- > De: Vincent Massol [mailto:[EMAIL PROTECTED]] > Enviado el: jueves 26 de julio de 2001 22:20 > Para: Craig R. McClanahan; [EMAIL PROTECTED] > Asunto: Re: WebappClassLoader question > > Now all of this is packaged in a war, c

Re: WebappClassLoader question

2001-07-26 Thread Vincent Massol
sage - From: "Craig R. McClanahan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Vincent Massol" <[EMAIL PROTECTED]> Sent: Thursday, July 26, 2001 6:18 PM Subject: Re: WebappClassLoader question On Thu, 26 Jul 2001, Vincent Massol wrote: > Thanks Alex

Re: WebappClassLoader question

2001-07-26 Thread Craig R. McClanahan
, and a version of that same class in your web app, the version in your webapp wins. > - Original Message - > From: "Alex Fernández" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, July 25, 2001 3:44 PM > Subject: Re: WebappClassLoader questi

Re: WebappClassLoader question

2001-07-26 Thread Vincent Massol
the 2nd class ! This is what I don't understand. Am I dreaming or is this a behaviour of Tomcat 4 ? Thanks -Vincent - Original Message - From: "Alex Fernández" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 25, 2001 3:44 PM Subject: Re: Webapp

Re: WebappClassLoader question

2001-07-25 Thread Alex Fernández
Hi Vincent! I've run into the same situation a couple of times, when one class uses a second class, and this second class uses a third one that is not present. 1st -> 2nd -> 3rd (missing) One would think that instantiating the 2nd should give an error, but that loading the 2nd and/or instantiat