How do you configure a web application archive (WAR) file for a Java 2 Enterprise Edition (J2EE) application that uses the Java Reporting Component (JRC)?
To configure a WAR file for a J2EE application that uses the JRC XI, follow these steps:
1. Create a lib folder in the WAR file's WEB-INF folder.
2. Copy the JAR files from these folders to the WAR file's WEB-INF\lib folder:
- ...\Program Files\Common Files\Business Objects\3.0\java\lib
- ...\Program Files\Common Files\Business Objects\3.0\java\lib\external
If you wish to use the CrystalReportViewer tag library, copy the TLD files from the ...\Program Files\Common Files\Business Objects\3.0\java\lib\taglib folder to the WAR file's WEB-INF\lib folder.
3. Create a classes folder in the WAR file's WEB-INF folder.
4. Copy the CRconfig.xml and Log4j.properties files from the ...\Program Files\Common Files\Business Objects\3.0\java folder to the WAR file's WEB-INF\classes folder.
5. Open the CRconfig.xml file located in the WAR file's WEB-INF folder and change the 'report location' property to point to your report. This location must be a relative path.
By default, this location is set to the root of the WAR. If your report is in the root of the WAR file, you do not need to change this property.
6. Copy the entire crystalreportviewers11 folder from the ...\Program Files\Common Files\Business Objects\3.0 folder to the WAR file's root folder.
7. Open the web.xml file located in the WAR file's 'WEB-INF' folder.
8. Specify the location of the utility files used by the report viewers contained in the crystalreportviewers11 folder by inserting the following code below the <display-name> and <description> tags but within the <webapp> tag definition:
<!-- Context Param --><context-param><param-name>crystal_image_uri</param-name><param-value>crystalreportviewers11</param-value></context-param><!-- Context Param End -->
9. Deploy the WAR file to your J2EE application server.
You are now able to run your JRC XI application on a J2EE web application server.
For a list of supported Java application servers for the Java Reporting Component XI, refer to the platforms.txt file on the Crystal Reports XI CD or Crystal Reports XI for Windows - Supported Platform Info.
J2EE JRC WEB APPLICATION WAR SERVLET .JAR SET UP TOMCAT WEBSPHERE WEBLOGIC Crystal Reports JRC Configuration and Setup , c2016910 , KBA , BI-RA-CR , Crystal Reports designer or Business View Manager , How To