Solution to display JasperReport reports for JBoss in Linux
Source: Internet
Author: User
In Linux, JBoss cannot display the solution of the JasperReport Report-general Linux technology-Linux programming and kernel information. The following is a detailed description. 1. Symptoms
The following error logs are usually displayed:
Caused by: java. lang. NoClassDefFoundError
At java. lang. Class. forName0 (Native Method)
At java. lang. Class. forName (Class. java: 164)
At java. awt. GraphicsEnvironment. getLocalGraphicsEnvironment (GraphicsEnvironment. java:
2. Cause
X Server service is required for Linux environment processing. If no graphic module is installed on Linux, no x Server service is available. On the other hand, even if X Server service is available, this error also occurs when the Linux system memory is insufficient.
3. Solution
Use the image processing service provided by JDK as follows:
Edit run. conf and add-Djava. awt. headless = true to JAVA_OPTS.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service