Amazon festival offer

Tuesday, 24 April 2012

Installing Jasper Report server from WAR file distribution?

If you don't want to use Windows or Linux installer then you can Install JasperReport server from WAR file distribution.

Download the following files:- 
    1 The WAR file distribution comes in file named jasperreports-server-cp-4.5.0-bin.zip
            in the compressed ZIP format. Download the WAR distribution file from
         http://sourceforge.net/projects/jasperserver/files/JasperServer/JasperServer%204.5.0/ .

    2. Download the JDBC driver, mysql-connector-java-5.1.18-bin.jar
                                http://dev.mysql.com/downloads/connector/j/
 
After downloading WAR file download Apache Tomcat exe file and install on your system.
There are two way to install JasperReport server by manually or auto, but we are installing it manually.
Before start installing you need to set JAVA_HOME environment variable on your system.

           JAVA_HOME="path of jdk folder"
                                    e.g: JAVA_HOME=C:\Program Files\jdk1.7.0_01

To install the WAR file distribution using the manual buildomatic steps:-

1- If you’re using MySQL, place a MySQL JDBC driver in
                                 <js-install>/buildomatic/conf_source/db/mysql/jdbc.

2- Start database (MySQL) server.
3- Stop your Application server(Apache tomcat).
4- Copy mysql_master.properties file from <js-install>/buildomatic/sample_conf and paste it to
       <js-install>/buildomatic and rename it to default_master.properties.
5- Edit default_master.properties file and change the setting of database server and application server
   according to your system.
6- Open a Command Prompt as Administrator on Windows and go to buildomatic directory of JasperReport server and run these commands:-

      a:-  js-ant create-js-db                     (Creates the JasperReports Server repository database)
      b:-  js-ant create-sugarcrm-db         (Optional) Creates the sample databases.
            js-ant create-foodmart-db
      c:-  js-ant load-sugarcrm-db            (Optional) Loads sample data into the sample databases.
            js-ant load-foodmart-db
            js-ant update-foodmart-db
      d:-  js-ant init-js-db-ce                      
            js-ant import-minimal-ce          (Initializes the jasperserver database, loads core
                                                                application data. Running js-ant import-minimal-ce is
                                                                mandatory. The server cannot function without this data)


      e:-  js-ant import-sample-data-ce      (Optional) Loads the demos that use the sample data.
      f:-  js-ant deploy-webapp-ce              Configures and deploys the WAR file to Tomcat

      Start the application serve.



10 comments:

pk said...

How could I deploy to JBoss AS 7?

pk said...

How could I deploy to JBoss AS 7?

bhavithra said...

js-ant deploy-webapp-ce in the last step I get build failed

please help

deploy-webapp:
[echo] For JDBC driver the artifactId and version properties are set:
[echo] maven.jdbc.artifactId=mysql-connector-java
[echo] maven.jdbc.version=5.1.28
[echo] Specified JDBC driver jar exists
[echo] About to copy JDBC driver for import-export config (if it exists):
[copy] Copying 1 file to /home/user/jasperreports-server-cp-5.5.0/buildomatic/conf_source/ieCe/lib
[copy] Copying /home/user/jasperreports-server-cp-5.5.0/buildomatic/conf_source/db/mysql/jdbc/mysql-connector-java-5.1.28.jar to /home/user/jasperreports-server-cp-5.5.0/buildomatic/conf_source/ieCe/lib/mysql-connector-java-5.1.28.jar
[echo]
[echo] Property values (in app-server.xml: deploy-webapp):
[echo] jsEdition = ce
[echo] warSourceDir = /home/user/jasperreports-server-cp-5.5.0/buildomatic/install_resources/war/jasperserver
[echo] warTargetDir = /var/lib/tomcat6/webapps/jasperserver
[echo] webAppName = jasperserver
[echo] webAppNameCE = jasperserver
[echo] webAppNamePro = jasperserver-pro
[echo] webAppNameSrc = jasperserver
[echo] webAppNameDel = jasperserver
[echo] warTargetDirDel = /var/lib/tomcat6/webapps/jasperserver
[echo]

BUILD FAILED
/home/user/jasperreports-server-cp-5.5.0/buildomatic/bin/app-server.xml:746: /home/user/jasperreports-server-cp-5.5.0/buildomatic/install_resources/war/jasperserver does not exist.

Rodolfo Velasco said...

Where did you find all this info? Your're the only one that clearly specified how to do it. Thanks!

sharad-gupta said...

Thanks Rodolfo, Your are welcome, once you start facing all these issues then you have to find out the solution for same.

Dave Palmer said...

Hear hear, what a great blog! Couldn't have installed it without you - saved me hours of research, thanks.

For those installing on mac, i got caught out by not having my hostname in my hosts file http://stackoverflow.com/questions/17629611/jasper-server-import-export-error-while-installation
javascript:void(0)

Dave Palmer said...

Hear hear, what a great blog! Many thanks, saved me hours of research.

For those installing on mac, I got caught out with a java error on the first step, asI didn't have my hostname in my hosts file... see http://stackoverflow.com/questions/17629611/jasper-server-import-export-error-while-installation

Utsav said...

Follow the steps, this might help.

http://community.jaspersoft.com/documentation/tibco-jasperreports-server-installation-guide/v60/installing-war-file-distribution

Utsav said...

Follow these steps, this might help:

http://community.jaspersoft.com/documentation/tibco-jasperreports-server-installation-guide/v60/installing-war-file-distribution

Rajat Mishra said...

Installing jasperserver 6.3 community edition on wildfly 9.0.2.
Can access wildfly (welcome to wildfly) on localhost:8090 (as I changed the offset by 10) and management console on localhost:10000.
However, I am not able to view my jasperserver. localhost:8090/jasperserver gives a 404 NOT FOUND error.
The installation gives a successful build also.
Any help?
I have followed the install guide for 6.3 community edition.
Configurations:
Linux 16.04 lts
openjdk
wildfly 9.0.2