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
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
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
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
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
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
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
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.
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
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
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
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
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
-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
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
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
() 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
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
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
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
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
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
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
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
. 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
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
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
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]
Kopie:
Thema: Tomcat 3.3.1 - Tomcat 4.1.x
(Xerces), WebAppClassloader debug level
11.08.2003 16:50
Bitte antworten
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
[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
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
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
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
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
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
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
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
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
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
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
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
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
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
]
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
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
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..
- 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
-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
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
: 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
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
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
[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
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
: 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
)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
)
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
58 matches
Mail list logo