zhengty opened a new issue, #17043:
URL: https://github.com/apache/dolphinscheduler/issues/17043

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   服务器解压后在/public/apache-dolphinscheduler-dev-SNAPSHOT-bin/bin这个路径下执行启动命令: bash 
dolphinscheduler-daemon.sh start api-server 报:
   025-03-04 21:47:27.580 WARN  [main] 
o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext:[591] - 
Exception encountered during context initialization - cancelling refresh 
attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: 
Error creating bean with name 'resourcesController': Unsatisfied dependency 
expressed through field 'resourceService'; nested exception is 
org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'resourcesServiceImpl': Unsatisfied dependency 
expressed through field 'storageOperator'; nested exception is 
org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying 
bean of type 'org.apache.dolphinscheduler.plugin.storage.api.StorageOperator' 
available: expected at least 1 bean which qualifies as autowire candidate. 
Dependency annotations: 
{@org.springframework.beans.factory.annotation.Autowired(required=true)}
   2025-03-04 21:47:27.583 INFO  [Curator-Framework-0] 
o.a.c.f.i.CuratorFrameworkImpl:[998] - backgroundOperationsLoop exiting
   2025-03-04 21:47:27.700 INFO  [main] c.z.h.HikariDataSource:[350] - 
DolphinScheduler - Shutdown initiated...
   2025-03-04 21:47:27.717 INFO  [main] c.z.h.HikariDataSource:[352] - 
DolphinScheduler - Shutdown completed.
   2025-03-04 21:47:27.723 INFO  [main] o.e.j.s.session:[149] - node0 Stopped 
scavenging
   2025-03-04 21:47:27.725 INFO  [main] o.e.j.s.h.ContextHandler:[1159] - 
Stopped 
o.s.b.w.e.j.JettyEmbeddedWebAppContext@13d5606c{application,/dolphinscheduler,[file:///tmp/jetty-docbase.12345.4309338316475386340/,
 
jar:file:/public/apache-dolphinscheduler-dev-SNAPSHOT-bin/api-server/libs/swagger-ui-4.11.1.jar!/META-INF/resources],STOPPED}
   2025-03-04 21:47:27.742 INFO  [main] 
o.s.b.a.l.ConditionEvaluationReportLoggingListener:[136] - 
   
   Error starting ApplicationContext. To display the conditions report re-run 
your application with 'debug' enabled.
   2025-03-04 21:47:27.791 ERROR [main] 
o.s.b.d.LoggingFailureAnalysisReporter:[40] - 
   
   ***************************
   APPLICATION FAILED TO START
   ***************************
   
   Description:
   
   Field storageOperator in 
org.apache.dolphinscheduler.api.service.impl.ResourcesServiceImpl required a 
bean of type 'org.apache.dolphinscheduler.plugin.storage.api.StorageOperator' 
that could not be found.
   
   The injection point has the following annotations:
        - @org.springframework.beans.factory.annotation.Autowired(required=true)
   
   The following candidates were found but could not be injected:
        - User-defined bean method 'storageOperate' in 'StorageConfiguration' 
ignored as the bean value is null
   
   
   Action:
   
   Consider revisiting the entries above or defining a bean of type 
'org.apache.dolphinscheduler.plugin.storage.api.StorageOperator' in your 
configuration.
   
   
   ### What you expected to happen
   
   相应的jar包通过咱们的maven打包命令没有引入到api-server项目了 但是本地查看是有相关依赖包的
   
   
![Image](https://github.com/user-attachments/assets/cadb03f8-a76c-465b-98f0-2eee59cc5298)
   
   ### How to reproduce
   
   dev分支 下载到本地 通过maven 命令mvn -U clean package -Prelease 
'-Dmaven.test.skip=true' 打包好的bin.tar.gz包上传到服务器按照官方文档进行部署 就会复现
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   dev
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to