Quantcast
Channel: SCN : Popular Discussions - Java SDK Application Development
Viewing all articles
Browse latest Browse all 1701

Using Crystal Reports Server 2011, OEM Edition

$
0
0

Hi,

 

I am a newbie to Crystal Reports Server. My goal is to open an unmanaged Crystal Report file in a JSP in my Web application.

 

I have a Windows 2008 server machine named "DBS2008".

This machine already has MS SQL Server 2008 Database Server installed.

I have now installed SAP Crystal Reports Server 2011, OEM Edition on this machine.

I can see that a new Service is created named "SAP Crystal Reports Server 2011, OEM Edition" and it is running.

 

I installed JBoss 4.0 Application Server on this machine.

I created a simple RPT file emp.rpt which uses a table named "employee" in the database "dbconfig" of the MS SQL Server 2008 Database Server.

I put the emp.rpt file in C:\temp folder on this machine.

 

I created a very simple Web application named "TestCrystalReport". It only has one JSP "index.jsp". In its WEB-INF\lib folder I copied the following jar files from C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib folder:

aspectjrt.jar, bcm.jar, ceaspect.jar, cecore.jar, celib.jar, cesession.jar, commons-beanutils.jar, commons-collections-3.1.jar, commons-digester-1.6.jar, corbaidl.jar, cryptojFIPS.jar, CrystalReportsSDK.jar, ebus405.jar, icu4j.jar, logging.jar, SL_plugins.jar, TraceLog.jar, webreporting.jar

 

This is index.jsp:

 

<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>

<%@ page import="com.crystaldecisions.sdk.occa.report.application.ReportClientDocument" %>

<%@ page import = "com.crystaldecisions.sdk.occa.report.application.OpenReportOptions" %>

 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<title>Insert title here</title>

</head>

<body>

<%

String reportServerName = "DBS2008:1566";

String reportName = "C:\\emp.rpt";

 

ReportClientDocument rcd = new ReportClientDocument();

rcd.setReportAppServer(reportServerName);

System.out.println("after rcd.setReportAppServer");

rcd.open(reportName, OpenReportOptions._openAsReadOnly);

System.out.println("after rcd.open");

%>

</body>

</html>

 

I deploy TestCrystalReport web application to JBoss and when I run it using http://localhost:8080/TestCrystalReport I got this error message at rcd.open statement:

 

com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: Server has been disabled by CMS DBS2008.ISOL.local

---- Error code:-2147217407 [CRSDK00000000] Error code name:serverUnavailable

 

What I am doing wrong here?


Viewing all articles
Browse latest Browse all 1701

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>