Configuring the Application Server
Although building Web applications in Java is meant to be independent of application servers, the J2EE standard tends to be interpreted differently for each vendors application server. Because of this, each application server has a different way of performing Web application configuration. The general rule is that there is a folder structure like this:
webApplicationFolder WEB-INF web.xml lib classes
When setting up the Java Reporting Component for a given Web application, the following steps are required:
- Copy all the Java Reporting Component .jar files from C:Program FilesCommon FilesCrystal Decisions2.5javalib into the lib folder.
- Copy all the third-party .jar files from C:Program FilesCommon FilesCrystal Decisions2.5javalibexternal into the lib folder.
- Copy CrystalReportEngine-config.xml from C:Program FilesCommon FilesCrystal Decisions2.5java to the classes folder.
- Copy the crystalreportviewer10 folder from C:Program FilesCommon FilesCrystal Decisions2.5 to the Web application folder (webApplicationFolder in the previous example).
- Add the following entry to the web.xml file:
crystal_image_uri
crystalreportviewers10
There are two additional steps required if you intend to use the Crystal tag libraries:
- Copy crystal-tags-reportviewer.tld from C:Program FilesCommon FilesCrystal Decisions2.5javalib aglib to the WEB-INF folder.
- Add the following entry to the web.xml file:
/crystal-tags-reportviewer.tld /WEB-INF/crystal-tags-reportviewer.tld
Категории