JasperReports

From Omnia
Jump to navigation Jump to search

JasperReports

Jasper:

Hostname:

  • Add to /etc/hosts or suffer import error of doom!

Dependencies:

yum install java ant

Installation:

# 5.5.0a
wget http://sourceforge.net/projects/jasperserver/files/JasperServer/JasperReports%20Server%20Community%20Edition%205.5.0/jasperreports-server-cp-5.5.0a-linux-x64-installer.run/download \
  -O jasperreports-server-cp-5.5.0a-linux-x64-installer.run
chmod u+x jasperreports-server-cp-5.5.0a-linux-x64-installer.run
./jasperreports-server-cp-5.5.0a-linux-x64-installer.run
# latest
wget http://sourceforge.net/projects/jasperserver/files/latest/download
chmod u+x download
./download

CLI Wizard: (all defaults)

  • EULA
  • EULA Accept
  • Custom Installation / Install All Components and Samples
  • Target: /opt/jasperreports-server-cp-5.5.0a
  • use bundled Tomcat
  • use bundled PostgreSQL
  • Server port: 8080
  • Shutdown port: 8005
  • Database Server port: 5432
  • install sample databases
  • Begin installation (takes a few minutes)
  • Opt-out of heardbeat

Heardbeat

Opt-in for JasperReports Server Heartbeat
Help us build better products by opting in
For more information please visit:
www.jaspersoft.com/heartbeat

Link:

# ln -sfn jasperreports-server-cp-5.5.0a /opt/jasperreports-server
ln -sfn jasperreports-server-cp-5.6.0 /opt/jasperreports-server

Start server:

cd /opt/jasperreports-server
./ctlscript.sh start

Access server:

http://SERVER:5002/jasperserver

Stop server:

cd /opt/jasperreports-server
./ctlscript.sh stop

Start/Stop individual components:

./ctlscript.sh start|stop postgresql
./ctlscript.sh start|stop tomcat 

init.d script:

cp /opt/jasperreports-server/scripts/linux/jasperserver /etc/init.d/

Users:

jasperadmin : jasperadmin  - Administrator for the default organization (ROLE_ADMINISTRATOR,ROLE_USER)
joeuser : joeuser          - Sample end-user (ROLE_USER)
anonymousUser :            - Anonymous user with no access to anything (ROLE_ANONYMOUS)
superuser : superuser      - System-wide administrator (does not work)
demo : demo                - Sample end-user for the SuperMart Dashboard demonstration (does not work)

Proxy:

<VirtualHost *:80>
    ServerName analytics.oeey.com

    ProxyPass         /  http://localhost:8080/ nocanon
    ProxyPassReverse  /  http://localhost:8080/
    ProxyRequests     Off
    AllowEncodedSlashes NoDecode

    # Local reverse proxy authorization override
    # Most unix distribution deny proxy by default (ie /etc/apache2/mods-enabled/proxy.conf in Ubuntu)
    <Proxy http://localhost:8080/*>
        Order deny,allow
        Allow from all
    </Proxy>

    ServerAdmin admin@oeey.com
    ErrorLog logs/analytics.oeey.com-error_log
    CustomLog logs/analytics.oeey.com-access_log common
</VirtualHost>

Jasper webapps cleanup

cd /opt/jasperreports-server/apache-tomcat
mkdir webapps-old
cd webapps
mv host-manager manager ROOT ../webapps-old
mv jasperserver ROOT
cd /opt/jasperreports-server
./ctlscript.sh restart

Notes

See JasperReports/Notes

Issues

See Talk:JasperReports#Issues