nikhilbabu1990 Posted December 11, 2015 Posted December 11, 2015 Hi,I created a jasper report and add it into the jasper server, now i need to invoke the reports from jasper server by REST v2. So please give me the java code for doing this. and also tell me the required jar files and necessery thing to do.jasper report - TIBCO jaspersoft studio-6.2.0.finalRegards,Nikhil
hozawa Posted December 11, 2015 Posted December 11, 2015 Refer to the following page. You just have to enter the url in your web browser.http://community.jaspersoft.com/documentation/tibco-jasperreports-server-web-services-guide/v62/running-report
nikhilbabu1990 Posted December 11, 2015 Author Posted December 11, 2015 but i am getting this error while runningC:UsersUrava-PC-01oracle1221oracle_commonjdkbinjavaw.exe -server -classpath "C:JDevelopermyworkJasper.adf;C:JDevelopermyworkJasperJasperclasses;C:UsersUrava-PC-01Desktopjar for jasper javacommons-beanutils-1.9.0.jar;C:UsersUrava-PC-01Desktopjar for jasper javacommons-collections-3.2.jar;C:UsersUrava-PC-01Desktopjar for jasper javacommons-digester-1.7.jar;C:UsersUrava-PC-01Desktopjar for jasper javacommons-logging-api-1.1.jar;C:UsersUrava-PC-01Desktopjar for jasper javagroovy-all-2.4.3.jar;C:UsersUrava-PC-01Desktopjar for jasper javaitext-2.1.7.js3.jar;C:UsersUrava-PC-01Desktopjar for jasper javajasperreports-6.1.1.jar;D:UravaAlbarrakAlbarrakCommonLibUravaCommonCode.jar;C:UsersUrava-PC-01Desktopjar for jasper javahttpclient-4.1.2-sources.jar;C:UsersUrava-PC-01Desktopjar for jasper javahttpclient-4.3.4.jar;C:UsersUrava-PC-01Desktopjar for jasper javahttpcore-4.0-beta3.jar" -Djavax.net.ssl.trustStore=C:UsersURAVA-~1AppDataLocalTemptrustStore1258780266524574807.jks com.uravatech.jasper.JasperException in thread "main" java.lang.NoClassDefFoundError: org/apache/http/util/Argsat org.apache.http.auth.UsernamePasswordCredentials.<init>(UsernamePasswordCredentials.java:78)at com.uravatech.jasper.Jasper.main(Jasper.java:23)Caused by: java.lang.ClassNotFoundException: org.apache.http.util.Argsat java.net.URLClassLoader.findClass(URLClassLoader.java:381)at java.lang.ClassLoader.loadClass(ClassLoader.java:424)at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)at java.lang.ClassLoader.loadClass(ClassLoader.java:357)... 2 moreProcess exited with exit code 1.
Solution plambert_1 Posted December 14, 2015 Solution Posted December 14, 2015 You can use this java rest client : https://github.com/Jaspersoft/jrs-rest-java-client/
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