Bitnami - Jasperserver linux install (ubuntu 12.04)

0

I have installed Jasperserver 5 using the bitnami premade stack. Now i have two of the servers installed. One will be the production version the other a development version. I need a way to sync or copy the reports from dev to production. Now I have read the docs and searched the internet and its become obvious that I am missing some enviorment stuff before running the js-import/js-export scripts.

root@deverp:/opt/jasperserver-5.0.0-0/apps/jasperserver/buildomatic# ./js-export.sh --everything --output-dir js-backup.zip
Using CE setup
./bin/js-import-export.sh: line 64: java: command not found 

Now this would indicate that i don't have java in my path. Is path the correct env variable to put it in? Also i have hacked at this a while ago and was able to get the java error to go away to only get a mysql.Driver error which also makes me think i am missing some basic step where the enviorment gets setup prior to the script running. Any help would be appreciated. Disclamier -- I am NOT a java guy. I use japser server to print forms from a python application that have written so be gentle :)

paul.kraus's picture
Joined: Jan 22 2013 - 12:44pm
Last seen: 5 years 11 months ago

2 Answers:

-1

Solved by running use_jasperserver and then by modifing the scrip js-import-export.js...

 

echo "Using CE setup"
    export CONFIG_DIR=$BASEDIR/conf_source/ieCe
    for i in $CONFIG_DIR/lib/*.jar
    do
        EXP_CLASSPATH="$EXP_CLASSPATH:$i"
    done
    EXP_CLASSPATH="$EXP_CLASSPATH:/opt/jasperserver-5.0.0-0/apache-tomcat/webapps/jasperserver/WEB-INF/lib/mysql-connector-java-5.1.12-bin.jar"

 

Last line is the added line.

paul.kraus's picture
Joined: Jan 22 2013 - 12:44pm
Last seen: 5 years 11 months ago
1

Yes, that error means that Java is not configured (or installed) in your shell, you will need to add it to your path, but I will recomend to go ahead and install the JVM directly there it will save you a couple of headaches, https://help.ubuntu.com/community/Java 

Also I'm not sure what version you are using, but since Jasper Server 5.0 the 'superuser' can import and export repository elements form the UI. Login to JasperServer as superuser and in the repository view right click on any folder (or report unit) and you will see an Export option in the context menu, this does the same thing as the import/export scripts. To import back in your production server, login again as superuser and got to Manage Server and you will see the import option in the left menu.

marianol's picture
4708
Joined: Sep 13 2011 - 8:04am
Last seen: 1 year 2 weeks ago

I accepted the answer to quickly. I am using Jasperserver5 but there is no export option in my right click. Logging in as jasper admin, checked users and rolls and it seems to have the highest permissions.

paul.kraus - 6 years 8 months ago

Jasperadmin will not have that option since jasperadmin is an organization level administrator. Login as superuser (password superuser) that is the main admin of the jasper instance

marianol - 6 years 8 months ago
Feedback
randomness