Mantis - Resin
Viewing Issue Advanced Details
4393 minor always 02-14-11 10:57 02-14-11 12:10
cowan  
ferg  
normal  
closed 4.0.15  
fixed  
none    
none 4.0.16  
0004393: ScheduledTaskConfig.init(): javax.enterprise.inject.UnsatisfiedResolutionException
[11-02-14 20:19:50.422] {main} WEB-INF/resin-web.xml:33: com.caucho.resources.ScheduledTaskConfig.init(): javax.enterprise.inject.UnsatisfiedResolutionException: fi.extremia.lahetyksenseuranta.logic.LahetyksenseurantaBatchBean.lahetyksenseurantaBatchFacadeRemote: Can't find a bean for 'interface fi.extremia.lahetyksenseuranta.facade.LahetyksenseurantaBatchFacadeRemote' because no beans implementing that class have been registered with the injection manager InjectManager[web-app:production/webapp/default/LahetyksenseurantaService].
                               
                               31: <!-- TODO: Korjaa erÃ?ajon mÃ?Ã?ritykset -->
                               32: <scheduled-task
                               33: class="fi.extremia.lahetyksenseuranta.logic.LahetyksenseurantaBatchBean">
                               34: <cron>*</cron>
                               35: </scheduled-task>



This is how I've got it in the bean:

  @Inject
  private LahetyksenseurantaFetchFacadeRemote lahetyksenseurantaFetchFacadeRemote;



Notes
(0005054)
cowan   
02-14-11 10:58   
Possible timing issue
(0005055)
ferg   
02-14-11 12:10   
server/2i4a

Issue occurs when scheduled-task is before the bean definition in the beans.xml.