Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

集成最新版报表打包jar启动异常 #2725

Open
HoHo1 opened this issue Jun 24, 2024 · 2 comments
Open

集成最新版报表打包jar启动异常 #2725

HoHo1 opened this issue Jun 24, 2024 · 2 comments

Comments

@HoHo1
Copy link

HoHo1 commented Jun 24, 2024

版本号:

jmreport: 1.7.6
springboot: 2.7.18
mybatis-plus: 3.5.7
druid: 1.2.23

问题描述:

集成新版积木报表在diea中启动正常,但在打包成jar之后启动异常

错误日志&截图:

2024-06-24 10:52:12.272 INFO [main] org.apache.coyote.http11.Http11NioProtocol : Initializing ProtocolHandler ["http-nio-9999"]
2024-06-24 10:52:12.277 INFO [main] org.apache.catalina.core.StandardService : Starting service [Tomcat]
2024-06-24 10:52:12.279 INFO [main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.83]
2024-06-24 10:52:12.475 INFO [main] o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2024-06-24 10:52:12.606 INFO [main] o.j.m.j.config.init.JimuReportConfiguration : Init JimuReport Config [ Token Interceptor & Resource Locations ]
2024-06-24 10:52:33.130 INFO [main] c.b.dynamic.datasource.DynamicRoutingDataSource : dynamic-datasource start closing ....
2024-06-24 10:52:33.135 INFO [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ...
2024-06-24 10:52:33.147 INFO [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
2024-06-24 10:52:33.148 INFO [main] c.b.d.d.destroyer.DefaultDataSourceDestroyer : dynamic-datasource close the datasource named [master] success,
2024-06-24 10:52:33.148 INFO [main] c.b.dynamic.datasource.DynamicRoutingDataSource : dynamic-datasource all closed success,bye
2024-06-24 10:52:33.151 INFO [main] org.apache.catalina.core.StandardService : Stopping service [Tomcat]
ERROR LoggingFailureAnalysisReporter


APPLICATION FAILED TO START


Description:

Field dataSourceDao in org.jeecg.modules.jmreport.desreport.service.a.k required a bean of type 'org.jeecg.modules.jmreport.desreport.dao.JimuReportDataSourceDao' that could not be found.

The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)

Action:

Consider defining a bean of type 'org.jeecg.modules.jmreport.desreport.dao.JimuReportDataSourceDao' in your configuration.

重现步骤:

冲突的依赖以排除
image

image

友情提示(为了提高issue处理效率):

  • 积木报表是一款免费报表产品,功能免费源码不开放;
  • 未按格式要求发帖,会被直接删掉;
  • 请针对问题提供[报表设计配置或SQL脚本]或在官网制作报表示例并提供ID;
  • 针对不好重现的问题,请录制操作视频或详细的重现步骤;
@HoHo1 HoHo1 changed the title 最新版报表打包jar启动异常 集成最新版报表打包jar启动异常 Jun 24, 2024
@zhangdaiscott
Copy link
Member

image
看看是不是跟这个有关

@HoHo1
Copy link
Author

HoHo1 commented Jun 24, 2024

去掉exclude中的这个 DataSourceAutoConfiguration.class 还是一样的 , 在idea中可以正常启动 打包成jar之后 java -jar 启动报错

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants