The Bundled JasperReports Server-Pro v4.1.0 Win 64 Installation deploys Tomcat and MySQL by default.
Unzip overlay package and extract jasperreports-server-5.1.0-overlay-upgrade to C: root
Copy mysql-connector-java-5.1.12-bin.jar
from to If using a non-MySQL repository in your previous bundled installation, users can skip step 2 of the process.
Modify default_master.properties at C:Program Filesjasperreports-server-4.1buildomatic
from # application server type# appServerType = tomcat6 .......... appServerType = skipAppServerCheck .......... # Tomcat app server root dir appServerDir=C:Program Filesjasperreports-server-4.1/apache-tomcat[/code]
to # application server type appServerType = tomcat6 .......... # appServerType = skipAppServerCheck .......... # Tomcat app server root dir appServerDir=C:\Program Files\jasperreports-server-4.1\apache-tomcat[/code]
Make sure to comment out "appServerType = skipAppServerCheck" and use double slashes "\" in Tomcat app server root dir. For overlaying bundled JasperReports Server installation, please refer to Appendix B (below) for additional changes to this file.
Stop Tomcat
Make sure MySQL repository DB is running
Using command line, run following script from C:jasperreports-server-5.1.0-overlay-upgrade
overlay install
The overaly process starts
When prompted, choose to use default work folder
backup db - y
stop tomcat - y
When prompted, enter master.properties path
C:Program Filesjasperreports-server-4.1buildomaticdefault_master.properties
When prompted, enter path to jasperserver-pro
C:Program Filesjasperreports-server-4.1apache-tomcatwebappsjasperserver-pro
checked customization - y
BUILD SUCCESS
Clean up tomcat work and temp directory
Start Tomcat
Clear browser cache
Login to JasperReports Sever Web UI and test 5.1
Appendix A:
For other versions of JasperReports Server, users can replace the reference root "C:Program Filesjasperreports-server-4.1" with whatever root where JasperReports Server is deployed to carry out the overlay process.
Appendix B:
If overlaying a previous bundled installation, users need to do additional modification to default_master.properties file aforementioned in step 3 as the following.
Locate jasperserver resource entry in context.xml file under your deployed jasperserver-proMETA-INF directory. For example:
<resource auth="Container" driverclassname="org.postgresql.Driver" maxactive="100" maxidle="30" maxwait="10000" name="jdbc/jasperserver" password="password" testonborrow="true" type="javax.sql.DataSource" url="jdbc:postgresql://127.0.0.1:5432/jasperserver?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&autoReconnectForPools=true" username="jasperdb" validationquery="SELECT 1" />[/code]
Change dbUsername and dbPassword in default_master.properties file to match the entry in context.xml file (above). For example,
from # database type dbType=postgresql# database location and connection settings dbHost=127.0.0.1 dbUsername=postgres dbPassword=Postgres[/code]
to # database type dbType=postgresql # database location and connection settings dbHost=127.0.0.1 dbUsername=jasperdb dbPassword=password[/code]
Appendix C:
If you get through the installation and run into the following exception when starting the server:
Caused by: org.postgresql.util.PSQLException: ERROR: permission denied for relation jiawsdatasource[/code]
You need to log into the JasperReports Server Postgres repository database as the postgres user, and update the privileges on the jiawsdatasource table, using the following commands:
grant all on jiawsdatasource to postgres;grant all on jiawsdatasource to jasperdb;[/code]
TTC-20130503
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now