jbreault Posted August 22, 2017 Share Posted August 22, 2017 I created a jrxml file that uses scriplets. When I run the report via java, the fields are filled properly, however, when the report is run on JasperReports Server every value from a scriptlet is null. Every meathod I use calls a server, and if I create a method that does not call a server (for testing purposes) the corresponding fields return the proper values on JasperReports Server. I built my java project into a jar file and added this jar file to my report on JasperReports Server as a resource. I am not sure what could be going wrong. Any help is appreciated. Link to comment Share on other sites More sharing options...
mlopez_1 Posted August 23, 2017 Share Posted August 23, 2017 Be sure that your jar file for using with this scriptlet is in jasperserver/WEB-INF/lib folder and restart server.If not, check out logs for errors.Mariano Link to comment Share on other sites More sharing options...
jbreault Posted August 23, 2017 Author Share Posted August 23, 2017 Thanks for the suggestion mlopex_1, but when I add the jar file to jasperserver/WEB-INF/lib and restart the server, I get an error when I go to http://localhost:8082/jasperserver/login.html (8082 is the correct port). It says HTTP Status 404 - /jasperserver/login.html and The requested resource is not available. 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