Mantis - Resin
Viewing Issue Advanced Details
4493 major sometimes 04-11-11 03:01 04-12-11 15:08
andreaskaltenbach  
ferg  
normal  
closed 4.0.16  
fixed  
none    
none 4.0.17  
0004493: UnsatisfiedResolutionException inside CDI extensions
Given the following setup:

-One JAR, containing one CDI-managed bean
-Second JAR, containing a second CDI-managed bean which gets bean of first JAR injected

Starting up Resin works as intended, no problems so far.

---

When we add the following CDI extension, Resin fails with an UnsatisfiedResolutionException when calling event.getBean().getInjectionPoints():

public class MyExtension implements Extension {
   void processManagedBean(@Observes ProcessManagedBean<?> event) {
        // comment this line and Resin will startup without any problems
        event.getBean().getInjectionPoints();
    }
}

---

Jersey 1.6, for example, calls the same method inside its CDIExtension so that Jersey 1.6 does not work together with Resin 4.0.16 out of the box.

Enclosed, you'll find a tiny example Maven project which reproduces the bug. Note that Resin startup up successfully, when we comment the extension line shown in the code snippet above.
 BugReport.zip [^] (8,067 bytes) 04-11-11 03:01

Notes
(0005192)
ferg   
04-12-11 15:08   
server/47b0