面对水晶报表,我举起了双手!

sdshadow 2006-02-10 02:52:25
javax.servlet.ServletException: Error loading /C:/Tomcat%205.5/webapps/testrpt/1.rpt
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:845)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:77
org.apache.jsp.tes_jsp._jspService(org.apache.jsp.tes_jsp:84)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Error loading /C:/Tomcat%205.5/webapps/testrpt/1.rpt ---- Error code:-2147215356 Error code name:fileNotOpened
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown Source)
com.crystaldecisions.reports.reportengineinterface.JPEReportSource.<init>(Unknown Source)
com.crystaldecisions.reports.reportengineinterface.JPEReportSource.a(Unknown Source)
com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory.createReportSource(Unknown Source)
org.apache.jsp.tes_jsp._jspService(org.apache.jsp.tes_jsp:57)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
...全文
289 点赞 收藏 7
写回复
7 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
honestman 2006-05-23
把目录中的空格去掉就OK了。
回复
bestdelphier 2006-05-10
好像是你的tomcat路径不能被识别,重装一下tomcat试试,根目录改名为tomcat,不要那些空格、版本号。
回复
sdshadow 2006-02-14
帮忙看错误在哪里啊
回复
panzi667 2006-02-11
?
回复
sdshadow 2006-02-10
UP
回复
sdshadow 2006-02-10
我的jsp
<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer" %>
<%@ page import="java.util.*" %>
<%@ page import="com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory"%>
<%@ page import=" com.crystaldecisions.sdk.occa.report.reportsource.IReportSourceFactory2"%>
<%@ page import="com.crystaldecisions.sdk.occa.report.reportsource.IReportSource" %>
<html>
<head>sadasda</head>
<body>
<%
String path = "1.rpt";
IReportSourceFactory2 rsf = new JPEReportSourceFactory();
IReportSource reportSource = (IReportSource) rsf.createReportSource(path,Locale.CHINA);
CrystalReportViewer viewer = new CrystalReportViewer();
viewer.setReportSource(reportSource);
viewer.processHttpRequest(request,response,getServletConfig().getServletContext(),out);
//viewer.dispose();
%>
</body>
</html>
回复
sdshadow 2006-02-10
我的XML配置如下
<?xml version="1.0" encoding="utf-8"?><CrystalReportEngine-configuration>
<reportlocation>../..</reportlocation>
<timeout>10</timeout>
<keycode>AV860-01CS00G-U7000NC</keycode></CrystalReportEngine-configuration>
我的rpt文件放在应用程序根目录
回复
相关推荐
发帖
Web 开发
创建于2007-09-28

8.0w+

社区成员

Java Web 开发
申请成为版主
帖子事件
创建了帖子
2006-02-10 02:52
社区公告
暂无公告