loadClass method, and it is not reporting anything, and to the best of
my knowledge, an error should terminate the JVM right?
No, it shouldn't. You can catch errors also by catching Throwable
instead of Exception.
Thanks very much for this bit of advice, as it turns out it was throwing
My attempts to abate this error are proving quite fruitless. So I was
wondering... what is the preferred method to programatically reload a
class in Tomcat? I've searched the web but I am stuck.
Thanks
Ben
-
To unsubscribe,
Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, August 06, 2004 9:36 AM
To: Tomcat Users List
Subject: Re: classloader hangs
My attempts to abate this error are proving quite fruitless. So I was
wondering... what is the preferred method to programatically reload a
class
You can simply set reloadable=true for your Context and Tomcat will
monitor your classes and reload the webapp (not just the class) as
needed. You can also programmatically invoke the Manager webapp and use
its reload feature.
What if these classes aren't located in the Tomcat directory?
:[EMAIL PROTECTED]
Sent: Friday, August 06, 2004 10:09 AM
To: Tomcat Users List
Subject: Re: classloader hangs
You can simply set reloadable=true for your Context and Tomcat will
monitor your classes and reload the webapp (not just the class) as
needed. You can also programmatically invoke
Spec
and most people stop caring as much ;)
Yoav Shapira
Millennium Research Informatics
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, August 06, 2004 10:09 AM
To: Tomcat Users List
Subject: Re: classloader hangs
You can simply set
PROTECTED]
Sent: Friday, August 06, 2004 10:18 AM
To: Tomcat Users List
Subject: Re: classloader hangs
Why must I write a custom Loader, isn't URLClassLoader already suited
for this task? What is it about URLClassLoader that makes it
incompatable with Tomcat?
Then you have to write your own custom
I apologize for not being clear the first time. My class loading scheme
works by first loading classes with a URLClassLoader and then when the
program wants to reload them, it creates a new URLClassLoader whose
parent is the first URLClassLoader, thus staying within the delegation
model of class
Hi,
If you get a thread dump of the JVM while it's hanging, what does it
show?
The URLClassLoader is intended for use within Tomcat. It's nice that
you have a program using outside Tomcat, but it's not that meaningful
for comparison testing. The ClassLoading scheme and hierarchy inside a
Hello,
I know this is naive of me, but how does one get a thread dump of the
JVM? Anyway, as for the other comments, do I have to do something
different to use URLClassLoader under Tomcat than I do in a console
application? I kept getting this same problem under Tomcat before when
I was creating
Hi,
I know this is naive of me, but how does one get a thread dump of the
JVM?
Send a SIGQUIT to the JVM process.
package statement. As for the NoClassDefFoundError vs
ClassNotFoundException, I do have exception handling code around the
loadClass method, and it is not reporting anything, and
On Windows XP? :-(
(my employer doesn't enjoy linux)
Send a SIGQUIT to the JVM process.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
, August 05, 2004 4:10 PM
To: Tomcat Users List
Subject: Re: classloader hangs
On Windows XP? :-(
(my employer doesn't enjoy linux)
Send a SIGQUIT to the JVM process.
-
To unsubscribe, e-mail: [EMAIL PROTECTED
13 matches
Mail list logo