Web 预览报错
错误信息:
: 产生数据工厂: com.raqsoft.report.dataset.SQLDataSetFactory 失败 (数据集名称):hbm 错误来源:: 数据集 hbm 中,数据源 hbm 无数据库连接,且未设定数据连接工厂,请检查数据源设定:
- 收缩
-
产生数据工厂: com.raqsoft.report.dataset.SQLDataSetFactory 失败 (数据集名称):hbm 错误来源:: 数据集 hbm 中,数据源 hbm 无数据库连接,且未设定数据连接工厂,请检查数据源设定:
at com.raqsoft.report.usermodel.Engine.$1(Unknown Source:199)
at com.raqsoft.report.usermodel.Engine.$1(Unknown Source:163)
at com.raqsoft.report.usermodel.Engine.calc(Unknown Source:109)
at com.raqsoft.report.cache.lIllIllIIllllIIl.getReport(Unknown Source:137)
at com.raqsoft.report.cache.ReportCache.getReport(Unknown Source:176)
at com.raqsoft.report.tag.HtmlTag.doStartTag(Unknown Source:348)
at org.apache.jsp.reportJsp.preview_jsp._jspService(preview_jsp.java:240)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at com.raqsoft.report.webutil.CharacterEncodingFilter.doFilter(Unknown Source:44)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source) Caused by: : 数据集 hbm 中,数据源 hbm 无数据库连接,且未设定数据连接工厂,请检查数据源设定:
at com.raqsoft.report.dataset.SQLDataSetFactory.createDataSetM(Unknown Source:91)
at com.raqsoft.report.usermodel.Engine._$1(Unknown Source:179)
… 31 more
可以参考http://c.raqsoft.com.cn/article/1533996216341 这个步骤排查
主要涉及连接池设置、驱动 jar 的配置,注意修改后要重启服务才能生效
参考了个
404 Not Found!
搞了半天才发现问题是这里,这里改了才生效
C:\Program Files\raqsoft\report\web\webapps\demo\WEB-INF\raqsoftConfig.xml