Exchangis icon indicating copy to clipboard operation
Exchangis copied to clipboard

启动报错

Open wangkun723 opened this issue 2 years ago • 3 comments

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2023-12-09 04:36:06.639 [ERROR] [main ] o.s.b.SpringApplication (834) [reportFailure] - Application run failed org.springframework.beans.factory.UnsatisfiedDependencor creating bean with name 'exchangisDataSourceRestfulApi' defined in URL [jar:file:/home/software/exchangis1.1.2_install_package/wedatasphere-exchangis-1.1.2ttt/Exchangis-release-1.1.2/assembly-packaasphere-exchangis-1.1.2/lib/exchangis-server/exchangis-datasource-server-1.1.2.jar!/com/webank/wedatasphere/exchangis/datasource/server/restful/api/ExchangisDataSourceRestfulApi.class]: Unsatisfied desed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'exchangisDataSourceService' defined in URL [jaftware/exchangis1.1.2_install_package/wedatasphere-exchangis-1.1.2ttt/Exchangis-release-1.1.2/assembly-package/target/wedatasphere-exchangis-1.1.2/lib/exchangis-server/exchangis-datasource-service-1.1ank/wedatasphere/exchangis/datasource/service/ExchangisDataSourceService.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factoryendencyException: Error creating bean with name 'context' defined in class path resource [com/webank/wedatasphere/exchangis/datasource/server/configuration/ServerConfig.class]: Unsatisfied dependency gh method 'context' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'mapperHook' defined in URL [jar:file:/home/softwar2_install_package/wedatasphere-exchangis-1.1.2ttt/Exchangis-release-1.1.2/assembly-package/target/wedatasphere-exchangis-1.1.2/lib/exchangis-server/exchangis-dao-1.1.2.jar!/com/webank/wedatasphere/exc/MapperHook.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'exchanigMapper' defined in URL [jar:file:/home/software/exchangis1.1.2_install_package/wedatasphere-exchangis-1.1.2ttt/Exchangis-release-1.1.2/assembly-package/target/wedatasphere-exchangis-1.1.2/lib/exchanangis-dao-1.1.2.jar!/com/webank/wedatasphere/exchangis/dao/mapper/ExchangisJobParamConfigMapper.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/apache/linkis/mybatis/MybatisConfigurationFactn instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.baomidou.mybatisplus.extension.spring.MybatisSqlSessionFctory method 'sqlSessionFactory' threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/jdbc/datasource/TransactionAwareDataSourceProxy image

wangkun723 avatar Dec 08 '23 20:12 wangkun723

缺各种包,要么改pom重新编译,要么直接把缺的包复制到lib里面

wangkun723 avatar Dec 10 '23 07:12 wangkun723

测试排查是发现少了 spring-jdbc-x.x.x.RELEASE.jar 包,此包是从 linkis 里依赖的,但不管是官方的 releases 里下载还是自己编译打包都没有此包的配置(pom.xml)。可以 linkis 相应版本里 copy 此文件上传到 lib 下,如 exchangis v1.1.2 依赖的是 spring-jdbc-5.2.23.RELEASE

liufeiwu avatar Apr 09 '24 02:04 liufeiwu