Re: ClassLoader IllegalStateException

2006-03-06 Thread Artur Rataj
To turn it off, set reloadable="false" in the context definition of
your app. I do not know where you have it defined, it might be
tomcat's server.xml or context.xml of your app. I am not sure if it
will work -- I have used applications listeners to stop the threads,
which was very easy.

Artur

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ClassLoader IllegalStateException

2006-03-06 Thread Matteo Barbieri

Artur Rataj ha scritto:


It might that it unloaded an app. You may turn off app
unloading/reloading in serwer.xml.
 


How to do this?
Is the server.xml in conf/ ?
How to turn off?

Thank you a lot



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ClassLoader IllegalStateException

2006-03-06 Thread Artur Rataj
It might that it unloaded an app. You may turn off app
unloading/reloading in serwer.xml.
Or start and stop threads using listeners.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ClassLoader IllegalStateException

2006-03-06 Thread Matteo Barbieri
Artur Rataj ha scritto:

>One of the reasons might be that you have stray threads that do not
>stop when Tomcat tries to stop.
>
But Tomcat has not to stop.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ClassLoader IllegalStateException

2006-03-06 Thread Artur Rataj
One of the reasons might be that you have stray threads that do not
stop when Tomcat tries to stop.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ClassLoader IllegalStateException

2006-03-06 Thread Matteo Barbieri
Any idea? :(

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ClassLoader IllegalStateException

2006-03-02 Thread Matteo Barbieri
Filip Hanik - Dev Lists ha scritto:

> 1. where in the tomcat directory structure is the mysql jdbc driver
> JAR file stored?

webapps/my-application/WEB-INF/lib/mysql-connector-java-3.1.12-bin.jar

>
> 2. when does this happen? all the time? or as soon as you have more
> than one browser connect?

- I connect with the first browser (A), I login on my application and I
select some data from the database;
- I load the second browser (B), login and when I do a query on the
database I got the exception.
The curious thing is that it happens not with the first query that I do
with B, because to do the login with B I access the db and it works
correctly.

> 3. are you using a connectionpool?

> 4. how are you closing your connections?
>
As said I use Torque, I think it uses a connection pool, because on the
configuration I have something like this:

torque.dsfactory.MyApp.factory =
org.apache.torque.dsfactory.SharedPoolDataSourceFactory

I don't know how it closes connections, I'll ask them.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ClassLoader IllegalStateException

2006-03-02 Thread Filip Hanik - Dev Lists
1. where in the tomcat directory structure is the mysql jdbc driver JAR 
file stored?
2. when does this happen? all the time? or as soon as you have more than 
one browser connect?

3. are you using a connectionpool?
4. how are you closing your connections?



Matteo Barbieri wrote:

Filip Hanik - Dev Lists ha scritto:

  

what is a "client"? browser?



Yes, browser.

  

if the webapp has stopped, or is stopping, that means that the .war
file or WEB-INF/web.xml timestamp changed, and the webapp might be
reloading.
more info would be needed for further analysis
Filip



the webapp hasn't stopped, because the first browser keeps working.
And I don't change the web.xml file.

Please tell me what kind of informations you need.

Thank you for the quick reply!

Bye


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ClassLoader IllegalStateException

2006-03-02 Thread Filip Hanik - Dev Lists

ok, there could be plenty of things.

but basically this is what is happening:
one of your JDBC connections is being garbage collected. When this 
happens, it tries to close itself and in doing so, it needs to load a class.
But the webapp is in a state where it has stopped (either been stopped, 
or reloaded) and throws an error.


as mentioned earlier, more info on when this happens and in what 
circumstance.


Matteo Barbieri wrote:

Sorry, the correct exception is:


2-mar-2006 16.14.00 org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped
already.  Could not load java.net.BindException.  The eventual following
stack trace is caused by an error thrown for debugging purposes as well
as to attempt to terminate the thread which caused the illegal access,
and has no functional impact.
java.lang.IllegalStateException
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1238)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at
com.mysql.jdbc.CommunicationsException.(CommunicationsException.java:155)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2710)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2621)
at com.mysql.jdbc.MysqlIO.quit(MysqlIO.java:1338)
at com.mysql.jdbc.Connection.realClose(Connection.java:4429)
at com.mysql.jdbc.Connection.cleanup(Connection.java:1973)
at com.mysql.jdbc.Connection.finalize(Connection.java:3114)
at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
2-mar-2006 16.14.00 org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped
already.  Could not load com.mysql.jdbc.Messages.  The eventual
following stack trace is caused by an error thrown for debugging
purposes as well as to attempt to terminate the thread which caused the
illegal access, and has no functional impact.
java.lang.IllegalStateException
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1238)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at
com.mysql.jdbc.CommunicationsException.(CommunicationsException.java:174)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2710)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2621)
at com.mysql.jdbc.MysqlIO.quit(MysqlIO.java:1338)
at com.mysql.jdbc.Connection.realClose(Connection.java:4429)
at com.mysql.jdbc.Connection.cleanup(Connection.java:1973)
at com.mysql.jdbc.Connection.finalize(Connection.java:3114)
at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ClassLoader IllegalStateException

2006-03-02 Thread Matteo Barbieri
Filip Hanik - Dev Lists ha scritto:

> what is a "client"? browser?
>
Yes, browser.

> if the webapp has stopped, or is stopping, that means that the .war
> file or WEB-INF/web.xml timestamp changed, and the webapp might be
> reloading.
> more info would be needed for further analysis
> Filip

the webapp hasn't stopped, because the first browser keeps working.
And I don't change the web.xml file.

Please tell me what kind of informations you need.

