Jump to content
We've recently updated our Privacy Statement, available here ×

Bitnami - Jasperserver linux install (ubuntu 12.04)


paul.kraus
Go to solution Solved by paul.kraus,

Recommended Posts

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 :)

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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.

Link to comment
Share on other sites

  • Solution

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.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...