You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Michael Lau <ml...@gmail.com> on 2024/09/24 07:58:11 UTC
tomcat startup error, IBM DB2 related (database)
Good afternoon,
we've been having trouble trying to start-up our server for a while, tried
restarting again and again and error still persists we can't run our
website. It's been ok for the past few weeks it's just we failed to shut
down the server properly and may have messed things up with residue
processes/threads that wasn't closed (my friend just clicked the x button
on the cmd window of the server running). Trying to find solutions to get
the server up and running again. I downloaded the driver pack for IBM DB2
and may try to put it in the lib folder of apache, or install the entire
software (1.3GB) from the IBM download I got too. not sure if it's the .jar
file that's the problem, but the error does indicate the .properties file
of db2 configuration. not sure if this should be auto-generated in the web
app or it's just plain missing. My colleague suggested to revert to the
default settings of apache but this would create problems with the web app
since I think it uses db2 by default as it's database, plus I'm kind of new
to tomcat so I don't know which xml file to pick to set the database or
library/software used. Would like to get this resolved as it's a minor
roadblock to finishing our task. currently I think it's just a .jar library
problem or just a configuration problem, could also be an improper shutdown
problem. I can't access apache manager to see if the program really
shutdown entirely since we can't run the server.. I read there might be a
detailed log of the error.
here's a clip of the error from the cmd window of my friend:
0-Sep-2024 13:51:51.584 INFO [Timer-0]
org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading
Illegal access: this web application instance has been stopped already.
Could not load [com/ibm/db2/jcc/DB2JccConfiguration.properties]. The
following stack trace is thrown for debugging purposes as well as to
attempt to terminate the thread which caused the illegal access.
java.lang.IllegalStateException: Illegal access: this web
application instance has been stopped already. Could not load
[com/ibm/db2/jcc/DB2JccConfiguration.properties]. The following stack trace
is thrown for debugging purposes as well as to attempt to terminate the
thread which caused the illegal access.
at
org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1384)
at
org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:1034)
at com.ibm.db2.jcc.am.vd.run(vd.java:70)
at java.security.AccessController.doPrivileged(Native
Method)
at
com.ibm.db2.jcc.am.GlobalProperties.a(GlobalProperties.java:152)
at
com.ibm.db2.jcc.am.GlobalProperties.d(GlobalProperties.java:100)
at com.ibm.db2.jcc.am.ar.run(ar.java:124)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
THANK YOU!!!!!!!!
best regards,
Mike
Re: tomcat startup error, IBM DB2 related (database) [SPAM]
Posted by Shekhar Dhotre <sh...@tatacommunications.com.INVALID>.
Ok 👍 sorry about that, I thought it would help him. It was for free advice, not selling any service.
SD
________________________________
From: Christopher Schultz <ch...@christopherschultz.net>
Sent: Friday, September 27, 2024 8:36:36 PM
To: users@tomcat.apache.org <us...@tomcat.apache.org>
Subject: Re: tomcat startup error, IBM DB2 related (database) [SPAM]
Shekhar,
On 9/24/24 04:51, Shekhar Dhotre wrote:
> Contact Neel at neel.dhotre@contractor.tatacommunications.com , He
> recently restored our important financial app which is running same
> setup. Tomcat, Db2 , IBM ldap, Redhat, oracle, etc. There is a
> endorsement on the same at LinkedIn.
Please don't post service advertisements to this list.
-chris
> -----Original Message-----
> From: Michael Lau <ml...@gmail.com>
> Sent: 24 September 2024 13:28
> To: users@tomcat.apache.org
> Cc: reggie.v.gokotano@accenture.com; neil.james.perdigon@accenture.com
> Subject: tomcat startup error, IBM DB2 related (database)
>
> Good afternoon,
>
> we've been having trouble trying to start-up our server for a while, tried restarting again and again and error still persists we can't run our website. It's been ok for the past few weeks it's just we failed to shut down the server properly and may have messed things up with residue processes/threads that wasn't closed (my friend just clicked the x button on the cmd window of the server running). Trying to find solutions to get the server up and running again. I downloaded the driver pack for IBM DB2 and may try to put it in the lib folder of apache, or install the entire software (1.3GB) from the IBM download I got too. not sure if it's the .jar file that's the problem, but the error does indicate the .properties file of db2 configuration. not sure if this should be auto-generated in the web app or it's just plain missing. My colleague suggested to revert to the default settings of apache but this would create problems with the web app since I think it uses db2 by default as it's database, plus I'm kind of new to tomcat so I don't know which xml file to pick to set the database or library/software used. Would like to get this resolved as it's a minor roadblock to finishing our task. currently I think it's just a .jar library problem or just a configuration problem, could also be an improper shutdown problem. I can't access apache manager to see if the program really shutdown entirely since we can't run the server.. I read there might be a detailed log of the error.
>
> here's a clip of the error from the cmd window of my friend:
>
> 0-Sep-2024 13:51:51.584 INFO [Timer-0]
> org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading
> Illegal access: this web application instance has been stopped already.
> Could not load [com/ibm/db2/jcc/DB2JccConfiguration.properties]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
>
> java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [com/ibm/db2/jcc/DB2JccConfiguration.properties]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
>
> at
> org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1384)
>
> at
> org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:1034)
>
> at com.ibm.db2.jcc.am.vd.run(vd.java:70)
>
> at java.security.AccessController.doPrivileged(Native
> Method)
>
> at
> com.ibm.db2.jcc.am.GlobalProperties.a(GlobalProperties.java:152)
>
> at
> com.ibm.db2.jcc.am.GlobalProperties.d(GlobalProperties.java:100)
>
> at com.ibm.db2.jcc.am.ar.run(ar.java:124)
>
> at java.util.TimerThread.mainLoop(Timer.java:555)
>
> at java.util.TimerThread.run(Timer.java:505)
>
>
> THANK YOU!!!!!!!!
>
>
> best regards,
>
> Mike
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
Re: tomcat startup error, IBM DB2 related (database) [SPAM]
Posted by Christopher Schultz <ch...@christopherschultz.net>.
Shekhar,
On 9/24/24 04:51, Shekhar Dhotre wrote:
> Contact Neel at neel.dhotre@contractor.tatacommunications.com , He
> recently restored our important financial app which is running same
> setup. Tomcat, Db2 , IBM ldap, Redhat, oracle, etc. There is a
> endorsement on the same at LinkedIn.
Please don't post service advertisements to this list.
-chris
> -----Original Message-----
> From: Michael Lau <ml...@gmail.com>
> Sent: 24 September 2024 13:28
> To: users@tomcat.apache.org
> Cc: reggie.v.gokotano@accenture.com; neil.james.perdigon@accenture.com
> Subject: tomcat startup error, IBM DB2 related (database)
>
> Good afternoon,
>
> we've been having trouble trying to start-up our server for a while, tried restarting again and again and error still persists we can't run our website. It's been ok for the past few weeks it's just we failed to shut down the server properly and may have messed things up with residue processes/threads that wasn't closed (my friend just clicked the x button on the cmd window of the server running). Trying to find solutions to get the server up and running again. I downloaded the driver pack for IBM DB2 and may try to put it in the lib folder of apache, or install the entire software (1.3GB) from the IBM download I got too. not sure if it's the .jar file that's the problem, but the error does indicate the .properties file of db2 configuration. not sure if this should be auto-generated in the web app or it's just plain missing. My colleague suggested to revert to the default settings of apache but this would create problems with the web app since I think it uses db2 by default as it's database, plus I'm kind of new to tomcat so I don't know which xml file to pick to set the database or library/software used. Would like to get this resolved as it's a minor roadblock to finishing our task. currently I think it's just a .jar library problem or just a configuration problem, could also be an improper shutdown problem. I can't access apache manager to see if the program really shutdown entirely since we can't run the server.. I read there might be a detailed log of the error.
>
> here's a clip of the error from the cmd window of my friend:
>
> 0-Sep-2024 13:51:51.584 INFO [Timer-0]
> org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading
> Illegal access: this web application instance has been stopped already.
> Could not load [com/ibm/db2/jcc/DB2JccConfiguration.properties]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
>
> java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [com/ibm/db2/jcc/DB2JccConfiguration.properties]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
>
> at
> org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1384)
>
> at
> org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:1034)
>
> at com.ibm.db2.jcc.am.vd.run(vd.java:70)
>
> at java.security.AccessController.doPrivileged(Native
> Method)
>
> at
> com.ibm.db2.jcc.am.GlobalProperties.a(GlobalProperties.java:152)
>
> at
> com.ibm.db2.jcc.am.GlobalProperties.d(GlobalProperties.java:100)
>
> at com.ibm.db2.jcc.am.ar.run(ar.java:124)
>
> at java.util.TimerThread.mainLoop(Timer.java:555)
>
> at java.util.TimerThread.run(Timer.java:505)
>
>
> THANK YOU!!!!!!!!
>
>
> best regards,
>
> Mike
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
RE: tomcat startup error, IBM DB2 related (database)
Posted by Shekhar Dhotre <sh...@tatacommunications.com.INVALID>.
Contact Neel at neel.dhotre@contractor.tatacommunications.com , He recently restored our important financial app which is running same setup. Tomcat, Db2 , IBM ldap, Redhat, oracle, etc. There is a endorsement on the same at LinkedIn.
https://www.linkedin.com/search/results/all/?heroEntityKey=urn%3Ali%3Afsd_profile%3AACoAACADWwIBThx_g07SfFQUZas66XuOTn6xQNU&keywords=Neel%20D&origin=ENTITY_SEARCH_HOME_HISTORY&sid=~UW
SD
-----Original Message-----
From: Michael Lau <ml...@gmail.com>
Sent: 24 September 2024 13:28
To: users@tomcat.apache.org
Cc: reggie.v.gokotano@accenture.com; neil.james.perdigon@accenture.com
Subject: tomcat startup error, IBM DB2 related (database)
Good afternoon,
we've been having trouble trying to start-up our server for a while, tried restarting again and again and error still persists we can't run our website. It's been ok for the past few weeks it's just we failed to shut down the server properly and may have messed things up with residue processes/threads that wasn't closed (my friend just clicked the x button on the cmd window of the server running). Trying to find solutions to get the server up and running again. I downloaded the driver pack for IBM DB2 and may try to put it in the lib folder of apache, or install the entire software (1.3GB) from the IBM download I got too. not sure if it's the .jar file that's the problem, but the error does indicate the .properties file of db2 configuration. not sure if this should be auto-generated in the web app or it's just plain missing. My colleague suggested to revert to the default settings of apache but this would create problems with the web app since I think it uses db2 by default as it's database, plus I'm kind of new to tomcat so I don't know which xml file to pick to set the database or library/software used. Would like to get this resolved as it's a minor roadblock to finishing our task. currently I think it's just a .jar library problem or just a configuration problem, could also be an improper shutdown problem. I can't access apache manager to see if the program really shutdown entirely since we can't run the server.. I read there might be a detailed log of the error.
here's a clip of the error from the cmd window of my friend:
0-Sep-2024 13:51:51.584 INFO [Timer-0]
org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading
Illegal access: this web application instance has been stopped already.
Could not load [com/ibm/db2/jcc/DB2JccConfiguration.properties]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [com/ibm/db2/jcc/DB2JccConfiguration.properties]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
at
org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1384)
at
org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:1034)
at com.ibm.db2.jcc.am.vd.run(vd.java:70)
at java.security.AccessController.doPrivileged(Native
Method)
at
com.ibm.db2.jcc.am.GlobalProperties.a(GlobalProperties.java:152)
at
com.ibm.db2.jcc.am.GlobalProperties.d(GlobalProperties.java:100)
at com.ibm.db2.jcc.am.ar.run(ar.java:124)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
THANK YOU!!!!!!!!
best regards,
Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: tomcat startup error, IBM DB2 related (database)
Posted by Mark Thomas <ma...@apache.org>.
On 24/09/2024 08:58, Michael Lau wrote:
> here's a clip of the error from the cmd window of my friend:
>
> 0-Sep-2024 13:51:51.584 INFO [Timer-0]
> org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading
> Illegal access: this web application instance has been stopped already.
> Could not load [com/ibm/db2/jcc/DB2JccConfiguration.properties]. The
> following stack trace is thrown for debugging purposes as well as to
> attempt to terminate the thread which caused the illegal access.
>
> java.lang.IllegalStateException: Illegal access: this web
> application instance has been stopped already. Could not load
> [com/ibm/db2/jcc/DB2JccConfiguration.properties]. The following stack trace
> is thrown for debugging purposes as well as to attempt to terminate the
> thread which caused the illegal access.
That is an error triggered when stopping the web application.
I suggest the following.
Stop the Tomcat instance.
Clear the logs directory (move the files somewhere else so you have a
copy if you need them).
Start the Tomcat instance.
Look for errors in the logs. Start at the beginning. Fix the first error
that occurs and then repeat this process.
The first error usually triggers multiple further errors. If you don't
fix the first error first you will waste a huge amount of time fixing
symptoms rather than the root cause.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org