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

2005-06-03 Thread Herrmann, Sascha \(GE Healthcare\)
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't understand what's happening Le Jeudi

WebappClassLoader - don't understand what's happening

2005-06-02 Thread Herrmann, Sascha \(GE Healthcare\)
We are facing a problem with Tomcats WebappClassLoader. We deploy several of our own applications on one Tomcat server. It seems that the WebappClassLoaderS are not isolated but share classes instead. Why would that be? Judging from the (well, outdated) classloader documentation, this should

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

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

2005-06-02 Thread Herrmann, Sascha \(GE Healthcare\)
to what app I also added the code to some methods of classes that are either in app A or in app B and not in both. I start app A. The output shows that - the class is loaded in app A by WebappClassLoader with hash A - the instance is created in app A using the Class loaded by WebappClassLoader

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

2005-06-02 Thread delbd
A or in app B and not in both. I start app A. The output shows that - the class is loaded in app A by WebappClassLoader with hash A - the instance is created in app A using the Class loaded by WebappClassLoader with hash A. - Thread context classloader is WebappClassLoader with hash A. Then I

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

2005-06-02 Thread Herrmann, Sascha \(GE Healthcare\)
goes into the log file of the application that started first (the one that loaded the class). Even the output when I use the app that was started second. That's how I noticed in the first place. Are you familiar with the classloading stuff? I was wondering ... when the WebappClassLoader doesn't

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

2005-06-02 Thread delbd
and package are using a common Log4j library. Are you familiar with the classloading stuff? did lose my mind in the maze of classloading several time. I was wondering ... when the WebappClassLoader doesn't find the class in its path, and then delegates the loading to the shared classloader

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.

webappclassloader

2005-03-24 Thread FRANCOIS Dufour
hi to all finaly working realy nice on a .org but i got this comming out resource `/web-inf/classes/listeners/contextlistener.class`is missing? any idee of what it is? [EMAIL PROTECTED] administrateur http://monteregiechat.org

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

2004-09-23 Thread Paulsen, Jay
The java.beans.Introspector class keeps a static reference to a cache of BeanInfo classes. From the javadoc for Introspector: * Because the Introspector caches BeanInfo classes for better performance, * take care if you use it in an application that uses * multiple class loaders. * In

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 be

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

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

2004-09-23 Thread Shapira, Yoav
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 Users List Subject: RE: WebappClassLoader

RE: WebappClassLoader: Lifecycle error : CL stopped

2004-03-18 Thread Shapira, Yoav
-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, Thank you for that, and excuse my delay in responding. I

Re: WebappClassLoader: Lifecycle error : CL stopped

2004-03-18 Thread Jerald Powel
associated with NoClassDefFoundError, and something called DOMConfigurator. May app does indeed parse XML (JDom and Nano XML). Is this message linked to an error possibly residing in my XML parsing? I also see that it is associated with the stop() method on the WebappClassLoader'. But I am

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

Re: WebappClassLoader: Lifecycle error : CL stopped

2004-03-18 Thread Jacob Kjome
() method on the WebappClassLoader'. But I am not calling such a method. Any info appreciated G. - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now

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

Re: WebappClassLoader: Lifecycle error : CL stopped

2004-03-17 Thread Jerald Powel
DOMConfigurator. May app does indeed parse XML (JDom and Nano XML). Is this message linked to an error possibly residing in my XML parsing? I also see that it is associated with the stop() method on the WebappClassLoader'. But I am not calling such a method. Any info appreciated G

Re: WebappClassLoader: Lifecycle error : CL stopped

2004-03-17 Thread Jacob Kjome
with the stop() method on the WebappClassLoader'. But I am not calling such a method. Any info appreciated G. - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now

WebappClassLoader: Lifecycle error : CL stopped

2004-03-15 Thread Jerald Powel
parsing? I also see that it is associated with the stop() method on the WebappClassLoader'. But I am not calling such a method. Any info appreciated G. - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download

Re: WebappClassLoader: Lifecycle error : CL stopped

2004-03-15 Thread Jacob Kjome
on the WebappClassLoader'. But I am not calling such a method. Any info appreciated G. - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now

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

2004-01-29 Thread Remy Maucherat
classes weren't garbage collected after I stop or reload my webapplication. I noticed that org.apache.catalina.loader.WebappClassLoader is not removed after I stop/reload my webapplication. Every time I restart my application, the new WebappClassLoader is added to the list of WebappClassLoaders

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

