Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JSP webapp with RAS fail in linux ??

Status
Not open for further replies.

neltan

Programmer
Nov 4, 2002
82
AU
Hi all,

I can run the crystal report with jsp webapp in windows.

However, when I move the webapp to linux server. It fail.
As I know the following line does not point to local linux server but point at RAS in W2K: clientDoc.open("rassdk://" + path + reportName, OpenReportOptions._openAsReadOnly);

Could somebody point me the way?

Here are the details:
============================================================
path + reportName = C:\Program Files\Crystal Decisions\Report Application Server 9\Reports\attendance\RPT_001.rpt

com.crystaldecisions.sdk.occa.report.lib.ReportSDKClientDocException: Unable to open the document because the given file path is not valid.---- Error code:-2147215358 Error code name:invalidFilePath

An error has occurred in setting the Report Server Control's Report Source.

Check to make sure that the report does exist in the directory specified and that it is also spelled correctly.

com.crystaldecisions.sdk.occa.report.lib.ReportSDKClientDocException: The document has not been opened.---- Error code:-2147215349 Error code name:docNotReady

Unknow Error.
============================================================
/************************************************************************
* This method creates the ReportClientDocument and opens the specified report.
* @params clientDoc - The ReportClientDocument object
* reportName - The name of the report as String
* request - Request object
* out - JspWriter object
************************************************************************/
public void setReportClientDocument(ReportClientDocument clientDoc, String reportName, HttpServletRequest request, JspWriter out) throws Exception {
String path = "C:\\Program Files\\Crystal Decisions\\Report Application Server 9\\Reports\\attendance\\";
try {
// Set the Report Application Server for the ReportClientDocument object
clientDoc.setReportAppServer(Settings.get("app.rpt.server"));
} catch(ReportSDKException e) {
Debug.println(&quot;An error has occurred setting the ReportClientDocument's ReportAppServer.<BR>&quot; + e.toString());
}
try {
clientDoc.open(&quot;rassdk://&quot; + path + reportName, OpenReportOptions._openAsReadOnly);

} catch(ReportSDKException e) {
Debug.println(&quot;path + reportName = &quot;+ path + reportName);
Debug.println(e.toString());
}
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top