Eclipse and Tomcat 8.0.35 app ERROR: Illegal access: this web application instance has been stopped already












0















I'm running a Java app in Eclipse EE Oxygen 32 bit in a 64 machine since the program will be transferred to a 32 bit machine later. The app is connected to mysql installed through Wampserver, and the server I'm using in the app is Apache Tomcat 8.0.35. When I run the app in "Run as> Run on Server" inside Eclispe. I get the following error message in "Console":



 Illegal access: this web application instance has been stopped already. Could not load . 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 . 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:1372)
at org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:1042)
at com.mysql.jdbc.AbandonedConnectionCleanupThread.checkContextClassLoaders(AbandonedConnectionCleanupThread.java:90)
at com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:63)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


How can I debug that?










share|improve this question

























  • I must use it because of compatibility with other libraries connected to the project, but would the version (32 bit Eclipse in 64 bit machine) be causing the problem?

    – L'utilisatrice
    Nov 24 '18 at 18:46













  • No, see my answer: just restart Tomcat then try again.

    – user10639668
    Nov 24 '18 at 18:52













  • Please read Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions.

    – halfer
    Nov 25 '18 at 22:08
















0















I'm running a Java app in Eclipse EE Oxygen 32 bit in a 64 machine since the program will be transferred to a 32 bit machine later. The app is connected to mysql installed through Wampserver, and the server I'm using in the app is Apache Tomcat 8.0.35. When I run the app in "Run as> Run on Server" inside Eclispe. I get the following error message in "Console":



 Illegal access: this web application instance has been stopped already. Could not load . 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 . 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:1372)
at org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:1042)
at com.mysql.jdbc.AbandonedConnectionCleanupThread.checkContextClassLoaders(AbandonedConnectionCleanupThread.java:90)
at com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:63)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


How can I debug that?










share|improve this question

























  • I must use it because of compatibility with other libraries connected to the project, but would the version (32 bit Eclipse in 64 bit machine) be causing the problem?

    – L'utilisatrice
    Nov 24 '18 at 18:46













  • No, see my answer: just restart Tomcat then try again.

    – user10639668
    Nov 24 '18 at 18:52













  • Please read Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions.

    – halfer
    Nov 25 '18 at 22:08














0












0








0








I'm running a Java app in Eclipse EE Oxygen 32 bit in a 64 machine since the program will be transferred to a 32 bit machine later. The app is connected to mysql installed through Wampserver, and the server I'm using in the app is Apache Tomcat 8.0.35. When I run the app in "Run as> Run on Server" inside Eclispe. I get the following error message in "Console":



 Illegal access: this web application instance has been stopped already. Could not load . 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 . 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:1372)
at org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:1042)
at com.mysql.jdbc.AbandonedConnectionCleanupThread.checkContextClassLoaders(AbandonedConnectionCleanupThread.java:90)
at com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:63)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


How can I debug that?










share|improve this question
















I'm running a Java app in Eclipse EE Oxygen 32 bit in a 64 machine since the program will be transferred to a 32 bit machine later. The app is connected to mysql installed through Wampserver, and the server I'm using in the app is Apache Tomcat 8.0.35. When I run the app in "Run as> Run on Server" inside Eclispe. I get the following error message in "Console":



 Illegal access: this web application instance has been stopped already. Could not load . 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 . 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:1372)
at org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:1042)
at com.mysql.jdbc.AbandonedConnectionCleanupThread.checkContextClassLoaders(AbandonedConnectionCleanupThread.java:90)
at com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:63)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


How can I debug that?







java eclipse






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 25 '18 at 22:08









halfer

14.6k758114




14.6k758114










asked Nov 24 '18 at 18:41









L'utilisatriceL'utilisatrice

88119




88119













  • I must use it because of compatibility with other libraries connected to the project, but would the version (32 bit Eclipse in 64 bit machine) be causing the problem?

    – L'utilisatrice
    Nov 24 '18 at 18:46













  • No, see my answer: just restart Tomcat then try again.

    – user10639668
    Nov 24 '18 at 18:52













  • Please read Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions.

    – halfer
    Nov 25 '18 at 22:08



















  • I must use it because of compatibility with other libraries connected to the project, but would the version (32 bit Eclipse in 64 bit machine) be causing the problem?

    – L'utilisatrice
    Nov 24 '18 at 18:46













  • No, see my answer: just restart Tomcat then try again.

    – user10639668
    Nov 24 '18 at 18:52













  • Please read Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions.

    – halfer
    Nov 25 '18 at 22:08

















I must use it because of compatibility with other libraries connected to the project, but would the version (32 bit Eclipse in 64 bit machine) be causing the problem?

– L'utilisatrice
Nov 24 '18 at 18:46







I must use it because of compatibility with other libraries connected to the project, but would the version (32 bit Eclipse in 64 bit machine) be causing the problem?

– L'utilisatrice
Nov 24 '18 at 18:46















No, see my answer: just restart Tomcat then try again.

– user10639668
Nov 24 '18 at 18:52