2004-01-28 Thread Tatyana Apine
collected after I stop or reload my webapplication. I noticed that org.apache.catalina.loader.WebappClassLoader is not removed after I stop/reload my webapplication. Every time I restart my application, the new WebappClassLoader is added to the list of WebappClassLoaders instances - and they never

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

2003-11-18 Thread Steph Richardson
. Logging a toString() on this ClassLoader is shown below. Is it meaningful that it doesn't list my jar files in it's list of repositories ?? --- WebappClassLoader available: delegate: false repositories

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

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

2003-11-18 Thread Shapira, Yoav
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 JARs in the WEB-INF/lib dir! -Original Message- From: Steph

WebappClassLoader :Lifecycle error:CL stopped

2003-09-16 Thread Shanta B
Hi I am getting following error when i am calling shutdown.sh .whats the reason for this error. shanta.B - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Antwort: Tomcat 3.3.1 - Tomcat 4.1.x (Xerces), WebAppClassloader debuglevel

2003-08-14 Thread Oliver Wulff
Kopie: Thema: Tomcat 3.3.1 - Tomcat 4.1.x (Xerces), WebAppClassloader debug level 11.08.2003 16:50 Bitte antworten

Tomcat 3.3.1 - Tomcat 4.1.x (Xerces), WebAppClassloader debug level

2003-08-14 Thread Oliver Wulff
with Xerces. So I wanted to increase the debug level of the webappclassloader to see whether some classes from Xerces are loaded through the parent classloader and some by the webappclassloader. Context path=/k__offerten docBase=k__offerten debug=4 reloadable=true crossContext=true

Re: Antwort: Tomcat 3.3.1 - Tomcat 4.1.x (Xerces), WebAppClassloader debug level

2003-08-14 Thread Jacob Kjome
[EMAIL PROTECTED] An: [EMAIL PROTECTED] rich.ch Kopie: Thema: Tomcat 3.3.1 - Tomcat 4.1.x (Xerces), WebAppClassloader debug level 11.08.2003 16:50

Re: Antwort: Re: Antwort: Tomcat 3.3.1 - Tomcat 4.1.x (Xerces), WebAppClassloader debug level

2003-08-14 Thread Jacob Kjome
with. Putting these packages in a parent classloader including common/endorsed, common/lib, and shared/lib is the correct way to do things. Do you know how I can increase the debug level of the WebAppClassloader? I'm interested in which classes are loaded from which classloader. Not sure. Hopefully

WebAppClassLoader / ProxyDirContext.java Problem - Upgrade from Tomcat 4.1.12 to 4.1.17

2003-01-17 Thread Matt Small
A few weeks back I noticed this problem when I upgraded from 4.1.12 to 4.1.17. I wanted to track it down a little bit before reporting it, and now I think I know where the problem is. I have isolated the problem to changes made between CVS versions 1.12 and 1.14 of

Got a sample code on how to use WebappClassLoader or StandardClassLoader?

2002-11-18 Thread aps olute
Anyone got a sample code on how to use this WebappClassLoader or the StandardClassLoader? and no need to specify these in the server.xml file? It just seems I had the impression it required to be specified on the server.xml per the docs. __ Do

wher must I lacate my custom WebAppClassLoader

2002-07-22 Thread Gattaz, Olivier
Hello, To locate a group of special classes (generated from the case tool of the Adonix ERP X3) out of the standard WEF-INF/classes directoy of my WebApp, I tried to write a custom WebAppClassLoader. I created the two classes : - com.adonix.x3.x3web.tomcat.loader.CX3WebLoader public

help: where must I locate my custom WebAppClassLoader

2002-07-22 Thread Gattaz, Olivier
Bonjour, Excuse me for this second post, but I had no response in the mailing list. Is my problem very complex ? To locate a group of special classes (generated from the case tool of an ERP) out of the standard WEF-INF/classes directoy of my WebApp, I try to write a custom WebAppClassLoader

webappclassloader problem

2002-03-22 Thread Jean-pierre Cartal
that previous versions had problem loading jar files located under WEB-INF/lib, I upgraded to version 4.0.4b1, but the problem was still there. So I added some code to print which classloader this class was using when trying to instantiate and the result is as follow: WebappClassLoader^M available:^M

Re: webappclassloader problem

2002-03-22 Thread Jean-pierre Cartal
files located under WEB-INF/lib, I upgraded to version 4.0.4b1, but the problem was still there. So I added some code to print which classloader this class was using when trying to instantiate and the result is as follow: WebappClassLoader^M available:^M delegate: false^M repositories

WebappClassLoader: Lifecycle error : CL stopped

