You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/11/29 07:51:24 UTC

[GitHub] [shardingsphere-elasticjob] prefect1005 opened a new issue #2013: APPLICATION FAILED TO STARTA component required a bean named '***' that could not be found.

prefect1005 opened a new issue #2013:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/2013


   ## Bug Report
   
   ### Which version of ElasticJob did you use?
   elasticjob-lite-spring-boot-starter  3.0.1
   
   ### Which project did you use? ElasticJob-Lite or ElasticJob-Cloud?
   ElasticJob-Lite
   
   ### Actual behavior
   
   ***************************
   APPLICATION FAILED TO START
   ***************************
   Description:
   A component required a bean named 'myOneOffJobBean' that could not be found.
   
   
   my config:
   elasticjob.jobs.oneOffJob.elasticJobClass=com.example.demo.MyElasticJob
   elasticjob.jobs.oneOffJob.jobBootstrapBeanName=myOneOffJobBean
   elasticjob.jobs.oneOffJob.shardingTotalCount=3
   
   in controller:
   @Resource(name = "myOneOffJobBean")
   private OneOffJobBootstrap myOneOffJobBean;
   
   
   ### Reason analyze (If you can)
   
   in 3.0.0 version is ok
   i find  
   https://github.com/apache/shardingsphere-elasticjob/issues/1810
   this issues 
   
   and  in this merge
   https://github.com/apache/shardingsphere-elasticjob/pull/1930/commits/0446a5d9a12e8a83300316b8de044c107328ddd7
   JobBootstrapBeans instantiation in afterSingletonsInstantiated
   
   just because of this,in application Controller , the OneOffJobBootstrap has not init.
   so what can i do? 
   
   hope to reply, thanks
   
   
   
   ### Steps to reproduce the behavior.
   
   ### Example codes for reproduce this issue (such as a github link).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere-elasticjob] prefect1005 closed issue #2013: APPLICATION FAILED TO STARTA component required a bean named '***' that could not be found.

Posted by GitBox <gi...@apache.org>.
prefect1005 closed issue #2013:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/2013


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org