(胜博发娱乐手机客户端) javaweb使用水晶报表遇到问题
胜博发娱乐手机版
胜博发娱乐手机版
当前位置 : 胜博发娱乐手机版 > 胜博发娱乐手机客户端

(胜博发娱乐手机客户端) javaweb使用水晶报表遇到问题

javaweb使用水晶报表遇到问题,

java.lang.NoClassDefFoundError: Could not initialize class com.crystaldecisions.reports.reportengineinterface.a.a.b

现在列出问题如下:

一月 11, 2015 12:05:08 下午 org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service for servlet jsp threw exception
java.lang.NoClassDefFoundError: Could not initialize class com.crystaldecisions.reports.reportengineinterface.a.a.b
    at com.crystaldecisions.reports.sdk.ReportClientDocument.openUnknown Source
    at org.apache.jsp.s_005fSystemOtherPage.reportPrinter_jsp._jspServicereportPrinter_jsp.java:122
    at org.apache.jasper.runtime.HttpJspBase.serviceHttpJspBase.java:70
    at javax.servlet.http.HttpServlet.serviceHttpServlet.java:727
    at org.apache.jasper.servlet.JspServletWrapper.serviceJspServletWrapper.java:432
    at org.apache.jasper.servlet.JspServlet.serviceJspFileJspServlet.java:390
    at org.apache.jasper.servlet.JspServlet.serviceJspServlet.java:334
    at javax.servlet.http.HttpServlet.serviceHttpServlet.java:727
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilterApplicationFilterChain.java:303
    at org.apache.catalina.core.ApplicationFilterChain.doFilterApplicationFilterChain.java:208
    at org.apache.tomcat.websocket.server.WsFilter.doFilterWsFilter.java:52
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilterApplicationFilterChain.java:241
    at org.apache.catalina.core.ApplicationFilterChain.doFilterApplicationFilterChain.java:208
    at org.apache.catalina.core.ApplicationDispatcher.invokeApplicationDispatcher.java:748
    at org.apache.catalina.core.ApplicationDispatcher.processRequestApplicationDispatcher.java:486
    at org.apache.catalina.core.ApplicationDispatcher.doForwardApplicationDispatcher.java:411
    at org.apache.catalina.core.ApplicationDispatcher.forwardApplicationDispatcher.java:338
    at org.apache.struts2.dispatcher.ServletDispatcherResult.doExecuteServletDispatcherResult.java:164
    at org.apache.struts2.dispatcher.StrutsResultSupport.executeStrutsResultSupport.java:186
    at com.opensymphony.xwork2.DefaultActionInvocation.executeResultDefaultActionInvocation.java:371
    at com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:275
    at org.apache.struts2.interceptor.DeprecationInterceptor.interceptDeprecationInterceptor.java:41
    at com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:246
    at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.interceptDebuggingInterceptor.java:256
    at com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:246
    at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doInterceptDefaultWorkflowInterceptor.java:167
    at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.interceptMethodFilterInterceptor.java:98
    at com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:246
    at com.opensymphony.xwork2.validator.ValidationInterceptor.doInterceptValidationInterceptor.java:265
    at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doInterceptAnnotationValidationInterceptor.java:68
    at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.interceptMethodFilterInterceptor.java:98
    at com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:246
    at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.interceptConversionErrorInterceptor.java:138
    at com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:246
    at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doInterceptParametersInterceptor.java:249
    at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.interceptMethodFilterInterceptor.java:98
    at com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:246
    at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doInterceptParametersInterceptor.java:249
    at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.interceptMethodFilterInterceptor.java:98
    at com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:246
    at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.interceptStaticParametersInterceptor.java:191
    at com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:246
    at org.apache.struts2.interceptor.MultiselectInterceptor.interceptMultiselectInterceptor.java:73
    at com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:246
    at org.apache.struts2.interceptor.CheckboxInterceptor.interceptCheckboxInterceptor.java:91
    at com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:246
    at org.apache.struts2.interceptor.FileUploadInterceptor.interceptFileUploadInterceptor.java:252
    at com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:246
    at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.interceptModelDrivenInterceptor.java:100
    at com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:246
    at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.interceptScopedModelDrivenInterceptor.java:141
    at com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:246
    at com.opensymphony.xwork2.interceptor.ChainingInterceptor.interceptChainingInterceptor.java:145
    at com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:246
    at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doInterceptPrepareInterceptor.java:171
    at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.interceptMethodFilterInterceptor.java:98
    at com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:246
    at com.opensymphony.xwork2.interceptor.I18nInterceptor.interceptI18nInterceptor.java:139
    at com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:246
    at org.apache.struts2.interceptor.ServletConfigInterceptor.interceptServletConfigInterceptor.java:164
    at com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:246
    at com.opensymphony.xwork2.interceptor.AliasInterceptor.interceptAliasInterceptor.java:193
    at com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:246
    at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.interceptExceptionMappingInterceptor.java:189
    at com.opensymphony.xwork2.DefaultActionInvocation.invokeDefaultActionInvocation.java:246
    at org.apache.struts2.impl.StrutsActionProxy.executeStrutsActionProxy.java:54
    at org.apache.struts2.dispatcher.Dispatcher.serviceActionDispatcher.java:562
    at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeActionExecuteOperations.java:77
    at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilterStrutsPrepareAndExecuteFilter.java:99
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilterApplicationFilterChain.java:241
    at org.apache.catalina.core.ApplicationFilterChain.doFilterApplicationFilterChain.java:208
    at org.apache.catalina.core.StandardWrapperValve.invokeStandardWrapperValve.java:220
    at org.apache.catalina.core.StandardContextValve.invokeStandardContextValve.java:122
    at org.apache.catalina.authenticator.AuthenticatorBase.invokeAuthenticatorBase.java:501
    at org.apache.catalina.core.StandardHostValve.invokeStandardHostValve.java:171
    at org.apache.catalina.valves.ErrorReportValve.invokeErrorReportValve.java:102
    at org.apache.catalina.valves.AccessLogValve.invokeAccessLogValve.java:950
    at org.apache.catalina.core.StandardEngineValve.invokeStandardEngineValve.java:116
    at org.apache.catalina.connector.CoyoteAdapter.serviceCoyoteAdapter.java:408
    at org.apache.coyote.http11.AbstractHttp11Processor.processAbstractHttp11Processor.java:1040
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.processAbstractProtocol.java:607
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.runJIoEndpoint.java:314
    at java.util.concurrent.ThreadPoolExecutor.runWorkerThre
