on 2015 Nov 02 1:19 PM
Hello,
I am trying read old reports 10 reports in J2EE web application without any luck. Can someone direct me to appropriate documentation or example helping me get this working.
I have copied the lib folders (plus external ) all jar files to WEB-INF/lib folder. I still get the errors in not finding -
com.crystaldecisions.report.web.viewer.*;
com.crystaldecisions.report.web.viewer.CrystalReportViewer
What am I doing wrong?
Thanks,
Amarendra
The classes you are using are for unmanaged RAS SDKs.
Are your reports managed(exported to XI 4 enterprise) or unmanaged(desktop/hard drive)
refer to the below links to find samples for managed RAS. Most of the links are for XI 3.1 version however would work for BI 4.
Java RAS SDK Samples - Business Intelligence (BusinessObjects) - SCN Wiki
BusinessObjects RAS Java SDK - All Sample Applications
Thanks,
Prithvi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prithvi,
Yes,this is an unmanaged server.
The standalone XI 4.0 instance works fine.
Under C:\Program Files\SAP BusinessObjects
There are 3 main folders -
C:\Program Files\SAP BusinessObjects\Crystal Reports
C:\Program Files\SAP BusinessObjects\Crystal Reports Common
C:\Program Files\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0
As per the suggestion, I copied jars from lib and external folders.
imported the JARs in my jsp -
com.crystaldecisions.sdk.occa.report.application.*,
com.crystaldecisions.sdk.occa.report.exportoptions.*,
com.crystaldecisions.sdk.occa.report.data.*,
com.crystaldecisions.report.web.viewer.*,
com.crystaldecisions.sdk.occa.report.lib.*,
com.crystaldecisions.sdk.occa.report.data.*"
I get the error on accessing class for ITable
Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\report_005fview_jsp.java:19: cannot access com.crystaldecisions.sdk.occa.report.data.ITable
An error occurred at line: 41 in the jsp file: /report_view.jsp
Generated servlet error:
bad class file: C:\apps\ua\WEB-INF\lib\CrystalReportsRuntime.jar(com/crystaldecisions/sdk/occa/report/data/ITable.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
public void setTables( com.crystaldecisions.sdk.occa.report.data.ITable table,
Then, I did additional research and replaced all these Jars with CR runtime with Java Application (suggested for Eclipse although I use Netbeans)
So, my new imported JARs are as below -
com.crystaldecisions.sdk.occa.report.application.*,
com.crystaldecisions.sdk.occa.report.exportoptions.*,
com.crystaldecisions.sdk.occa.report.data.*,
com.crystaldecisions12.reports.queryengine.ITable,
com.crystaldecisions.report.web.viewer.*,
com.crystaldecisions.sdk.occa.report.lib.*"
And, the ITable is instantiated using -
public void setTables( | com.crystaldecisions12.reports.queryengine.ITable table, |
^
1 error
An error occurred at line: 41 in the jsp file: /report_view.jsp
Generated servlet error:
bad class file: C:\apps\ua\WEB-INF\lib\CrystalReportsRuntime.jar(com/crystaldecisions12/reports/queryengine/ITable.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
My application is old -
JDK 1.4.2_19 with tomcat 5.0
Reports 10 with RAS worked fine on Windows 2003. SInce we have migrated this application to Windows 2008 server we must use Reports 13.
Your suggestion is appreciated.
Thanks,
Amar
Java 1.4 is not supported with BI 4.0. The error I see from the stack you posted has the following
class file has wrong version 49.0, should be 48.0
which is a generic java error, between the complied version of the class not being compatible with the jvm used to run the program.
Upgrade your java and test your application. The supported java versions can be found from Product availability matrix available at
Refer some links below on wrong version error
http://stackoverflow.com/questions/3535722/eclipse-wont-compile-bad-class-file-wrong-version
class file has wrong version 49.0, should be 48.0 | Oracle Community
User | Count |
---|---|
73 | |
10 | |
9 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.