No, see my answer: just restart Tomcat then try again.

– user10639668
Nov 24 '18 at 18:52















Please read Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions.

– halfer
Nov 25 '18 at 22:08





Please read Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - the summary is that this is not an ideal way to address volunteers, and is probably counterproductive to obtaining answers. Please refrain from adding this to your questions.

– halfer
Nov 25 '18 at 22:08












1 Answer
1






active

oldest

votes


















0














The java code is totally portable across 32-bit and 64-bit platforms, doesn't make sense to use a 32 bit Eclipse version.



To solve your issue, just restart the Tomcat server to get rid of the older cache then try again.



If still doesn't work:




  1. Restart Eclipse

  2. Clean up Eclipse working directory (see @nitind comment).

  3. Run Eclipse in clean mode (see this)






share|improve this answer





















  • 1





    You can also clear out the work directory from the instance's context menu in the Servers view.

    – nitind
    Nov 24 '18 at 19:02











  • I went to "tomcat/bin" and run "shutdown.bat" (I'm using Windows) , and than run "start.bat". But still the same error returned.

    – L'utilisatrice
    Nov 24 '18 at 19:03











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53461281%2feclipse-and-tomcat-8-0-35-app-error-illegal-access-this-web-application-instan%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














The java code is totally portable across 32-bit and 64-bit platforms, doesn't make sense to use a 32 bit Eclipse version.



To solve your issue, just restart the Tomcat server to get rid of the older cache then try again.



If still doesn't work:




  1. Restart Eclipse

  2. Clean up Eclipse working directory (see @nitind comment).

  3. Run Eclipse in clean mode (see this)






share|improve this answer





















  • 1





    You can also clear out the work directory from the instance's context menu in the Servers view.

    – nitind
    Nov 24 '18 at 19:02











  • I went to "tomcat/bin" and run "shutdown.bat" (I'm using Windows) , and than run "start.bat". But still the same error returned.

    – L'utilisatrice
    Nov 24 '18 at 19:03
















0














The java code is totally portable across 32-bit and 64-bit platforms, doesn't make sense to use a 32 bit Eclipse version.



To solve your issue, just restart the Tomcat server to get rid of the older cache then try again.



If still doesn't work:




  1. Restart Eclipse

  2. Clean up Eclipse working directory (see @nitind comment).

  3. Run Eclipse in clean mode (see this)






share|improve this answer





















  • 1





    You can also clear out the work directory from the instance's context menu in the Servers view.

    – nitind
    Nov 24 '18 at 19:02











  • I went to "tomcat/bin" and run "shutdown.bat" (I'm using Windows) , and than run "start.bat". But still the same error returned.

    – L'utilisatrice
    Nov 24 '18 at 19:03














0












0








0







The java code is totally portable across 32-bit and 64-bit platforms, doesn't make sense to use a 32 bit Eclipse version.



To solve your issue, just restart the Tomcat server to get rid of the older cache then try again.



If still doesn't work:




  1. Restart Eclipse

  2. Clean up Eclipse working directory (see @nitind comment).

  3. Run Eclipse in clean mode (see this)






share|improve this answer















The java code is totally portable across 32-bit and 64-bit platforms, doesn't make sense to use a 32 bit Eclipse version.



To solve your issue, just restart the Tomcat server to get rid of the older cache then try again.



If still doesn't work:




  1. Restart Eclipse

  2. Clean up Eclipse working directory (see @nitind comment).

  3. Run Eclipse in clean mode (see this)







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 24 '18 at 19:06

























answered Nov 24 '18 at 18:46







user10639668















  • 1





    You can also clear out the work directory from the instance's context menu in the Servers view.

    – nitind
    Nov 24 '18 at 19:02











  • I went to "tomcat/bin" and run "shutdown.bat" (I'm using Windows) , and than run "start.bat". But still the same error returned.

    – L'utilisatrice
    Nov 24 '18 at 19:03














  • 1





    You can also clear out the work directory from the instance's context menu in the Servers view.

    – nitind
    Nov 24 '18 at 19:02











  • I went to "tomcat/bin" and run "shutdown.bat" (I'm using Windows) , and than run "start.bat". But still the same error returned.

    – L'utilisatrice
    Nov 24 '18 at 19:03








1




1





You can also clear out the work directory from the instance's context menu in the Servers view.

– nitind
Nov 24 '18 at 19:02





You can also clear out the work directory from the instance's context menu in the Servers view.

– nitind
Nov 24 '18 at 19:02













I went to "tomcat/bin" and run "shutdown.bat" (I'm using Windows) , and than run "start.bat". But still the same error returned.

– L'utilisatrice
Nov 24 '18 at 19:03





I went to "tomcat/bin" and run "shutdown.bat" (I'm using Windows) , and than run "start.bat". But still the same error returned.

– L'utilisatrice
Nov 24 '18 at 19:03




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53461281%2feclipse-and-tomcat-8-0-35-app-error-illegal-access-this-web-application-instan%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Costa Masnaga

Fotorealismo

Sidney Franklin