Summary: | IllegalStateException: The resources may not be accessed during webapp reload | ||
---|---|---|---|
Product: | Tomcat 7 | Reporter: | Konstantin Kolinko <knst.kolinko> |
Component: | Catalina | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 7.0.54 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All |
Description
Konstantin Kolinko
2014-07-10 21:15:27 UTC
"Expected: The request shall wait for web application reload to complete and then display the page (or error 404 in case of that bug that I was investigating). There is a loop in CoyoteAdapter that waits while context is being reloaded." This feature is actually a bug, the server should return a response and move on. It is not a good idea to tie up an indefinite amount of requests/threads waiting for something to happen. (In reply to Remy Maucherat from comment #1) > It is not a good idea (...) Ack, but some people find it useful. See bug 53024 that asked for it. (In reply to Konstantin Kolinko from comment #2) > (In reply to Remy Maucherat from comment #1) > > It is not a good idea (...) > > Ack, but some people find it useful. See bug 53024 that asked for it. This was not a feature reuqets in bug 53024. For as long as I cam remember (so back to Tomcat 4.1.x) the intended behaviour has been for the thread to wait while the context reloads. This looks like a regression in the new static resource implementation in 8.0.x. (In reply to Mark Thomas from comment #3) > (In reply to Konstantin Kolinko from comment #2) > > (In reply to Remy Maucherat from comment #1) > > > It is not a good idea (...) > > > > Ack, but some people find it useful. See bug 53024 that asked for it. > > This was not a feature reuqets in bug 53024. For as long as I cam remember > (so back to Tomcat 4.1.x) the intended behaviour has been for the thread to > wait while the context reloads. I filed the wait time issue as bug 56713. Fixed in trunk by r1610220 and will be in 8.0.11 onwards. |