adPoolExecutor.java:1145
    at java.util.concurrent.ThreadPoolExecutor$Worker.runThreadPoolExecutor.java:615
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.runTaskThread.java:61
    at java.lang.Thread.runThread.java:722


----------
**JSP页面中,出错的语句是:
*reportClientDoc.openreportSource.getReportName, 0;* 
的代码如下:**


----------
<%@page import="com.controllon.modul.SystemOther_ReportData"%>
<%@ 
    page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"
%>
<%@page import="org.springframework.web.context.WebApplicationContext"%>  
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%> 
<%@page import="com.controllon.common.DynamicPages"%>
<%@ page import="com.crystaldecisions.reports.reportengineinterface.*"%>
<%@ page import="com.crystaldecisions.report.web.viewer.*" %>
<%@page import="com.crystaldecisions.report.web.viewer.*" %>  
<%@ page import="com.crystaldecisions.reports.sdk.*" %>
<%
    String conTextPath = request.getContextPath;
    String basicPath = request.getScheme + "://" + request.getServerName + ":" + request.getServerPort + request.getContextPath + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basicPath%>" /> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>打印报表</title>
</head>
<body>  
    <%      
     CrystalReportViewer crViewer=new CrystalReportViewer;  
     crViewer.setOwnPagetrue;  
     crViewer.setOwnFormtrue;  
     crViewer.setPrintModeCrPrintMode.ACTIVEX;  

     WebApplicationContext context = WebApplicationContextUtils.getWebApplicationContextrequest.getSession.getServletContext;
     DynamicPages dp = DynamicPages context.getBean"dynamicPage"; 

     String reportId = request.getParameter "report" ;
     String where = request.getParameter "where" ;
     Object webPage = request.getAttribute "pageUrl" ;

     SystemOther_ReportData reportSource = dp.getReportDataString webPage, reportId, where;

     if  reportSource!=null && reportSource.getReportName!=null && reportSource.getReportName.length > 0 {
         ReportClientDocument reportClientDoc = new ReportClientDocument;  

         reportClientDoc.openreportSource.getReportName, 0; 
         response.sendRedirect"s_SystemOtherPage/reportPrinterError.jsp";
        if  reportSource.getDatasource!=null { 
            String tableAlias = reportClientDoc.getDatabaseController.getDatabase.getTables.getTable0.getAlias;  
            reportClientDoc.getDatabaseController.setDataSourcereportSource.getDatasource,tableAlias, "resultsetTable"; 
        } 

        if  reportSource.getParameterFields!=null { 
            crViewer.setParameterFields  reportSource.getParameterFields ; 
        }     

        crViewer.setReportSource reportClientDoc.getReportSource ;   
        crViewer.processHttpRequestrequest,response,this.getServletConfig.getServletContext,null;

     } else {
        response.sendRedirect"s_SystemOtherPage/reportPrinterError.jsp";
     }
    %>     
</body>
</html>

广告位

胜博发娱乐手机版