-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to build-up jasper report on Glassfish #129
Comments
Hi, you have two options here:
Good luck |
Thank you very much for your quick response. Could you please clarify me, exactly why this error occurs?, because I have checked the path and it seems to be ok, c:\somefolders\WEB-INF\conf\application.properties thanks! |
Would have to troubleshoot this. But not really worth the effort. There might be a bug ... but using the configuration and reports in the deployed web application is not a good idea anyway, for security purposes and for practical reasons. E.g. when you redeploy the application as part of an upgrade, you might lose the configuration. Separation of directories is advised here. |
Hi, the error persist. Any suggestion please? |
As I have pointed out before ... the documented and supported way to use it is one of the two options:
Good luck |
Hi, I created the environment variable and the error persist. First I did set the variable with the path where the reports are located like Then I changed the path in the variable, set it to the path where the libraries are located and it didn't work either. Is there any possibility that the error is generated by the incompatible version of Glassfish, or is there a library required?, because the test.jasper report works fine. Thanks for your support. |
Ok, here is something quick you can try. Make sure you set the environment in the SYSTEM environment, NOT THE USER ENVIRONMENT! I assume you will be running it as a service, thus, the environment for the system account needs to be set. Not everything is being picked up by the startup scripts. But you didn't give me enough details to make a distinction here. BTW, provide more meaningful details:
Thank you, |
Something is off.
I will download Glassfish and give it a try. |
And you are using the latest integration, at least |
I'm using this version JasperReportsIntegration-2.4.0.0 . So, should I upgrade the version? is it worth it? bdw. I let you know the version of JasperStudio I'm using |
Only if you want it working without error ;). Yes, a ton of new features. I just downloaded Glassfish 4.1 and used it on Win10 with JDK 8 without any issues. Picked up the environment variable immediately. Didn't run it as a service, though. My batch file to start the server:
Works right off the bat. |
Just follow the installation instructions, it is all there: https://github.com/daust/JasperReportsIntegration/blob/main/src/doc/github/installation-full.md#install.installation.installJ2EE.1 If you want to use the System environment instead of changing the jri.war file through the provided scripts (which also works fine):
Then follow the installation process. Good luck, many others have succeeded before you ;). But compiling reports with a new version of JasperSoft Studio and running it on an older engine doesn't work. This is the reason why the test.jasper works ... it is compiled for the old version. |
Ok. I'll try. |
Hi, not successful :( I did all steps which are in the documentation and now not even I can deploy the jri.war. This is the error in the glassfish [2023-02-05T15:31:51.185+0100] [glassfish 4.1] [WARNING] [NCLS-DEPLOYMENT-02036] [javax.enterprise.system.tools.deployment.autodeploy] [tid: _ThreadID=100 _ThreadName=AutoDeployer] [timeMillis: 1675607511185] [levelValue: 900] [[ [2023-02-05T15:31:51.185+0100] [glassfish 4.1] [WARNING] [NCLS-DEPLOYMENT-02036] [javax.enterprise.system.tools.deployment.autodeploy] [tid: _ThreadID=100 _ThreadName=AutoDeployer] [timeMillis: 1675607511185] [levelValue: 900] [[ I don't know. Can you please tell me exactly how you did it?, I must be something wrong. Maybe, I can use the version 2.4 of JRI and under the JasperStudio version. Thanks. |
Many errors like this one in the server.log of glassfish [2023-02-05T16:12:04.249+0100] [glassfish 4.1] [SEVERE] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=81 _ThreadName=deployment-jar-scanner] [timeMillis: 1675609924249] [levelValue: 1000] [[ |
Yeah, I am now seeing those Java errors as well. Those first ones I cannot reproduce:
I did come across those before ... but if I remember correctly, this was due to a messed up zip file. When I copied it again (in binary mode) it worked fine. The other Java errors are strange ... will have a look. |
You are being difficult, my friend ;) ... or at least non-standard.
|
Hi, I have been able to deploy it and I can access the web http://myhost:myport/jri/ With the other version of JRI the connection was working fine. I have the same configuration as before in the application.properties file. I can see the different name created after deploying it This is what the JRI log shows 11:09:44 [INFO] jasper.webapp.Test.doGet - *** servlet /test START Thanks! |
You are taking up too much of my time. Drop me an email at dietmar.aust at gmail.com. Then we schedule a zoom call or teamviewer session to fix it. |
really?, oh that's super. Sorry!!! Thanks :) |
Hi, hope you can help me.
I installed the JRI in a Glassfish server.
The war file is deployed automatically in the server, so I did not run the file startup.cmd, which seems to set up the root directory in the OC_JASPER_CONFIG_HOME variable .
After installing, I was able to run the test.jasper report (report to test, that comes in installation package) through the http:/JasperReportsIntegration/) and also I could test successful the database connection.
But, when I try to generate the report from Apex I get this error.
One thing I noted is that the path in the error message is referring a local path and not to the server path
Can anyone help me with this?
Thanks in advance.
The text was updated successfully, but these errors were encountered: