Deploying to JasperReports Server Activity

 

 

 

Step

Action

1. 

Activity End Result

At the end of this activity, the CostSummary report is deployed to the JasperReports Server Repository, as displayed above.

 

To achieve this, you:

- Configure iReport's Repository Navigator

- Deploy the CostSummary report to the repository

- Verify that it is accessible

2. 

Open the CostSummary report you created in an earlier activity.

3. 

Begin by opening the Repository Navigator.

 

Click the Window menu.

4. 

Click the JasperReports Server Repository menu item.

5. 

Note: The Repository Navigator panel opens. The Repository Navigator facilitates the deployment of reports and associated files from iReport's file system to the JasperReports Server repository (database).

6. 

Next, open a connection to the repository.

 

Click the Add new server button.

7. 

Note: The JasperServer Plugin window opens.

Configure as follows:

- ID: Local Server

- JasperReports Server URL: Leave as is

- Organization: organization_1

- Username: jasperadmin

- Password: jasperadmin

8. 

Enter "LocalServer" into the ID field.

9. 

Enter "organization_1" into the Organization field.

10. 

Note: organization_1 is the JasperReports Server login alias. Enter that name when you log into JasperReports Server later in the activity.

11. 

jasperadmin is the default JasperReports Server manager account.

 

Enter "jasperadmin" into the Username field.

12. 

Enter "jasperadmin" into the Password field.

13. 

Click the Save button.

14. 

Note: The repository connection is represented in the Repository Navigator panel by LocalServer.

15. 

Expand the LocalServer node.

16. 

Note: The LocalServer connection serves as a window to the folder tree with which repository resources are managed. You see this same folder tree later after you log into JasperReports Server.

17. 

Next, deploy the CostSummary report to the Public folder using a wizard.

 

Right-click the Public folder.

18. 

Point to the Add menu.

19. 

Click the JasperServer Report menu item.

20. 

Note: The ReportUnit Wizard opens. In step one, specify the resource ID and label name of the deployed report.

21. 

Enter "crosstab_report" into the ID field.

22. 

Enter "Crosstab Report" into the Name field.

23. 

Click the Next button.

24. 

Note: In step two, identify the report file being deployed to the repository.

25. 

The CostSummary report is open in iReport.

 

Click the Get source from current opened report button.

26. 

Note: The path identifies the CostSummary report.

27. 

Click the Next button.

28. 

Note: In step three, identify the report's data source.

29. 

Click the From the repository option.

30. 

Click the Connection dropdown button.

31. 

Click the /analysis/datasources/FoodmartDataSourceJNDI list item.

32. 

Click the Finish button to save changes and close the wizard.

33. 

Note: A copy of the CostSummary.jrxml file is deployed to the JasperReports Server repository where users can access it in the Public folder.

 

Next, log into JasperReports Server and view the report.

34. 

Open JasperReports Server in your browser.

35. 

Enter "jasperadmin" into the User ID field.

36. 

Enter "jasperadmin" into the Password field.

37. 

Click the Login button.

38. 

Note: The jasperadmin home page appears. Go to the Folders view to access the report.

39. 

Point to the View menu.

40. 

Click the Repository menu item.

41. 

Note: Viewing the repository displays the Folders view. Repository resources are stored in nested folders.

42. 

Click the Public folder.

43. 

Note: Selecting a folder displays its contents in the Repository pane.

44. 

Click the Crosstab Report link.

45. 

Note: The Crosstab report opens.

46. 

Congratulations!

 

You successfully configured the Repository Navigator, deployed a report to the repository, and logged into JasperReports Server to view the report.

 

View the Online Learning Portal here (http://www.jaspersoft.com/online-learning-portal).

End of Procedure.