2002-01-24 Thread Tim Veazey
Hello, I know that a few related questions are archived, but I didn't find the answer I needed. I'm using Tomcat 4.0.1, on a win2k machine (dev environment). Whenever the server tries to reload a class, I observe the following error in the log. WebappClassLoader: Resource '/WEB-INF/classes

Re: the meaning of message WebappClassLoader: Lifecycle error

2001-10-26 Thread Kamil Kukura
hmm I guess it happens when WebappClassLoader is stopped and my thread wants to load some other class. Is there way my thread can obtain WebappClassLoader so I can check if it is started? -- Kamil

the meaning of message WebappClassLoader: Lifecycle error

2001-10-25 Thread Kamil Kukura
I have database connection pooling that runs in background in application scope. From time to time I can found strange error message in catalina.out logfile: WebappClassLoader: Lifecycle error : CL stopped java.lang.NoClassDefFoundError: java/lang/System

WebappClassLoader: Resource servlet.class' is missing ??

2001-10-04 Thread Chuck . Irvine
We just recently upgraded to Tomcat 4.0. To enable class reloading for our webapp, I inserted: Context path=/fms docBase=fms debug=0 reloadable=true/ into the server.xml file. Reloading seems to work about 75% of the time. Other times we get a message of the form: WebappClassLoader

WebappClassLoader ok in 4.0-B7, not in release

2001-09-21 Thread Peter Mutsaers
Hello, Using 4.0-B7 I have been able to load oracle JDBC driver which includes jdbc2-extention (javax.sql.*), by putting it in $(CATALINA_HOME)/lib or $(CATALINA_HOME)/common/lib Now with 4.0-release, I keep getting : java.lang.LinkageError: Class javax/sql/PooledConnection violates loader

Re: WebappClassLoader question

2001-07-27 Thread Vincent Massol
that reproduces what I have and I'll send it over. Thanks a lot. -Vincent - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: Vincent Massol [EMAIL PROTECTED] Sent: Thursday, July 26, 2001 10:08 PM Subject: Re: WebappClassLoader question On Thu, 26 Jul

Re: WebappClassLoader question

2001-07-27 Thread Dmitri Colebatch
] Sent: Thursday, July 26, 2001 10:08 PM Subject: Re: WebappClassLoader question On Thu, 26 Jul 2001, Craig R. McClanahan wrote: Hmm, I just tried a case like what you have below. As long as B does not explicitly reference class C, then it works. In other words, in my example where

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

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 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 original post you said: When I access the servlet

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 exception if junit.jar is not found

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 an abstruse

Re: WebappClassLoader question

2001-07-27 Thread Craig R. McClanahan
: WebappClassLoader question On Thu, 26 Jul 2001, Craig R. McClanahan wrote: Hmm, I just tried a case like what you have below. As long as B does not explicitly reference class C, then it works. In other words, in my example where you've got the // call the method by reflection comment, I

[Summary] Re: WebappClassLoader question

2001-07-27 Thread Vincent Massol
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 original post you said: When I access the servlet, I get a ClassNotFoundException on a JUnit

Re: WebappClassLoader question

2001-07-26 Thread Craig R. McClanahan
On Thu, 26 Jul 2001, Vincent Massol wrote: Thanks Alex, I don't think the standard classloader mechanism is involved here. I believe it is a 'feature' of Tomcat and more specifically of it's WebappClassLoader. When you do standard java code and you have the following situation : 1st

Re: WebappClassLoader question

2001-07-26 Thread 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, I don't think the standard classloader mechanism is involved here. I believe it is a 'feature' of Tomcat and more specifically of it's

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 snip/ Now all of this is packaged in a war, classes A and B

Re: WebappClassLoader question

2001-07-26 Thread Craig R. McClanahan
: Thursday, July 26, 2001 6:18 PM Subject: Re: WebappClassLoader question On Thu, 26 Jul 2001, Vincent Massol wrote: Thanks Alex, I don't think the standard classloader mechanism is involved here. I believe it is a 'feature' of Tomcat and more specifically of it's WebappClassLoader

WebappClassLoader question

2001-07-25 Thread Vincent Massol
)at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)at org.apache.commons.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java:143) Here is what I imagined is happening (tell me if this correct or wrong !) : As MyProxyClass is within the war file, the WebappClassLoader gets called to load

Re: WebappClassLoader question

2001-07-25 Thread Alex Fernández
) at org.apache.commons.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java:143) Here is what I imagined is happening (tell me if this correct or wrong !) : As MyProxyClass is within the war file, the WebappClassLoader gets called to load it. The WebappClassLoader