• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

aspectran / aspectran / #4665
44%

Build:
DEFAULT BRANCH: master
Ran 18 Oct 2025 07:03AM UTC
Jobs 1
Files 989
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Oct 2025 06:57AM UTC coverage: 36.302% (-0.02%) from 36.322%
#4665

push

github

topframe
Fix(jetty): Prevent Logback context shutdown on restart

When running in the Aspectran Shell, restarting the service via the `restart` command would cause all Logback logging to cease.

This was caused by Jetty's `WebAppContext` automatically discovering and running Logback's `LogbackServletContainerInitializer`. This initializer registers a `LogbackServletContextListener` that, upon the web application's context destruction during the restart, would shut down the entire shared, JVM-wide `LoggerContext`.

This commit fixes the issue by preventing the `LogbackServletContainerInitializer` from running. It achieves this by programmatically setting the standard Logback context parameter `logbackDisableServletContainerInitializer` to `true` for every `JettyWebAppContext` instance.

The implementation is:
- Located in `JettyServer.handleDeferredInitialize()` to ensure it covers all web applications managed by the server.
- Defensive: It uses reflection to confirm that Logback is the active SLF4J implementation before applying the fix, thus avoiding a hard dependency.

10 of 11 new or added lines in 1 file covered. (90.91%)

562 existing lines in 19 files now uncovered.

15038 of 41425 relevant lines covered (36.3%)

0.36 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
68.29
1.63% with-jetty/src/main/java/com/aspectran/jetty/server/JettyServer.java

Uncovered Existing Lines

Lines Coverage ∆ File
2
33.33
0.0% core/src/main/java/com/aspectran/core/component/bean/async/AsyncTaskExecutor.java
2
40.75
-0.63% utils/src/main/java/com/aspectran/utils/ConcurrentReferenceHashMap.java
5
64.71
-8.02% core/src/main/java/com/aspectran/core/component/session/SessionIdGenerator.java
6
70.43
-3.23% shell/src/main/java/com/aspectran/shell/command/option/DefaultOptionParser.java
6
33.33
0.0% with-undertow/src/main/java/com/aspectran/undertow/server/session/TowSessionListener.java
13
46.43
0.0% with-undertow/src/main/java/com/aspectran/undertow/server/handler/resource/TowResourceManager.java
15
86.15
0.0% core/src/main/java/com/aspectran/core/context/DefaultActivityContext.java
17
23.68
0.0% with-undertow/src/main/java/com/aspectran/undertow/server/session/TowSession.java
23
0.0
0.0% core/src/main/java/com/aspectran/core/component/bean/async/ThreadPoolAsyncTaskExecutor.java
24
0.0
0.0% with-undertow/src/main/java/com/aspectran/undertow/support/SessionListenerRegistrationBean.java
28
0.0
0.0% core/src/main/java/com/aspectran/core/scheduler/activity/ActivityJobReporter.java
28
0.0
0.0% utils/src/main/java/com/aspectran/utils/concurrent/ConcurrencyThrottleSupport.java
31
27.66
0.0% core/src/main/java/com/aspectran/core/component/bean/async/SimpleAsyncTaskExecutor.java
32
46.15
0.0% with-undertow/src/main/java/com/aspectran/undertow/server/handler/resource/TowResourceHandler.java
35
0.0
0.0% core/src/main/java/com/aspectran/core/service/AbstractServiceLifeCycle.java
42
0.0
0.0% core/src/main/java/com/aspectran/core/service/DefaultCoreService.java
42
57.39
0.0% with-undertow/src/main/java/com/aspectran/undertow/server/session/TowSessionManager.java
67
0.0
0.0% core/src/main/java/com/aspectran/core/service/AbstractCoreService.java
144
4.35
0.0% with-undertow/src/main/java/com/aspectran/undertow/server/TowOptions.java
Jobs
ID Job ID Ran Files Coverage
1 #4665.1 18 Oct 2025 07:03AM UTC 989
36.3
Source Files on build #4665
  • Tree
  • List 989
  • Changed 29
  • Source Changed 27
  • Coverage Changed 23
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • e38824d2 on github
  • Prev Build on master
  • Next Build on master
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc