scotthendoau Posted June 11, 2008 Share Posted June 11, 2008 Hi guys. I am using sub reports for the first time. Now when I run the reports locally everything works fine, yet when I deploy my ear to a Unix based server, i get the following exception: net.sf.jasperreports.engine.JRException: Could not load object from location. The main report and sub-reports are in the same folder. I have been using the sub-report dir parameter with just about every combination under the sun ("//", "/", "", "\", "." and "") but nothing is working. Can anyone help me? Thanks in advance for any help. Regards Scott. Link to comment Share on other sites More sharing options...
svenn Posted June 11, 2008 Share Posted June 11, 2008 Which sub report expession class are you using? Link to comment Share on other sites More sharing options...
scotthendoau Posted June 12, 2008 Author Share Posted June 12, 2008 Thanks for your reply svenn I have figured it out. For some reason, when deployed locally, setting the SUBREPORT_DIR to "\" works fine but when deployed to a Unix box, i have to set the SUBREPORT_DIR to the folder that both reports are in but not the full directory path, ie. I set SUBREPORT_DIR to "jasper". Go figure. Cheers, Scott Link to comment Share on other sites More sharing options...
jeromiecomsecinc.com Posted July 2, 2008 Share Posted July 2, 2008 I am having this same issue. I have attempted changing it to "./", "jasper", "Report/", etc,etc,etc. without avail. When you mentioned "jasper" is that the name of the directory your jasperserver is running under? IE: Mine is /opt/jasperserver-3.0.1 Great tool- I can't wait to get this last issue addressed. Link to comment Share on other sites More sharing options...
scotthendoau Posted July 2, 2008 Author Share Posted July 2, 2008 Howdy, Well in my case, I have an ear file deployed to a web server. Now say my project is called example, my files are saved in example/jasper. So I set the SUBREPORT_DIR to "jasper". Also make sure that your subreport and main report are both in the same directory. Scott. 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