Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Liberty message.log has repeating servlet lifecycle messages #18411

Closed
epj opened this issue Sep 1, 2021 · 0 comments · Fixed by #18651
Closed

Liberty message.log has repeating servlet lifecycle messages #18411

epj opened this issue Sep 1, 2021 · 0 comments · Fixed by #18651
Assignees
Labels
in:Web Components release bug This bug is present in a released version of Open Liberty release:210011 team:Sirius

Comments

@epj
Copy link
Contributor

epj commented Sep 1, 2021

Describe the bug
The following messages appear many times in the Liberty log for certain apps that use JSP with a TLD file, beginning with 21.0.0.7.

SRVE0242I: [ ... ] Initialization successful.
SRVE0253I: [ ... ] Destroy successful.

Each time a JSP is accessed, if included files have been updated since last compile it causes a new JSP compile. This will cause the message: SRVE0253I: [ ... ] Destroy successful. The issue being fixed is that a TLD file under /WEB-INF in the war isn't being checked correctly, causing it to appear to always be out of date, therefore causing the JSP to compile every time it is accessed and resulting in a SRVE0253I. In a heavily used app, the SRVE0253I might cause excessive logging due to the frequency of its occurrence. The issue happens when the following is set: <applicationManager autoExpand="false"/>.

Steps to Reproduce

  1. have a TLD file under /WEB-INF
  2. reference the TLD from a JSP, i.e, <%@ taglib prefix="test" uri="/WEB-INF/tags/sampleTag.tld" %>
  3. server.xml contains <applicationManager autoExpand="false"/>
  4. start server, call jsp twice, look for unexpected SRVE0253I in messages.log (wait at least 5 seconds between calls)

Expected behavior
In the above scenario, message SRVE0253 should not occur.

@epj epj added bug This bug is not present in a released version of Open Liberty in:Web Components team:Sirius labels Sep 1, 2021
@epj epj self-assigned this Sep 1, 2021
@epj epj added this to General Issues in Web Tier Team via automation Sep 1, 2021
@epj epj added release bug This bug is present in a released version of Open Liberty and removed bug This bug is not present in a released version of Open Liberty labels Sep 22, 2021
@epj epj closed this as completed in #18651 Oct 5, 2021
Web Tier Team automation moved this from General Issues to Completed Tasks Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in:Web Components release bug This bug is present in a released version of Open Liberty release:210011 team:Sirius
Projects
Archived in project
Web Tier Team
  
Completed Tasks
Development

Successfully merging a pull request may close this issue.

2 participants