paul.kraus Posted January 22, 2013 Share Posted January 22, 2013 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 More sharing options...
marianol Posted January 23, 2013 Share Posted January 23, 2013 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 More sharing options...
paul.kraus Posted January 23, 2013 Author Share Posted January 23, 2013 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. Link to comment Share on other sites More sharing options...
marianol Posted January 23, 2013 Share Posted January 23, 2013 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 Link to comment Share on other sites More sharing options...
Solution paul.kraus Posted January 23, 2013 Author Solution Share Posted January 23, 2013 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 More sharing options...
Recommended Posts
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