Thank you for the quick reply!

Bye


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ClassLoader IllegalStateException

2006-03-02 Thread Filip Hanik - Dev Lists

what is a "client"? browser?

if the webapp has stopped, or is stopping, that means that the .war file 
or WEB-INF/web.xml timestamp changed, and the webapp might be reloading.

more info would be needed for further analysis
Filip

Matteo Barbieri wrote:

Hi, I have a web application that uses Tomcat 5.5.15, MySQL, Torque and
ZK (a XUL/Ajax library).

If I use this application with one client all works well, but when I try
to use another client I got this exception:

2-mar-2006 16.14.00 org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped
already.  Could not load com.mysql.jdbc.Messages.  The eventual
following stack trace is caused by an error thrown for debugging
purposes as well as to attempt to terminate the thread which caused the
illegal access, and has no functional impact.
java.lang.IllegalStateException
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1238)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at
com.mysql.jdbc.CommunicationsException.(CommunicationsException.java:174)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2710)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2621)
at com.mysql.jdbc.MysqlIO.quit(MysqlIO.java:1338)
at com.mysql.jdbc.Connection.realClose(Connection.java:4429)
at com.mysql.jdbc.Connection.cleanup(Connection.java:1973)
at com.mysql.jdbc.Connection.finalize(Connection.java:3114)
at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
2-mar-2006 16.14.00 org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped
already.  Could not load com.mysql.jdbc.Messages.  The eventual
following stack trace is caused by an error thrown for debugging
purposes as well as to attempt to terminate the thread which caused the
illegal access, and has no functional impact.
java.lang.IllegalStateException
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1238)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at
com.mysql.jdbc.CommunicationsException.(CommunicationsException.java:174)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2710)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2621)
at com.mysql.jdbc.MysqlIO.quit(MysqlIO.java:1338)
at com.mysql.jdbc.Connection.realClose(Connection.java:4429)
at com.mysql.jdbc.Connection.cleanup(Connection.java:1973)
at com.mysql.jdbc.Connection.finalize(Connection.java:3114)
at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)

I've already asked around but nobody seems to know what causes it.
Any idea?
Thanks.

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ClassLoader IllegalStateException

2006-03-02 Thread Matteo Barbieri
Sorry, the correct exception is:


2-mar-2006 16.14.00 org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped
already.  Could not load java.net.BindException.  The eventual following
stack trace is caused by an error thrown for debugging purposes as well
as to attempt to terminate the thread which caused the illegal access,
and has no functional impact.
java.lang.IllegalStateException
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1238)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at
com.mysql.jdbc.CommunicationsException.(CommunicationsException.java:155)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2710)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2621)
at com.mysql.jdbc.MysqlIO.quit(MysqlIO.java:1338)
at com.mysql.jdbc.Connection.realClose(Connection.java:4429)
at com.mysql.jdbc.Connection.cleanup(Connection.java:1973)
at com.mysql.jdbc.Connection.finalize(Connection.java:3114)
at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
2-mar-2006 16.14.00 org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped
already.  Could not load com.mysql.jdbc.Messages.  The eventual
following stack trace is caused by an error thrown for debugging
purposes as well as to attempt to terminate the thread which caused the
illegal access, and has no functional impact.
java.lang.IllegalStateException
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1238)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at
com.mysql.jdbc.CommunicationsException.(CommunicationsException.java:174)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2710)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2621)
at com.mysql.jdbc.MysqlIO.quit(MysqlIO.java:1338)
at com.mysql.jdbc.Connection.realClose(Connection.java:4429)
at com.mysql.jdbc.Connection.cleanup(Connection.java:1973)
at com.mysql.jdbc.Connection.finalize(Connection.java:3114)
at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



ClassLoader IllegalStateException

2006-03-02 Thread Matteo Barbieri
Hi, I have a web application that uses Tomcat 5.5.15, MySQL, Torque and
ZK (a XUL/Ajax library).

If I use this application with one client all works well, but when I try
to use another client I got this exception:

2-mar-2006 16.14.00 org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped
already.  Could not load com.mysql.jdbc.Messages.  The eventual
following stack trace is caused by an error thrown for debugging
purposes as well as to attempt to terminate the thread which caused the
illegal access, and has no functional impact.
java.lang.IllegalStateException
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1238)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at
com.mysql.jdbc.CommunicationsException.(CommunicationsException.java:174)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2710)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2621)
at com.mysql.jdbc.MysqlIO.quit(MysqlIO.java:1338)
at com.mysql.jdbc.Connection.realClose(Connection.java:4429)
at com.mysql.jdbc.Connection.cleanup(Connection.java:1973)
at com.mysql.jdbc.Connection.finalize(Connection.java:3114)
at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
2-mar-2006 16.14.00 org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped
already.  Could not load com.mysql.jdbc.Messages.  The eventual
following stack trace is caused by an error thrown for debugging
purposes as well as to attempt to terminate the thread which caused the
illegal access, and has no functional impact.
java.lang.IllegalStateException
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1238)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at
com.mysql.jdbc.CommunicationsException.(CommunicationsException.java:174)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2710)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2621)
at com.mysql.jdbc.MysqlIO.quit(MysqlIO.java:1338)
at com.mysql.jdbc.Connection.realClose(Connection.java:4429)
at com.mysql.jdbc.Connection.cleanup(Connection.java:1973)
at com.mysql.jdbc.Connection.finalize(Connection.java:3114)
at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)

I've already asked around but nobody seems to know what causes it.
Any idea?
Thanks.

-- 
Matteo Barbieri
S.T.E. s.r.l.
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]