| Summary: | NoSuchMethodException org.eclipse.virgo.medic.log.logback.DelegatingContextSelector.<init> in Virgo Jetty Server startup | ||
|---|---|---|---|
| Product: | [RT] Virgo | Reporter: | Chris Frost <eclipse> |
| Component: | runtime | Assignee: | Project Inbox <virgo-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | glyn.normington |
| Version: | 3.5.0.M02 | ||
| Target Milestone: | 3.5.0.M04 | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
|
Description
Chris Frost
This seems to be related to the implementation of 362095 which moved logback out of medic core. As a consequence, logback can no longer load medic's DelegatingContextSelector class locally from its bundle class loader. So a new fragment was introduced to import DCS's package into logback classic. It seems this fragment is not being installed in the Jetty build (and most likely not in any of the other packaging builds). There are actually two fragments, one each for logback class and logback core, introduced in medic commit 7082838769497acfa825530b6d4b3d1b8f9e7fbf. These need to be installed in the kernel region so they will attach. (Also, note that the medic activator sets a system property in medic commit a80a6b1a5a5ee0c1496d1dc8be76801ceb780f61 to ensure that DCS is loaded from the correct place. That should not need any change in the packaging repos, but it's worth knowing about from a debugging perspective.) Comment 1 should have read "... There are actually two fragments, one each for logback classic and logback core, ...". This should be a change to the p2 packaging information in Nano. Simply need to add reference to the fragments in the right feature definition The exception does not show in the log when starting VJS 3.5.0.M04. (In reply to comment #3) > This should be a change to the p2 packaging information in Nano. Simply need to > add reference to the fragments in the right feature definition These fragments appear to be part of the medic feature.xml in nano. The fragments correctly attach in VJS 3.5.0.M04. However, this change was made on 2012-01-12 which is well before this bug was raised. I tried reproducing the problem on VJS 3.5.0.M02 (the version it was reported against) and the fragments were correctly attached there too and there was no sign of the exception. Is there some missing information about how to recreate this? We managed to recreate with with VJS 3.5.0.M03, but that was missing a jetty boot logback fragment attached to the jetty boot bunde, which is necessary for correct use of logback by jetty. This is fixed in 3.5.0.M04 and beyond, so closing as fixed. |