Buildomatic unable to find class during export

We are attempting to export reports from a bitnami Jasperserver 4.1 CE installation in preparation for an upgrade, however it seems that the export script is unable to locate one of its dependencies:

vagrant@localhost:/opt/bitnami/apps/jasperserver/buildomatic$ ./js-export.sh --uris / --output-dir export.zip
 
Using CE setup
/opt/bitnami/java/bin/java -cp "./..install_resources/" -Xms128m -Xmx512m -XX:PermSize=32m com.jaspersoft.jasperserver.export.ExportCommand ./js-export.sh --uris / --output-dir export.zip
Exception in thread "main" java.lang.NoClassDefFoundError: com/jaspersoft/jasperserver/export/ExportCommand
Caused by: java.lang.ClassNotFoundException: com.jaspersoft.jasperserver.export.ExportCommand
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: com.jaspersoft.jasperserver.export.ExportCommand.  Program will exit.
How can we add this dependency to the class path for the execution of this script?
Thanks in advance,
Chaz
chazbone's picture
Joined: Jun 6 2013 - 11:57am
Last seen: 9 years 3 weeks ago

1 Answer:

I had a similar problem when I wasn't in the buildomatic directory.

on a side note: shouldn't you use the output-zip option if you want to export a zip file?

 

blog_1's picture
0
Joined: Apr 10 2013 - 10:45pm
Last seen: 8 years 12 months ago
Feedback